[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: difference in recognizing the drives on boot and in running OS ?

From: Barry Jackson
Subject: Re: difference in recognizing the drives on boot and in running OS ?
Date: Sat, 15 Oct 2011 17:10:45 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-UK; rv: Gecko/20111014 Lightning/1.0b2 Lanikai/3.1.16pre

On 07/10/11 00:20, Lentes, Bernd wrote:

i have a sles 10 box not booting. Grub says error 22, which, afaik means that 
it doesn't find a partition. / and /boot reside on /dev/sdc2. says 
sdc is hd2 in GRUB notation. I changed the root entries in menu.lst to hd2,1. I 
ran (in a GRUB shell in the running OS) root (hd2,1) and setup (hd2). 
Everything went fine. But when i try to reboot, i get error 22. Is there a 
possible difference between GRUB recognizing the drives during boot, and later 
on in a running OS ? Is there a way to find out how GRUB assigns the drives on 
boot, maybe using the GRUB command-line which is available during boot up ?


Yes, in grub legacy you can use the "find" command to locate a unique file in the partition.
For example at the grub prompt:-
grub> find /boot/grub/menu.lst
...would return all the partitions with that path available.
If SUSE has a /etc/suse-release, then that may a good one to search for.
I'm not conversant with SUSE.

All the commands normally in menu.lst can be entered individually at the grub prompt, and tab completion is available e.g. :-
grub> root (<TAB>
will list all the drives and partitions that grub can see.

To boot from the prompt all that is normally needed is :-
grub> root (hdx,y)
grub> kernel /boot/vmlinuz
grub> initrd /boot/initrd.img
grub> boot

I hope that helps,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]