I found this on the Archwiki
https://wiki.archlinux.org/index.php/Btrfs#GRUB

Missing root

Users experiencing the following: error no such device: root when
booting from a RAID style setup then edit /usr/share/grub/grub-
mkconfig_lib and remove both quotes from the line echo " search --no-
floppy --fs-uuid --set=root ${hints} ${fs_uuid}". Regenerate the config
for grub and the system should boot without an error.

>From the Saucy live-cd i used gparted to create the files system with
/dev/vda1 btrfs and swap on /dev/vda and /dev/vdb1 btrfs o /dev/vdb. I
set /dev/vda as the boot device. I then exited gparted and opened a
terminal and ran

sudo mkfs.btrfs -L RAID1 -m raid1 -d raid1 /dev/vda1 /dev/vdb1
sudo btrfs device scan

I then exited the terminall and installed Saucy. When the partitioner
starts chose "Something else". Mount / on /dev/vda1 but do not format or
you will destroy the raid. When the installer complains it can't install
the boot loader choose "Continue without installing boot loader".

When the installer is through, click on "Continue to try" rather than
restart. Open up a terminal and

sudo mount /dev/vda1 /mnt
sudo gedit

When gedit launches navigate to/usr/share/grub and open grub-mkconfig_lb
and remove the quotes from

echo " search --no-floppy --fs-uuid --set=root ${hints} ${fs_uuid}"

save the file and exit gedit. Now back in the terminal type

sudo grub-install --root-directory=/mnt/@ /dev/vda

/mnt/@ because the Saucy installer mount / on subvolume @ and mounts
/home on subvolume @home.

When that is done you should be able to reboot into the system.

I'm using /dev/vda instaed of /dev/sda because I installed this on a KVM
virtual machine. Also this is my first experience with btrfs and
installing Grub from scratch and post my experience as maybe helpful in
fixing Ubiquity.

Barry

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

Title:
  Trying to install saucy on a kvm vm. always crashes installing the
  bootloader.

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to