[Bug 1357750] [NEW] Grub fails to install on software raid 1 + lvm + btrfs

Mike Power 1357750 at bugs.launchpad.net
Sat Aug 16 17:17:26 UTC 2014


Public bug reported:

 Currently due to
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1289977 my system
is not bootable.  The work around instructions are to dpkg-reconfigure
grub-pc.  However that does not work.  Here are the steps I take.

1) Download netboot.iso
2) dd netboot.iso onto usb drive
3) reboot nonbootable laptop on usb drive
4) Choose recovery menu option
5) Choose launch shell with root mounted on /target
6) cd /target/@
7) mount --bind /dev dev
8) mount --bind /proc proc
9) mount --bind /sys sys
10) chroot .
11) bash
12) dpkg-reconfigure grub-pc
Results: /usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?)
Expected: Grub to be installed on /dev/sdb and /dev/sdc

System information:
/dev/sdb,/dev/sdc (/dev/sda is the usb recovery device right now) are both members of a raid 1 using mdadm /dev/md127
/dev/md127 is a full lvm the volume group is called ds or /dev/ds, ubuntu didn't support swap on btrfs at the time
The lvm is split into two logical volumes one for swap, and one for root
The root lvm /dev/ds/root has the entire section given to a btrfs filesystem 
The btrfs filesystem has four "labels" @, @apt-snapshot....release-upgrade-raring, @...release-upgrade-saucy, @...release-upgrade-trusty, @home

lsb release output:
Distributor ID: Ubuntu
Description:     Ubuntu 14.04.1 LTS
Release:            14.04
Codename:       trusty

Can I provide any additional information?

I am going to try to reboot into a 14.04 ubuntu desktop and add bug
reporting information into this.

** Affects: grub2 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1357750

Title:
  Grub fails to install on software raid 1 + lvm + btrfs

Status in “grub2” package in Ubuntu:
  New

Bug description:
   Currently due to
  https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1289977 my system
  is not bootable.  The work around instructions are to dpkg-reconfigure
  grub-pc.  However that does not work.  Here are the steps I take.

  1) Download netboot.iso
  2) dd netboot.iso onto usb drive
  3) reboot nonbootable laptop on usb drive
  4) Choose recovery menu option
  5) Choose launch shell with root mounted on /target
  6) cd /target/@
  7) mount --bind /dev dev
  8) mount --bind /proc proc
  9) mount --bind /sys sys
  10) chroot .
  11) bash
  12) dpkg-reconfigure grub-pc
  Results: /usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?)
  Expected: Grub to be installed on /dev/sdb and /dev/sdc

  System information:
  /dev/sdb,/dev/sdc (/dev/sda is the usb recovery device right now) are both members of a raid 1 using mdadm /dev/md127
  /dev/md127 is a full lvm the volume group is called ds or /dev/ds, ubuntu didn't support swap on btrfs at the time
  The lvm is split into two logical volumes one for swap, and one for root
  The root lvm /dev/ds/root has the entire section given to a btrfs filesystem 
  The btrfs filesystem has four "labels" @, @apt-snapshot....release-upgrade-raring, @...release-upgrade-saucy, @...release-upgrade-trusty, @home

  lsb release output:
  Distributor ID: Ubuntu
  Description:     Ubuntu 14.04.1 LTS
  Release:            14.04
  Codename:       trusty

  Can I provide any additional information?

  I am going to try to reboot into a 14.04 ubuntu desktop and add bug
  reporting information into this.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1357750/+subscriptions



More information about the foundations-bugs mailing list