Gentoo Archives: gentoo-user

From: "J. Roeleveld" <joost@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Filesystem doesn't mount automatically after unclean shutdown
Date: Thu, 22 May 2014 12:43:19
Message-Id: 4146224.JIzQIgy31e@andromeda
In Reply to: Re: [gentoo-user] Filesystem doesn't mount automatically after unclean shutdown by Peter Humphrey
1 On Friday, May 16, 2014 01:12:52 PM Peter Humphrey wrote:
2 > On Wednesday 14 May 2014 22:29:46 Nikos Chantziaras wrote:
3 > > I have this weird problem where a filesystem (Ext4) refuses to mount
4 > > automatically after something like a power loss or forced shutdown.
5 > >
6 > > The fstab entry for it is:
7 > > LABEL=Data /mnt/Data ext4 defaults,relatime,exec 0 2
8 > >
9 > > During boot, this is what OpenRC tells me:
10 > > Root: clean, 805088/6553600 files, 9129899/26214400 blocks
11 > > Data: recovering journal
12 > > Data: clean, 364344/61546496 files, 137312260/246156800 blocks [ ok ]
13 > > * Mounting local filesystems ... [ ok ]
14 > > * Remounting root filesystem read/write ... [ ok ]
15 > > * Remounting filesystems ... [ ok ]
16 > > * Updating /etc/mtab ... [ ok ]
17 > >
18 > > If I reboot the system again, then all works fine and the FS is mounted
19 > > automatically. So this is a one-time thingy, happening only on the first
20 > > boot after an unclean power-off.
21 > >
22 > > It would seem that I've stumbled across an OpenRC bug? There's no errors
23 > > anywhere to be seem. According to the log output above, everything
24 > > should be fine. I suspect that the "recovering journal" step is what
25 > > causes this, but I don't know why.
26 > >
27 > > Anyone else encountered this?
28 >
29 > No, I can't say I have. I do occasionally have to use the reset button to
30 > reboot (because the KDM shutdown process had hung), and the system just
31 > restarts as Mick says.
32 >
33 > This is my root fstab entry:
34 >
35 > /dev/md5 / ext4 relatime 1 1
36 >
37 > The other partitions are similar except for being mounted from /dev/md7.
38
39 My (2.5 y/o) daughter occasionally presses the reset-button while sitting on
40 my chair... (yes, the button is on a really bad location on the case). So it
41 gets reset unintentionally regularly.
42 Using 2 disks with 2 partitions. 1 with RAID-1 for /boot and the other with
43 RAID-0 with LVM ontop where all the other partitions are inside LVM. Not had a
44 bad start in a very long time.
45 Last time it stopped for a manual fix was after the reset happened during a big
46 emerge-session.
47
48 --
49
50 Joost