Grub-probe Error
when running in a chroot. Before switching to the chroot, it's necessary to mount at least
Grub-probe Error Failed To Get Canonical Path Of /cow
the /dev and /proc directories. However sometimes we've seen failed to get canonical path of udev this issue even with these mounts properly configured. In this example vm1 represens the device grub install is dev mounted our system is running on; it could as easily have been /dev/sda1 or /dev/sdx4. ~ # mount /dev/vg0/vm1 /mnt/vm1 ~ # mount -o bind /dev
Grub Mkconfig Failed To Get Canonical Path
/mnt/vm1/dev ~ # mount -o bind /dev/pts /mnt/vm1/dev/pts ~ # mount -o bind /proc /mnt/vm1/proc ~ # mount -o bind /run /mnt/vm1/run ~ # mount -o bind /sys /mnt/vm1/sys ~ # chroot /mnt/vm1 /bin/bash Viewing grub-mkconfig Details Run grub-mkconfig with debug spew to see details. ~ # sh -x /usr/sbin/grub-mkconfig
Grub Install Will Not Proceed With Blocklists
-o /boot/grub/grub.cfg Work Arounds If grub-probe still fails for you, even if properly entering chroot there is one last-ditch work-around. The purpose of grub-probe is to simply output the file-system type for /. So, in the worst case you can do this. ~ # mv /usr/sbin/grub-probe /usr/sbin/grub-probe.orig ~ # curl edoceo.com/pub/grub-probe.sh > /usr/sbin/grub-probe ~ # chmod 0755 /usr/sbin/grub-probe Here we effectively replace the binary grub-probe with a shell script that simply echos a known good value. Core of grub-probe The grub-probe utility is a binary that does something like this. Examine /proc/filesystems Examine /boot/grub/device.map Probe /dev/sd* Examine /proc/devices Examine /proc/self/mountinfo From that information it will output the file-system type, device, file-system UUID which are fed to the grub-mkconfig Please enable JavaScript to view the comments powered by Disqus. Loading Comments from Disqus... APIs | Imperium | Radix© 1999-2016 Edoceo, Inc"edoceo" is a registered trademark of Edoceo, Inc.
for grub-pc is src:grub2. Reported by: Michael Ostermeier Date: Tue, 22 Jun 2010 19:42:02 UTC Severity: normal Found in version grub2/1.98-1 Done: Vladimir 'φ-coder/phcoder' Serbinenko Bug is archived. No further changes may be made. Toggle useless messagesView this report as an mbox folder, status mbox, maintainer mbox Report forwarded to debian-bugs-dist@lists.debian.org, GRUB Maintainers : Bug#586815; Package grub-pc. (Tue, 22 Jun 2010 19:42:04 GMT) Full text and rfc822 format available. Acknowledgement sent to Michael Ostermeier : New Bug report received and forwarded. Copy sent to GRUB Maintainers . (Tue, 22 Jun 2010 19:42:05 GMT) Full text and rfc822 format available. Message #5 received at submit@bugs.debian.org (full text, mbox, reply): From: Michael Ostermeier To: submit@bugs.debian.org Subject: grub-probe: error: cannot find a device for / is still a problem with dmcrypt, lvm2 and /dev/sda Date: Tue, 22 Jun 2010 21:31:12 +0200 Package: grub-pc Version: 1.98-1 Hello, congratulations to Albin (#542425), but the problem is still valid for me. I am running Debian testing with everything up to date (eccept the kernel, which i cannot use due to this bug). It all started a few days ago after an apt-get update. Since that time, grub shows no background-picture on boot (which is no problem for me) and update-grub doesnt work: “# update-grub /usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).” Yes, surely it is. Look here: “# cat /proc/mounts rootfs / rootfs rw 0 0 none /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0 none /proc proc rw,nosuid,nodev,noexec,relatime 0 0 none /dev devtmpfs rw,relatime,size=508048k,nr_inodes=127012,mode=755 0 0 none /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0 /dev/mapper/Taschenrechner-root / ext3 rw,relatime,errors=remount-ro,data=ordered 0 0 tmpfs /lib/init/rw tmpfs rw,nosuid,relatime,mode=755 0 0 tmpfs /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0 /dev/sda1 /boot ext2 rw,relatime,errors=continue 0 0 /dev/dm-3 /home ext3 rw,relatime,errors=continue,data=ordered 0 0 fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0” I ran # apt-get remove linux-image-2.6.26-2-686 and got (german environment