Bug#543795: grub-pc: ..with /dev/dm-0 as /, "grub-probe: error: cannot find a device for /"
Arnt Karlsen
arnt at c2i.net
Thu Aug 27 08:31:43 UTC 2009
On Thu, 27 Aug 2009 08:13:51 +0200, Felix wrote in message
<1251353631.2664.5.camel at fz.local>:
> Am Donnerstag, den 27.08.2009, 03:29 +0200 schrieb Arnt Karlsen:
>
> > ...aptitude snip pasted:
> > Errors were encountered while
> > processing:
> > grub-pc Press return to
> > continue.
>
> > grub-probe: error: cannot find a device for /.
> >
>
> > /dev/dm-0 71G 16G 52G 23% /
>
> That looks like the same bug as 542435 which was caused by dmestup
> 2.02.51-1 but fixed in the next upload
> 2.02.51-2
> Please make sure you're using the -2 version and then execute
> `echo change > /sys/block/dm-0/uevent'
> Then the /dev/mapper/* files shouldn't be anymore symlinks and
> grub-probe should work again.
>
..it did, and looks like a post-install script idea for -3. ;o)
arnt at a45:~ $ ssh -X root at 192.168.1.81
root at 192.168.1.81's password:
Linux a16 2.6.30-1-686 #1 SMP Sat Aug 15 19:11:58 UTC 2009 i686
The programs included with the Debian GNU/Linux system are free
software; the exact distribution terms for each program are described
in the individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Aug 25 15:28:39 2009 from a45.local
a16:~# echo change > /sys/block/dm-0/uevent
a16:~# dpkg --configure -a
Setting up grub-pc (1.96+20090826-2) ...
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
Generating grub.cfg ...
Found Debian background: moreblue-orbit-grub.png
Found linux image: /boot/vmlinuz-2.6.30-1-686
Found initrd image: /boot/initrd.img-2.6.30-1-686
done
a16:~#
--
..med vennlig hilsen = with Kind Regards from Arnt... ;o)
...with a number of polar bear hunters in his ancestry...
Scenarios always come in sets of three:
best case, worst case, and just in case.
More information about the Pkg-grub-devel
mailing list