help-grub
[Top][All Lists]
Advanced

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

Re: no boot


From: Goh Lip
Subject: Re: no boot
Date: Thu, 11 Aug 2011 11:15:13 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110809 Thunderbird/6.0

On 08/11/2011 11:01 AM, robert wrote:
Ok. Here's the problem.

Running a debian-based o/s, in /etc/grub.d/40_custom (set to rwx-r_x-r_x)

I have this:
#!/bin/sh
exec tail -n +3 $0
menuentry "Sysrescue" {
set root=(hd1,2)
linux /sysrcd/rescuecd subdir=sysrcd
initrd /sysrcd/initram.igz
}

then
$sudo update-grub

well and good. "Sysrescue" shows up in the grub boot menu

However, when I select that menu item, I get:
error: hd1,2 cannot get C/H/S values
error: you need to load the kernel first

but, when I boot to a grub prompt and issue the following commands:
grub>set root(hd1,2)
grub>linux /sysrcd/rescuecd subdir=sysrcd
grub>initrd /sysrcd/initram.igz
grub>boot

everything goes swimmingly. machine boots to the requested o/s

any suggestions?

Thanks in advance.

Robert


Try using the search line below the set root= line

set root=(hd1,2)
search --no-floppy --fs-uuid --set=root xxxxxxxxxxxx

where xxxxxx is uuid of the partition.

Regards - Goh Lip
ps: if 1.99, use --set=root (as shown)
    if 1.98 or earlier use --set





reply via email to

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