Re: Grub/Grub2 fails with non-first root partition
On Sat, September 26, 2009 2:14 pm, Osamu Aoki wrote:
> Hi,
>
> On Sat, Sep 26, 2009 at 10:59:02AM +0200, Raven wrote:
>> Hi all.
>> I am currently attempting to install Debian on a laptop that currently
>> has
>> only windows xp on it.
>> Using the testing netinstall iso, i ran the setup process several times
>> but I keep getting the same problem over and over.
>> The partition tables is as follows:
>>
>> Disk /dev/sda: 80.0 GB, 80026361856 bytes
>> 255 heads, 63 sectors/track, 9729 cylinders
>> Units = cylinders of 16065 * 512 = 8225280 bytes
>> Disk identifier: 0xace22e9e
>>
>> Device Boot Start End Blocks Id System
>> /dev/hda1 * 1 3824 30716248+ 7 HPFS/NTFS
>> /dev/hda2 3825 6797 23880622+ 7 HPFS/NTFS
>> /dev/hda3 6798 9729 23551290 83 Linux
>>
>> (I have also tried creating a separate /boot partition [hda3] before the
>> root partition [hda4], but that didn't change the outcome)
>>
>> Debian installation works smoothly and the new system is correctly
>> deployed on the laptop. Unfortunately I am never able to boot into it.
>> Grub2 starts but after a while the message "Unknown filesystem" is
>> printed
>> and a rescue console is started.
>> Only a few basic commands are available and none of them helped me
>> figure
>> out where the problem is. After booting into a live distro, I checked
>> grub2's configuration files but those seemed fine too.
>>
>> As a desperate move, I tried to netinstall debian stable that comes with
>> grub legacy. That installation was successful too but still I couldn't
>> make it past grub, which returned "Error 17".
>>
>> Despite having some good experience with linux systems, I am totally
>> clueless on this one. Any suggestions?
>
> Please rememmber
>
> (hd0,1) is /dev/hda1 under grub2.
>
> The debconf question is not really good for grub2 but the maintainer
> thinks it will be better deald for squeeze. (Being forced to use grub 2
> under lenny since I use MacBook, I was not so happy about it).
>
> I am not really following this pat of squeeze. But following may be
> useful.
>
> http://wiki.debian.org/MacBook
> http://www.debian.org/doc/manuals/debian-reference/ch03.en.html#_stage_2_the_boot_loader
>
> Osamu
>
>
Did a new setup with netinstall testing but I am still getting stuck at
the usual place.
I let the installer partition the space as it wished:
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xace22e9e
Device Boot Start End Blocks Id System
/dev/sda1 1 3824 30716248+ 7 HPFS/NTFS
/dev/sda2 3825 6797 23880622+ 7 HPFS/NTFS
/dev/sda3 * 6798 9602 22531162+ 83 Linux
/dev/sda4 9603 9729 1020127+ 5 Extended
/dev/sda5 9603 9729 1020096 82 Linux swap / Solaris
The generated grub.conf:
### BEGIN /etc/grub.d/00_header ###
set default=0
insmod reiserfs
set root=(hd0,3)
search --no-floppy --fs-uuid --set 879e98ed-b1f4-4b94-9972-7c405a4d6278
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, Linux 2.6.30-1-686" {
insmod reiserfs
set root=(hd0,3)
search --no-floppy --fs-uuid --set
879e98ed-b1f4-4b94-9972-7c405a4d6278
linux /boot/vmlinuz-2.6.30-1-686
root=UUID=879e98ed-b1f4-4b94-9972-7c405a4d6278 ro
quiet
initrd /boot/initrd.img-2.6.30-1-686
}
menuentry "Debian GNU/Linux, Linux 2.6.30-1-686 (recovery mode)" {
insmod reiserfs
set root=(hd0,3)
search --no-floppy --fs-uuid --set
879e98ed-b1f4-4b94-9972-7c405a4d6278
linux /boot/vmlinuz-2.6.30-1-686
root=UUID=879e98ed-b1f4-4b94-9972-7c405a4d6278 ro
single
initrd /boot/initrd.img-2.6.30-1-686
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_otheros ###
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
menuentry "Microsoft Windows XP Professional" {
set root=(hd0,1)
search --no-floppy --fs-uuid --set 8288ca3b88ca2d8b
drivemap -s (hd0) $root
chainloader +1
}
### END /etc/grub.d/30_otheros ###
And fstab:
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/hda3 during installation
UUID=879e98ed-b1f4-4b94-9972-7c405a4d6278 / reiserfs notail
0
1
# swap was on /dev/hda5 during installation
UUID=e9704f44-36ec-4166-855d-3f74abb9b1ad none swap sw
0
0
/dev/hdb /media/cdrom0 udf,iso9660 user,noauto 0 0
Again, everything checks out yet grub stops with a "unknown filesystem"
error.
-RV
Reply to: