Gentoo Archives: gentoo-user

From: Rich Freeman <rich0@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Can't boot btrfs
Date: Fri, 31 Jul 2015 19:50:29
Message-Id: CAGfcS_nhCsZ-tFSBkq9fujQKWdDnASK8UYXZ=mKispxiy=uDzw@mail.gmail.com
In Reply to: [gentoo-user] Re: Can't boot btrfs by James
1 On Fri, Jul 31, 2015 at 11:50 AM, James <wireless@×××××××××××.com> wrote:
2 >
3 > As many know, I have made many failed attempts to get btrfs in raid 1 working
4 > on gentoo, and have to this date, failed.
5 >
6
7 Interesting. I've never had any problems with it. I boot using
8 grub2+dracut with root on a single-device btrfs, and /usr on a
9 multi-device raid1 btrfs (and dracut mounts both).
10
11 As long as you pass a valid root= dracut should just find and mount
12 all the devices for your root. Note that it will attempt to read
13 /etc/fstab and remount your root using whatever is in that, so make
14 sure it is valid.
15
16 Some relevant config:
17 from grub.cfg:
18 linux /root1/boot/vmlinuz-3.18.19
19 root=UUID=7d9f3772-a39c-408b-9be0-5fa26eec8342 ro
20 rootflags=subvol=root1 init=/usr/lib/systemd/systemd
21 video=1920x1080-32@60 crashkernel=64M net.ifnames=0
22 libahci.ignore_sss=1
23 initrd /root1/boot/initramfs-3.18.19.img
24
25 from fstab:
26 /dev/disk/by-uuid/7d9f3772-a39c-408b-9be0-5fa26eec8342 /
27 btrfs noatime,ssd,nodiscard,compress=none 0 0
28 /dev/disk/by-uuid/cd074207-9bc3-402d-bee8-6a8c77d56959 /data
29 btrfs noatime,compress=none 0 0
30
31 Compression is transparent - the mount option only affects future
32 writes to the device, and you don't need anything to correctly mount
33 the drive.
34
35 --
36 Rich

Replies

Subject Author
[gentoo-user] Re: Can't boot btrfs James <wireless@×××××××××××.com>