On Tue, May 06, 2008 at 01:26:03PM +0200, Robert Millan wrote: > On Sat, May 03, 2008 at 05:14:31PM +0200, Aurelien Jarno wrote: > > > > I am sure about that. The only difference is that /usr/sbin/update-grub > > does not uses the same command, but this one instead: > > > > grub-probe --device-map=/boot/grub/device.map -t drive -d /dev/vda1 > > > > And this command: > > 1) fails > > 2) destroys /boot/grub/device.map > > Ah, I think I see the problem. Please try this patch.
It does work for /dev/vda, but not for /dev/vda1: # grub-probe --device-map=/boot/grub/device.map -t drive -d /dev/vda -v grub-probe: info: `/dev/fd0' looks like a floppy drive, skipping grub-probe: info: the size of hd0 is 25165824 grub-probe: info: opening the device `/dev/vda' grub-probe: info: the size of hd0 is 25165824 grub-probe: info: the size of hd0 is 25165824 grub-probe: info: opening the device `/dev/vda1' grub-probe: info: opening the device `/dev/vda1' grub-probe: info: opening the device `/dev/vda1' grub-probe: info: opening the device `/dev/vda' grub-probe: info: the size of hd0 is 25165824 grub-probe: info: opening the device `/dev/vda' grub-probe: info: the size of hd0 is 25165824 grub-probe: info: opening the device `/dev/vda' grub-probe: info: the size of hd0 is 25165824 grub-probe: info: the size of hd0 is 25165824 grub-probe: info: opening the device `/dev/vda1' grub-probe: info: opening the device `/dev/vda1' grub-probe: info: the size of hd0 is 25165824 grub-probe: info: opening the device `/dev/vda' grub-probe: info: opening the device `/dev/vda' grub-probe: info: /dev/vda starts from 0 (hd0) # grub-probe --device-map=/boot/grub/device.map -t drive -d /dev/vda1 -v grub-probe: info: `/dev/fd0' looks like a floppy drive, skipping grub-probe: info: the size of hd0 is 25165824 grub-probe: info: opening the device `/dev/vda' grub-probe: info: the size of hd0 is 25165824 grub-probe: info: the size of hd0 is 25165824 grub-probe: info: opening the device `/dev/vda1' grub-probe: info: opening the device `/dev/vda1' grub-probe: info: opening the device `/dev/vda1' grub-probe: info: opening the device `/dev/vda' grub-probe: info: the size of hd0 is 25165824 grub-probe: info: opening the device `/dev/vda' grub-probe: info: the size of hd0 is 25165824 grub-probe: info: opening the device `/dev/vda' grub-probe: info: the size of hd0 is 25165824 grub-probe: info: the size of hd0 is 25165824 grub-probe: info: opening the device `/dev/vda1' grub-probe: info: opening the device `/dev/vda1' grub-probe: info: the size of hd0 is 25165824 grub-probe: info: opening the device `/dev/vda' grub-probe: info: opening the device `/dev/vda' grub-probe: info: Cannot find a GRUB drive for `/dev/vda1', will regenerate device.map and try again grub-probe: info: `/dev/fd0' looks like a floppy drive, skipping grub-probe: error: /boot/grub/device.map:2: Duplicated entry found /boot/grub/device.map is not destroyed anymore and still contains: (fd0) /dev/fd0 (hd0) /dev/vda -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [EMAIL PROTECTED] | [EMAIL PROTECTED] `- people.debian.org/~aurel32 | www.aurel32.net -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]