Thứ Sáu, 13 tháng 2, 2009

[Open Solaris] GRUB menu not work because menu.lst is missing

You may encounter the situation when we unintentionally deleted or damaged menu.lst file in /rpool/boot/grub/ . This causes your GRUB menu missing because GRUB reads menu.lst to identify bootable OS choices. You will see a GRUB CONSOLE instead of a GRUB menu


To solve the problem and recover menu.lst, you should manually boot OpenSolaris first by typing below commands in GRUB CONSOLE

grub> bootfs rpool/ROOT/opensolaris

grub> kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS

grub> module$ /platform/i86pc/$ISADIR/boot_archive
grub> boot

After that , you can boot OpenSolaris as usual.

Secondly, log in OpenSolaris.
After logging in , you might recover menu.lst by using this command:

pfexec /boot/solaris/bin/update_grub


And menu.lst would be recovered.

Không có nhận xét nào:

Đăng nhận xét