grub-probe error: cannot find a grub drive for /dev/sda2

This happened to me installing Debian testing on a multi-device btrfs volume. Grub didn’t get installed and in console I had this error:

# update-grub
grub-probe: error: cannot find a GRUB drive for /dev/sda2
/dev/sdb2. Check your device.map

Turns out, it’s a bug in the script. I fixed it “on the fly” opening /usr/share/grub/grub-mkconfig_lib and searching for “uses_abstraction”, changing the line from:

abstraction="`"$grub_probe" --device "${device}" --target=abstraction`"

to

abstraction="`"$grub_probe" --device ${device} --target=abstraction`"
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s