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 13:23:45
Message-Id: 3101306.gRkdNbly0u@wstn
In Reply to: Re: [gentoo-user] Can't boot btrfs by Peter Humphrey
1 On Friday 31 July 2015 13:33:18 I wrote:
2 > On Friday 31 July 2015 06:44:54 Rich Freeman wrote:
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.
9 > I'd also tried the initramfs but that didn't help either. I'll try them
10 > again.
11
12 This time I tried "device=/dev/sda3,/dev/sdb3" in case that was the proper
13 syntax, but it made no discernible difference - the final message from the
14 kernel panic was the same "VFS: Unable to mount roofs on unknown-block(8,3)".
15
16 --->8
17
18 > > I believe that as long as dracut can find the btrfs utility it will
19 > > put it in the initramfs.
20
21 Indeed it did so for me (this was today when I ran
22 "dracut --kver 4.0.5-gentoo" again:
23
24 # lsinitrd -k 4.0.5-gentoo | grep btr
25 btrfs
26 -rwxr-xr-x 1 root root 142 Jun 15 11:27 lib64/dracut/hooks/initqueue/timeout/10-btrfs_timeout.sh
27 -rw-r--r-- 1 root root 418 Apr 26 14:07 lib64/udev/rules.d/64-btrfs.rules
28 -rwxr-xr-x 1 root root 427048 Jul 31 13:39 sbin/btrfs
29 -rwxr-xr-x 1 root root 427048 Jul 31 13:39 sbin/btrfsck
30 -rwxr-xr-x 1 root root 187384 Jul 31 13:39 sbin/btrfs-zero-log
31 -rwxr-xr-x 1 root root 1196 Jul 30 08:50 sbin/fsck.btrfs
32
33 > > Otherwise there isn't much more to this
34
35 I've been thinking that for a few days now :)
36
37 > > I think these two issues are the only real problems you're having,
38 > > depending on which route you decide to take with the initramfs (which I
39 > > still recommend, but you could of course have separate grub lines to boot
40 > > with and without it if you want to experiment).
41
42 Yes, I'm playing with two grub entries, of which one tries devices= and the
43 other includes this line (is the syntax right? The file does exist):
44
45 initrd /boot/initramfs-4.0.5-gentoo.img
46
47 In the case of the initramfs the 8,3 in the kernel panic message becomes 8,19.
48 Is that a useful clue?
49
50 Another wobbler: as far as I can remember I haven't done anything about
51 compression, but could it have crept in somewhere?
52
53 And another: my dicky memory says that after booting SysRescCD to lay out the
54 new partitions and restore my rescue system, I booted the latter to do the
55 rest of the work, including mkfs.btrfs. Perhaps I should start again right
56 from the beginning but using SysRescCD's mkfs.btrfs. That'll be another day's
57 work.
58
59 --
60 Rgds
61 Peter

Replies

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