Gentoo Archives: gentoo-user

From: John Covici <covici@××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] fsck check of /usr on a separate partition fails during boot
Date: Sat, 13 Jan 2018 13:35:53
Message-Id: m3tvvpvq34.wl-covici@ccs.covici.com
In Reply to: [gentoo-user] fsck check of /usr on a separate partition fails during boot by Andrew Barchuk
1 On Sat, 13 Jan 2018 05:58:43 -0500,
2 Andrew Barchuk wrote:
3 >
4 > Hi folks,
5 >
6 > I've posted about this problem to the forums[1] without luck despite
7 > getting more than a thousand views so I thought I'll try here.
8 >
9 > My system boots successfully but filesystem check fails for /usr which
10 > is on a separate partition:
11 >
12 > * Checking local filesystems ...
13 > /dev/mapper/MacVg-gentoo--root: clean, 2390/65536 files, 30938/262144 blocks
14 > /dev/mapper/MacVg-gentoo--usr is mounted.
15 > e2fsck: Cannot continue, aborting.
16 >
17 >
18 > /dev/mapper/MacVg-gentoo--var: clean, 22647/65536 files, 59083/262144 blocks
19 > /dev/mapper/MacVg-gentoo--home: clean, 8080/917504 files, 243397/3670016 blocks
20 > /dev/mapper/MacVg-data: clean, 5293/3145728 files, 8945157/12582912 blocks
21 > * Operational error
22 > [ !! ]
23 >
24 > I use LVM on LUKS container for my partitions and an initramfs built
25 > with genkernel.
26 >
27 > My fstab:
28 >
29 > /dev/MacVg/gentoo-root / ext4 defaults 0 1
30 > /dev/MacVg/gentoo-usr /usr ext4 defaults 0 2
31 > /dev/MacVg/gentoo-var /var ext4 nodev,nosuid 0 2
32 > /dev/MacVg/gentoo-home /home ext4 nodev,nosuid 0 2
33 > /dev/MacVg/data /data ext4 nodev,nosuid,noexec 0 2
34 > LABEL=EFI /boot vfat noauto,umask=0022 0 2
35 > /dev/MacVg/swap none swap defaults 0 0
36 > tmpfs /tmp tmpfs nosuid,nodev,size=1G,mode=1777 0 0
37 > tmpfs /var/tmp tmpfs nosuid,nodev,size=8G,mode=1777 0 0
38 >
39 > Any ideas what is going on and how do I make the fsck check succeed?
40 > Maybe I should file it as an OpenRC bug but I'm not completely sure if
41 > it's not me doing something wrong.
42 > Thanks in advance for any help.
43 >
44 > 1. https://forums.gentoo.org/viewtopic-t-1075174-highlight-.html
45 >
46
47 I bet you are using genkernel or gentoo-next to generate your initrd.
48 If so, its because the script they have mounts the /usr at the wrong
49 time, and you cannot do e2fsck to a mounted disk. You might have
50 better luck using dracut -- be sure to have the use flag of -systemd
51 if you are using openrc.
52
53 --
54 Your life is like a penny. You're going to lose it. The question is:
55 How do
56 you spend it?
57
58 John Covici wb2una
59 covici@××××××××××.com

Replies

Subject Author
Re: [gentoo-user] fsck check of /usr on a separate partition fails during boot Andrew Barchuk <andrew@×××××××.io>