Gentoo Archives: gentoo-user

From: Peter Humphrey <peter@××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Can't boot btrfs
Date: Fri, 31 Jul 2015 12:33:32
Message-Id: 4796306.43bdYCfrks@wstn
In Reply to: Re: [gentoo-user] Can't boot btrfs by Rich Freeman
1 On Friday 31 July 2015 06:44:54 Rich Freeman wrote:
2
3 > As Neil already pointed out, if you're not using an initramfs you need
4 > to put all your devices on this line if they're part of an array. The
5 > kernel will not scan to find the others.
6
7 I didn't mention it the first time but I'd already tried
8 device=/dev/sda3,device=/dev/sdb3 on the command line and it didn't help. I'd
9 also tried the initramfs but that didn't help either. I'll try them again.
10
11 > If you do use an initramfs you really should use a UUID or label
12 > instead of a device name, but a device name will work as long as it
13 > happens to not get reordered on you.
14
15 I have only two SATA drives, both SSD, so even if they do get reordered they
16 should still result in the same, no?
17
18 > > The other thing I've tried is to build an initramfs with dracut. I tried
19 > > to include its btrfs module but it refused because it couldn't find a
20 > > command btrfs. So I recompiled the kernel with btrfs as a module and added
21 > > 'filesystems+="btrfs" ' into dracut.conf. Still no success.
22 >
23 > Do you have btrfs-utils installed?
24
25 I have btrfs-progs, which I assume is what you mean.
26
27 > Dracut should work fine with btrfs built into the kernel natively or as a
28 > module, though if you want to boot directly it will have to be native
29
30 Yes, of course, I understand that. I tried it both ways round, as I said.
31
32 > I believe that as long as dracut can find the btrfs utility it will
33 > put it in the initramfs.
34
35 I'll check that again with lsinitrd.
36
37 > Otherwise there isn't much more to this - I think these two issues are
38 > the only real problems you're having, depending on which route you
39 > decide to take with the initramfs (which I still recommend, but you
40 > could of course have separate grub lines to boot with and without it
41 > if you want to experiment).
42
43 Indeed. Thank you both.
44
45 --
46 Rgds
47 Peter

Replies

Subject Author
Re: [gentoo-user] Can't boot btrfs Peter Humphrey <peter@××××××××××××.uk>