Comment 6 for bug 16824

Revision history for this message
postmast3r (postmast3r) wrote : Re: incorrect groot setting after installation

(In reply to comment #2)

hmm. I might have gotten things slightly mixed up when recalling the issue from
memory with the exact partitions involved.

He installed Ubuntu Linux 5.04 on /dev/hdb2 (an "ext3" partition). He setup
swap to be on /dev/hdb1. When the Ubuntu installer sets up grub, it sets it up
assuming "/dev/hdb2" is grub's "hd(1,1)" and sets the grub root lines to that in
grub. But, after the installation, when he reboots and tries to boot Linux, it
then says error 22, which a quick search on the web indicates "partition not
found" (I guess the full text message did not appear on his machine when error
22 came up).

Changing the "root hd(1,1)" lines to "root hd(2,1)" fixes the error 22 message
even though his /dev/hdb2 is NOT "/dev/hdc2" as "root hd(2,1)" would indicate.
So, without "root hd(2,1)" he can't boot.

"sudo grub-install /dev/hda" on his machine outputs:
Due to a bug in xfs_freeze, the following command might produce a
segmentation
fault when /boot/grub is not in an XFS filesystem. This error is harmless
and
can be ignored.
xfs_freeze: specified file ["/boot/grub"] is not on an XFS filesystem
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script ^Grub-install'.

(hd0) /dev/hda
(hd1) /dev/hdb
(hd2) /dev/hdc

Indicating that grub's installer when booting in Ubuntu thinks "/dev/hdb" is (hd1).