You are not logged in.

#1 2018-11-13 11:27:51

SH1986
Member
Registered: 2018-02-05
Posts: 3

Failed to grub boot btrfs subvol on efi

Hi,

I have been trying over the last few days, to accomplish booting my "root on btrfs Subvol + EFI". I don't know if the problems have anything to do with my grub configuration, fstab, mkinitcpio.conf or maybe something else sad

FSTAB:

UUID=11c6127c-2d35-46ca-81b5-52ce43a950e6       /               btrfs           rw,noatime,compress=lzo,space_cache,commit=120,subvol=_root     0 0

UUID=0819-90E4          /boot/efi       vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro       0 2 

The reason that my EFI is mounted in /boot/efi and not directly into /boot is because, I would like to use grub-btrfs to get snapshots of my kernel, so I got the opportunity to go back if somethings goes wrong. I already tried on an earlier installation to have my EFI directly mounted into /boot and still had my root on btrfs, without any boot problems.

mkinitcpio.conf

 
MODULES=(btrfs)
HOOKS=(base udev autodetect modconf block filesystems keyboard fsck)

The only changes I did to my mkinitcpio.conf, was adding btrfs to modules.

/boot/efi/grub/grub.cfg

 
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-11c6127c-2d35-46ca-81b5-52ce43a950e6' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_gpt
        insmod part_gpt
        insmod btrfs
        set root='hd0,gpt2'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt2' --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  --hint-ieee1275='ieee1275//disk@0,gpt2' --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  11c6127c-2d35-46ca-81b5-52ce43a950e6
        else
          search --no-floppy --fs-uuid --set=root 11c6127c-2d35-46ca-81b5-52ce43a950e6
        fi
        echo    'Loading Linux linux ...'
        linux   /_root/boot/vmlinuz-linux root=UUID=11c6127c-2d35-46ca-81b5-52ce43a950e6 rw rootflags=subvol=_root  quiet
        echo    'Loading initial ramdisk ...'
        initrd  /_root/boot/initramfs-linux.img
}

My grub configuration madewith: "grub-mkconfig -o /boot/efi/grub/grub.cfg" (No manuel changes has been made)

My btrfs was made with:

mkfs.btrfs -L "Arch" -d raid0 -m raid1 /dev/sda2 /dev/sdb2

and my subvol:

btrfs subvolume create /mnt/_root

and the installation is made directly into the subvol:

mount -o noatime,compress=lzo,space_cache,commit=120,subvol=_root /dev/sda2 /mnt"

Grub finds the grub.cfg, but when I try to boot, I only got this:

Screenshot-2018-11-13-at-11-40-48.png

Any help is appreciated. I'm not a big Linux nerd, but tries to learn everyday smile

Best Regards
Soren

Last edited by SH1986 (2018-11-13 11:55:52)

Offline

#2 2018-11-16 20:39:47

SH1986
Member
Registered: 2018-02-05
Posts: 3

Re: Failed to grub boot btrfs subvol on efi

Seems the problem resist in my VMware Fusion, I can't tel way, but after I moved to bare metal, the setup works and boots successfully:)

Offline

Board footer

Powered by FluxBB