Lỗi find menu.lst boot grub menu.lst grub menu.lst năm 2024

Grub4dos shows "finding /menu.lst, /boot/grub/menu.lst, /grub/menu.lst", and finally shows '/menu.lst'.

This is the content of "/menu.lst".

timeout 0 title ...Back to Main Menu\n find --set-root /HBCD/menu.lst configfile /HBCD/menu.lst

And you ca see the result of "find /menu.lst".

What am I wrong? Thanks in advance.

steve6375

steve6375

Platinum Member

  • Developer
  • 7566 posts
  • Location:UK
  • Interests:computers, programming [masm,vb6,C,vbs], photography,TV,films
  • United Kingdom

Posted 29 December 2013 - 09:31 AM

Are you sure the files are name correctly? If you used Notepad to make menu.lst then it probably saved it as menu.lst.txt.

I would run 'grubconfig' from the console and do all the installation procedure in "simple mode" again to MBR [ with the right parameters entered in the many GUIs there] .

If that fails i would try 1 .: mount -t $FSTYPE /dev/sda1 /sda1

FSTYPE important in case of FSTYPE=ntfs to be mounted read-write

2 .: grub-install --root-directory=/sda1[/boot] [--force-lba] [--recheck] /dev/sda1 to copy the files from /usr/lib/grub/i386-pc to /sda1/boot/grub

3 .: type 'grub' in the console to run the grub shell there type 'geometry [hd0]' to see if ok type 'root [hd0,0]' to change to that directory type 'setup [hd0]' to install grub to the MBR type 'quit'

4 .: grub-install --help and 'help setup' in the grub shell explains more .

8-bit Posts: 3406 Joined: Wed 04 Apr 2007, 03:37 Location: Oregon

by 8-bit » Tue 01 Nov 2011, 22:44

If you are booting from sda1, that directory will be called "/mnt/home" /mnt/sda1" will show as empty. I know that does not seem logical. Anyway, click on sda1 to mount it. Click on the boot folder and then grub folder. Right click on menu.lst and select open as text to edit it.

bigpup Posts: 13886 Joined: Sun 11 Oct 2009, 18:15 Location: S.C. USA

by bigpup » Wed 02 Nov 2011, 07:15

Not sure you installed Puppy the right way. Type install you want. Frugal or full?

If full or frugal you need only one partition to install to. Only other partition needed is maybe a swap partition, if you have low memory 256MB or less.

After you do the install by running Puppy from the USB drive. While still running from USB drive. Run Grub Bootloader config or Grub4dos bootloader config. I like Grub4dos. They should find all installed operating systems and set up the boot loader menu.lst. The default options should work fine.

The things they do not tell you, are usually the clue to solving the problem. When I was a kid I wanted to be older.... This is not what I expected

YaPI[any iso installer]

garystampa Posts: 15 Joined: Thu 27 Oct 2011, 16:48

by garystampa » Wed 02 Nov 2011, 12:25

Are you using a numeric '1' or an 'L' in menu.?st.

fopetesl Posts: 31 Joined: Fri 02 Jun 2006, 11:47 Location: Yorkshire Dales

by fopetesl » Wed 02 Nov 2011, 16:02

I'll try and take these one at a time...

bigpup

Not sure you installed Puppy the right way. Type install you want. Frugal or full?

If full or frugal you need only one partition to install to. Only other partition needed is maybe a swap partition, if you have low memory 256MB or less.

After you do the install by running Puppy from the USB drive. While still running from USB drive. Run Grub Bootloader config or Grub4dos bootloader config. I like Grub4dos. They should find all installed operating systems and set up the boot loader menu.lst. The default options should work fine.

I did a full install with three partitions: sda1 is / sda6 is /home plus swap

Code:

sh-4.1# fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        7052    56639488   83  Linux
/dev/sda2            7052       19458    99648513    5  Extended
/dev/sda5            7052        7057       39936   82  Linux swap / Solaris
/dev/sda6            7057       19458    99607552   83  Linux

Code:

/dev/sda1 on /mnt/sda1 type ext4 [rw,relatime,barrier=1,data=ordered]
sh-4.1# Grub4dos bootloader config  
sh: Grub4dos: command not found
sh-4.1# Grub Bootloader config
sh: Grub: command not found
sh-4.1#

8-bit If you are booting from sda1, that directory will be called "/mnt/home" /mnt/sda1" will show as empty. I know that does not seem logical. Anyway, click on sda1 to mount it. Click on the boot folder and then grub folder. Right click on menu.lst and select open as text to edit it.

Code:

sh-4.1# mount
/dev/sda1 on /mnt/sda1 type ext4 [rw,relatime,barrier=1,data=ordered]
sh-4.1# cd boot
sh-4.1# ls -l
total 4
drwxr-xr-x 2 root root 4096 2011-11-01 12:42 grub
sh-4.1# cd grub
sh-4.1# ls -l
total 0
sh-4.1#

Karl Godt I would run 'grubconfig' from the console and do all the installation procedure in "simple mode" again to MBR [ with the right parameters entered in the many GUIs there]

Are you saying I should re-install from scratch? When I run grubconfig I get an error message

Code:

Grubconfig: ERROR
The partition '/mnt/sda1/boot/grub' is not LINUX [OK]

but as you can see from above mount thinks it is a LINUX partition.

fopetesl Posts: 31 Joined: Fri 02 Jun 2006, 11:47 Location: Yorkshire Dales

by fopetesl » Wed 02 Nov 2011, 16:33

garystampa wrote:Are you using a numeric '1' or an 'L' in menu.?st.

Letter 'ell' lower case.

bigpup Posts: 13886 Joined: Sun 11 Oct 2009, 18:15 Location: S.C. USA

by bigpup » Thu 03 Nov 2011, 19:29

The console command for Grub4dos bootloader config

grub4dosconfig

I did a full install with three partitions: sda1 is / sda6 is /home plus swap

The Puppy universal installer will not install the boot loader. It asks if you have one installed already and gives you info on what to put in the menu.lst. If you do not have a boot loader installed. While still running the Bootable Puppy on the USB drive. Go to menu->system->Grub4Dos bootloader config. or Grub bootloader config. Run this program to install a boot loader.

The Puppy universal installer will not install anything to more than one partition. It does not need the sda6 /home

This info may help: //www.murga-linux.com/puppy/viewtopic.php?t=60302

The things they do not tell you, are usually the clue to solving the problem. When I was a kid I wanted to be older.... This is not what I expected

YaPI[any iso installer]

Karl Godt Posts: 4199 Joined: Sun 20 Jun 2010, 13:52 Location: Kiel,Germany

by Karl Godt » Fri 04 Nov 2011, 07:35

978: if ! grep "^$ROOT_DEVICE" $TMP/DEV | grep -q "83 Linux" ; then

981: "The partition '$ROOT_DEVICE' is not Linux." 0 0

5 55

Above is from the grubconfig code .

I actually dont't like the simple grep synax there because '!' converts the error return code from a command from 0 to 1 and vice versa and depending on the error returncode the script does it or does something else .

I would have written in that way :

if [ -z "`grep "^$ROOT_DEVICE" "$TMP/DEV" | grep -i '83 Linux''`" ] ; then

There is also much 2>/tmp/file ; ROOT_DEVICE=`cat /tmp/file` ## and if there is some gdk/gtk garbage in the file, ROOT_DEVICE would be something like " GDK:WARNING SOME_LONG_TEXT_HERE /dev/sda1"

and grep "GDK:WARNING ..." definitely seems not to be the label for one of your partitions .

Perhaps make sure /dev/sda1 is or is not mounted before running grubconfig .

Grubconfig installs the bootloader , not the Puppy OS itself , as stated by bigpup .

fopetesl Posts: 31 Joined: Fri 02 Jun 2006, 11:47 Location: Yorkshire Dales

by fopetesl » Fri 04 Nov 2011, 12:47

bigpup I tried this 1st

Code:

sh-4.1# grub4dosconfig
BINSTALLER=bootlace.com
sda[MBR]_160.0GB_ATA_SAMSUNG_HM160HI_
fd0_[FLOPPY_DISK]
sdb_1.9GB__USB_DISK_2.0_
/usr/sbin/grub4dosconfig: line 581: 26712 Terminated              $GTKDIALOG -p DIALOG -c &>/dev/null
PCPARTS:
/dev/sda1|ext4|56639488
/dev/sda6|ext4|99607552
LPART:/dev/sda1|ext4|56639488
The first partition starts from: 0[LBA]
/usr/sbin/grub4dosconfig: line 670: missing_error: command not found
sh-4.1#

Then I tried

Code:

menu->system->Grub bootloader config

and it seems to have worked

However when I look in menu.lst I see, amongst some WIndoze stuff, [why? I have no Micro$oft stuff on my HDD],

Code:

title Install GRUB to Linux partition [on /dev/sda1]
root [hd0,0]
setup [hd0,0]
pause Press enter to continue.

Does this mean I still need to install GRUB? Oh. And there's a mention of sda6, [my /home],

Code:

sh-4.1# cd sda1 
sh-4.1# ls -l
total 88
drwxr-xr-x  2 root root  4096 2011-11-01 12:41 bin
drwxr-xr-x  3 root root  4096 2011-11-01 12:42 boot
drwxr-xr-x 10 root root 12288 2010-07-08 04:39 dev
drwxr-xr-x 58 root root  4096 2011-11-01 12:42 etc
drwxr-xr-x 11 root root 12288 2011-11-01 12:41 lib
drwx------  2 root root 16384 2011-11-01 12:29 lost+found
drwxr-xr-x 11 root root  4096 2007-10-31 00:11 mnt
drwxr-xr-x  2 root root  4096 2009-12-18 08:59 opt
drwxr-xr-x  2 root root  4096 2009-12-18 08:59 proc
drwxr-xr-x 33 root root  4096 2011-11-01 12:42 root
drwxr-xr-x  2 root root  4096 2011-11-01 12:41 sbin
drwxr-xr-x  2 root root  4096 2011-11-01 12:41 sys
drwxrwxrwt  2 root root  4096 2011-11-01 12:42 tmp
drwxr-xr-x 11 root root  4096 2011-07-08 20:27 usr
drwxr-xr-x 16 root root  4096 2011-07-06 19:32 var
sh-4.1# find / -iname menu.lst
sh-4.1#

0

maybe I'm missing something significant here but RTFM hasn't helped me.

rcrsn51 Posts: 13096 Joined: Tue 05 Sep 2006, 13:50 Location: Stratford, Ontario

by rcrsn51 » Fri 04 Nov 2011, 17:32

@fopetesl: Is Puppy going to be the only OS on this machine? If so, use the automated install procedure here.

starhawk Posts: 4906 Joined: Mon 22 Nov 2010, 06:04 Location: Everybody knows this is nowhere...

by starhawk » Fri 04 Nov 2011, 17:35

I really hate to say this, but every time I see this thread, I want to say...

"It's right next to grocery.lst."

I apologize for my lack of a decent sense of humor and will now move on.

Burn_IT Posts: 3650 Joined: Sat 12 Aug 2006, 19:25 Location: Tamworth UK

by Burn_IT » Fri 04 Nov 2011, 17:43

You could at least have chosen Wine.lst, which would have been more of a double- entendre

"Just think of it as leaving early to avoid the rush" - T Pratchett

starhawk Posts: 4906 Joined: Mon 22 Nov 2010, 06:04 Location: Everybody knows this is nowhere...

by starhawk » Fri 04 Nov 2011, 19:58

Haha, true.

shinobar Posts: 2672 Joined: Thu 28 May 2009, 09:26 Location: Japan Contact:

by shinobar » Fri 04 Nov 2011, 21:53

[

Code:

sh-4.1# grub4dosconfig
BINSTALLER=bootlace.com
sda[MBR]_160.0GB_ATA_SAMSUNG_HM160HI_
fd0_[FLOPPY_DISK]
sdb_1.9GB__USB_DISK_2.0_
/usr/sbin/grub4dosconfig: line 581: 26712 Terminated              $GTKDIALOG -p DIALOG -c &>/dev/null
PCPARTS:
/dev/sda1|ext4|56639488
/dev/sda6|ext4|99607552
LPART:/dev/sda1|ext4|56639488
The first partition starts from: 0[LBA]
/usr/sbin/grub4dosconfig: line 670: missing_error: command not found
sh-4.1#

What is your Puppy version? Please update the grub4dosconfig to v1.7.1. //www.murga-linux.com/puppy/viewtopic.php?t=51697

Downloads for Puppy Linux [url]//shino.pos.to/linux/downloads.html[/url]

fopetesl Posts: 31 Joined: Fri 02 Jun 2006, 11:47 Location: Yorkshire Dales

by fopetesl » Sun 06 Nov 2011, 08:53

rcrsn51 wrote:@fopetesl: Is Puppy going to be the only OS on this machine? If so, use the automated install procedure here.

Yes, only OS on this netbook and I'd seen this but since I seem to be nearly there, only needing to understand what the existing menu.lst is trying to do, I'll hold on for a while.

Chủ Đề