* [gentoo-user] Filesystem doesn't mount automatically after unclean shutdown
@ 2014-05-14 19:29 Nikos Chantziaras
2014-05-16 9:47 ` Mick
2014-05-16 12:12 ` Peter Humphrey
0 siblings, 2 replies; 4+ messages in thread
From: Nikos Chantziaras @ 2014-05-14 19:29 UTC (permalink / raw
To: gentoo-user
I have this weird problem where a filesystem (Ext4) refuses to mount
automatically after something like a power loss or forced shutdown.
The fstab entry for it is:
LABEL=Data /mnt/Data ext4 defaults,relatime,exec 0 2
During boot, this is what OpenRC tells me:
Root: clean, 805088/6553600 files, 9129899/26214400 blocks
Data: recovering journal
Data: clean, 364344/61546496 files, 137312260/246156800 blocks [ ok ]
* Mounting local filesystems ... [ ok ]
* Remounting root filesystem read/write ... [ ok ]
* Remounting filesystems ... [ ok ]
* Updating /etc/mtab ... [ ok ]
If I reboot the system again, then all works fine and the FS is mounted
automatically. So this is a one-time thingy, happening only on the first
boot after an unclean power-off.
It would seem that I've stumbled across an OpenRC bug? There's no errors
anywhere to be seem. According to the log output above, everything
should be fine. I suspect that the "recovering journal" step is what
causes this, but I don't know why.
Anyone else encountered this?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] Filesystem doesn't mount automatically after unclean shutdown
2014-05-14 19:29 [gentoo-user] Filesystem doesn't mount automatically after unclean shutdown Nikos Chantziaras
@ 2014-05-16 9:47 ` Mick
2014-05-16 12:12 ` Peter Humphrey
1 sibling, 0 replies; 4+ messages in thread
From: Mick @ 2014-05-16 9:47 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: Text/Plain, Size: 1780 bytes --]
On Wednesday 14 May 2014 20:29:46 Nikos Chantziaras wrote:
> I have this weird problem where a filesystem (Ext4) refuses to mount
> automatically after something like a power loss or forced shutdown.
>
> The fstab entry for it is:
>
> LABEL=Data /mnt/Data ext4 defaults,relatime,exec 0 2
>
> During boot, this is what OpenRC tells me:
>
> Root: clean, 805088/6553600 files, 9129899/26214400 blocks
> Data: recovering journal
> Data: clean, 364344/61546496 files, 137312260/246156800 blocks [ ok ]
> * Mounting local filesystems ... [ ok ]
> * Remounting root filesystem read/write ... [ ok ]
> * Remounting filesystems ... [ ok ]
> * Updating /etc/mtab ... [ ok ]
It doesn't show that it failed to mount /
What does syslog show?
> If I reboot the system again, then all works fine and the FS is mounted
> automatically. So this is a one-time thingy, happening only on the first
> boot after an unclean power-off.
>
> It would seem that I've stumbled across an OpenRC bug? There's no errors
> anywhere to be seem. According to the log output above, everything
> should be fine. I suspect that the "recovering journal" step is what
> causes this, but I don't know why.
>
> Anyone else encountered this?
I don't know why your system does this. I have had a few forced shutdowns
with root on ext4 and the system mounts / after it recovers and cleans messed
up inodes.
However this is how fstab looks in my case:
/dev/sda7 / ext4 noatime 0 1
Could your problem be related to your relatime mount option?
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] Filesystem doesn't mount automatically after unclean shutdown
2014-05-14 19:29 [gentoo-user] Filesystem doesn't mount automatically after unclean shutdown Nikos Chantziaras
2014-05-16 9:47 ` Mick
@ 2014-05-16 12:12 ` Peter Humphrey
2014-05-22 12:42 ` J. Roeleveld
1 sibling, 1 reply; 4+ messages in thread
From: Peter Humphrey @ 2014-05-16 12:12 UTC (permalink / raw
To: gentoo-user
On Wednesday 14 May 2014 22:29:46 Nikos Chantziaras wrote:
> I have this weird problem where a filesystem (Ext4) refuses to mount
> automatically after something like a power loss or forced shutdown.
>
> The fstab entry for it is:
>
> LABEL=Data /mnt/Data ext4 defaults,relatime,exec 0 2
>
> During boot, this is what OpenRC tells me:
>
> Root: clean, 805088/6553600 files, 9129899/26214400 blocks
> Data: recovering journal
> Data: clean, 364344/61546496 files, 137312260/246156800 blocks [ ok ]
> * Mounting local filesystems ... [ ok ]
> * Remounting root filesystem read/write ... [ ok ]
> * Remounting filesystems ... [ ok ]
> * Updating /etc/mtab ... [ ok ]
>
> If I reboot the system again, then all works fine and the FS is mounted
> automatically. So this is a one-time thingy, happening only on the first
> boot after an unclean power-off.
>
> It would seem that I've stumbled across an OpenRC bug? There's no errors
> anywhere to be seem. According to the log output above, everything
> should be fine. I suspect that the "recovering journal" step is what
> causes this, but I don't know why.
>
> Anyone else encountered this?
No, I can't say I have. I do occasionally have to use the reset button to
reboot (because the KDM shutdown process had hung), and the system just
restarts as Mick says.
This is my root fstab entry:
/dev/md5 / ext4 relatime 1 1
The other partitions are similar except for being mounted from /dev/md7.
--
Regards
Peter
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] Filesystem doesn't mount automatically after unclean shutdown
2014-05-16 12:12 ` Peter Humphrey
@ 2014-05-22 12:42 ` J. Roeleveld
0 siblings, 0 replies; 4+ messages in thread
From: J. Roeleveld @ 2014-05-22 12:42 UTC (permalink / raw
To: gentoo-user
On Friday, May 16, 2014 01:12:52 PM Peter Humphrey wrote:
> On Wednesday 14 May 2014 22:29:46 Nikos Chantziaras wrote:
> > I have this weird problem where a filesystem (Ext4) refuses to mount
> > automatically after something like a power loss or forced shutdown.
> >
> > The fstab entry for it is:
> > LABEL=Data /mnt/Data ext4 defaults,relatime,exec 0 2
> >
> > During boot, this is what OpenRC tells me:
> > Root: clean, 805088/6553600 files, 9129899/26214400 blocks
> > Data: recovering journal
> > Data: clean, 364344/61546496 files, 137312260/246156800 blocks [ ok ]
> > * Mounting local filesystems ... [ ok ]
> > * Remounting root filesystem read/write ... [ ok ]
> > * Remounting filesystems ... [ ok ]
> > * Updating /etc/mtab ... [ ok ]
> >
> > If I reboot the system again, then all works fine and the FS is mounted
> > automatically. So this is a one-time thingy, happening only on the first
> > boot after an unclean power-off.
> >
> > It would seem that I've stumbled across an OpenRC bug? There's no errors
> > anywhere to be seem. According to the log output above, everything
> > should be fine. I suspect that the "recovering journal" step is what
> > causes this, but I don't know why.
> >
> > Anyone else encountered this?
>
> No, I can't say I have. I do occasionally have to use the reset button to
> reboot (because the KDM shutdown process had hung), and the system just
> restarts as Mick says.
>
> This is my root fstab entry:
>
> /dev/md5 / ext4 relatime 1 1
>
> The other partitions are similar except for being mounted from /dev/md7.
My (2.5 y/o) daughter occasionally presses the reset-button while sitting on
my chair... (yes, the button is on a really bad location on the case). So it
gets reset unintentionally regularly.
Using 2 disks with 2 partitions. 1 with RAID-1 for /boot and the other with
RAID-0 with LVM ontop where all the other partitions are inside LVM. Not had a
bad start in a very long time.
Last time it stopped for a manual fix was after the reset happened during a big
emerge-session.
--
Joost
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-05-22 12:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-14 19:29 [gentoo-user] Filesystem doesn't mount automatically after unclean shutdown Nikos Chantziaras
2014-05-16 9:47 ` Mick
2014-05-16 12:12 ` Peter Humphrey
2014-05-22 12:42 ` J. Roeleveld
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox