Bug#467501: grub-pc: Fails to cleanly upgrade a grub legacy box with RAID1

Jonathan McDowell noodles at earth.li
Thu Feb 28 14:23:17 UTC 2008


On Thu, Feb 28, 2008 at 01:22:00PM +0100, Robert Millan wrote:
> Please provide the output of the following commands:
> 
>   sudo dd if=/dev/sda bs=1 count=2 skip=76 | od -tx1

meepok:~# dd if=/dev/sda bs=1 count=2 skip=76 | od -tx1
0000000 ff 00
0000002
2+0 records in
2+0 records out
2 bytes (2 B) copied, 7.1382e-05 s, 28.0 kB/s

>   sudo grub-setup -v "(hd0)"

meepok:~# grub-setup -v "(hd0)"
grub-setup: info: the size of hd0 is 488397168
grub-setup: info: opening the device `/dev/sda'
grub-setup: info: the size of hd0 is 488397168
grub-setup: info: opening the device `/dev/sda'
grub-setup: info: the size of hd0 is 488397168
grub-setup: info: opening the device `/dev/sda1'
grub-setup: info: opening the device `/dev/sda1'
grub-setup: info: the size of hd0 is 488397168
grub-setup: info: the size of hd0 is 488397168
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: the size of hd0 is 488397168
grub-setup: info: the size of hd1 is 488397168
grub-setup: info: opening the device `/dev/sdb'
grub-setup: info: the size of hd1 is 488397168
grub-setup: info: opening the device `/dev/sdb'
grub-setup: info: the size of hd1 is 488397168
grub-setup: info: opening the device `/dev/sdb1'
grub-setup: info: opening the device `/dev/sdb1'
grub-setup: info: the size of hd1 is 488397168
grub-setup: info: the size of hd1 is 488397168
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: the size of hd1 is 488397168
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda1'
grub-setup: info: opening the device `/dev/sda1'
grub-setup: info: the size of hd0 is 488397168
grub-setup: info: the size of hd0 is 488397168
grub-setup: info: the size of hd0 is 488397168
grub-setup: info: opening the device `/dev/sda1'
grub-setup: info: opening the device `/dev/sda1'
grub-setup: info: opening the device `/dev/sda1'
grub-setup: info: the size of hd0 is 488397168
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: opening the device `/dev/sda2'
grub-setup: info: the size of hd0 is 488397168
grub-setup: info: the size of hd1 is 488397168
grub-setup: info: the size of hd1 is 488397168
grub-setup: info: the size of hd1 is 488397168
grub-setup: info: opening the device `/dev/sdb1'
grub-setup: info: opening the device `/dev/sdb1'
grub-setup: info: opening the device `/dev/sdb1'
grub-setup: info: the size of hd1 is 488397168
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: opening the device `/dev/sdb2'
grub-setup: info: the size of hd1 is 488397168
grub-setup: info: prefix = /boot/grub
grub-setup: info: changing current directory to /dev/mapper
grub-setup: info: changing current directory to /dev
grub-setup: info: changing current directory to dri
grub-setup: info: changing current directory to satavg
grub-setup: info: changing current directory to snd
grub-setup: info: changing current directory to mapper
grub-setup: info: changing current directory to net
grub-setup: info: changing current directory to loop
grub-setup: info: changing current directory to shm
grub-setup: info: changing current directory to pts
grub-setup: info: getting the size of /boot/grub/boot.img
grub-setup: info: reading /boot/grub/boot.img
grub-setup: info: getting the size of /boot/grub/boot.img
grub-setup: info: getting the size of /boot/grub/core.img
grub-setup: info: reading /boot/grub/core.img
grub-setup: info: getting the size of /boot/grub/core.img
grub-setup: info: the size of hd0 is 488397168
grub-setup: info: setting the root device to `md0'
grub-setup: info: will embed the core image at sector 0x1
grub-setup: info: dos partition is -1, bsd partition is -1, prefix is /boot/grub
grub-setup: info: opening the device `/dev/sda'
grub-setup: info: opening the device `/dev/sda'
grub-setup: info: opening the device `/dev/sda'
grub-setup: info: opening the device `/dev/sda'

> (assuming /dev/sda is the disk you boot from, of course)

It is. I not that grub-setup claims to be setting the root device to
md0; I'm currently at work and the machine is my home box, but I'll try
rebooting tonight to see if it now boots without intervention.

J.

-- 
Hail Eris. All hail Discordia. Fnord?
This .sig brought to you by the letter U and the number 39
Product of the Republic of HuggieTag





More information about the Pkg-grub-devel mailing list