On 07/10/11 00:20, Lentes, Bernd wrote:
Hi,
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. Device.map 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 ?
Thanks.
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,
Barry
_______________________________________________
Help-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-grub