Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
user filesystem not mounted after reset power.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
zartus
n00b
n00b


Joined: 02 Jul 2015
Posts: 3

PostPosted: Thu Jul 02, 2015 9:54 pm    Post subject: user filesystem not mounted after reset power. Reply with quote

Can somebody help? I have strange problem that continues several years on different kernels.
I have installed gentoo as usual. Built custom kernel.

My fstab

/dev/sda1 / ext4 noatime 0 1
/dev/sda6 none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,ro 0 0
/dev/sda5 /mnt/ftp ext4 defaults,auto,noatime 0 2


When I rebutting with command "reboot" all seems ok and fs /mnt/ftp mounted.
But if there are happening power reset - this fs doesn't mounted after boot. And if then I make next "reboot" - this one mounted ok.
I tried different ways to solve this problem, but nothing helps.
Also fsck doesn't start too.

This situation is repeated on different pcs with installed gentoo. And there are nothing strange in log files.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9601
Location: almost Mile High in the USA

PostPosted: Thu Jul 02, 2015 11:13 pm    Post subject: Re: user filesystem not mounted after reset power. Reply with quote

zartus wrote:

/dev/sda5 /mnt/ftp ext4 defaults,auto,noatime 0 2

Don't know if this is the underlying cause but having "defaults,auto,noatime" is a bit contradictory, I think "defaults" includes "atime,auto" so I think all you need is

/dev/sda5 /mnt/ftp ext4 noatime 0 2

But I don't think this explains why it would mount on reboots but not cold starts... Is it unmounting your partition cleanly during shutdown? It also should make some indication of mounting during startup but it may scroll by quickly. Don't start with graphical mode and see what scrolls by during startup?
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
zartus
n00b
n00b


Joined: 02 Jul 2015
Posts: 3

PostPosted: Fri Jul 03, 2015 11:04 pm    Post subject: Re: user filesystem not mounted after reset power. Reply with quote

eccerr0r wrote:

But I don't think this explains why it would mount on reboots but not cold starts... Is it unmounting your partition cleanly during shutdown? It also should make some indication of mounting during startup but it may scroll by quickly. Don't start with graphical mode and see what scrolls by during startup?


I looked carefully two dmesg logs and there some difference:
good log:
[ 1.618893] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 1.627546] VFS: Mounted root (ext4 filesystem) readonly on device 8:1.
.......
[ 10.013768] EXT4-fs (sda5): mounted filesystem with ordered data mode. Opts: (null)
[ 10.560785] ip (5310) used greatest stack depth: 5740 bytes left
[ 11.766478] Adding 1952764k swap on /dev/sda6. Priority:-1 extents:1 across:1952764k
[ 12.090458] EXT4-fs (sda1): re-mounted. Opts: (null)
[ 12.133221] EXT4-fs (sda5): re-mounted. Opts: (null)

bad log(cold restart):
[ 1.591114] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[ 1.599470] EXT4-fs (sda1): write access will be enabled during recovery
[ 2.552177] Switched to clocksource tsc
[ 3.886884] EXT4-fs (sda1): orphan cleanup on readonly fs
[ 3.895635] EXT4-fs (sda1): 7 orphan inodes deleted
[ 3.904014] EXT4-fs (sda1): recovery complete
[ 4.127911] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 4.136371] VFS: Mounted root (ext4 filesystem) readonly on device 8:1.
.........
[ 14.317451] Adding 1952764k swap on /dev/sda6. Priority:-1 extents:1 across:1952764k
[ 14.643796] EXT4-fs (sda1): re-mounted. Opts: (null)

so during cold restart sda5 doesn't mounted without any errors.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9601
Location: almost Mile High in the USA

PostPosted: Sat Jul 04, 2015 4:17 am    Post subject: Reply with quote

Well your "cold start" had the signature that it didn't shut down properly. What happens if you shut down properly instead of "cold reset"?

The other oddity is that it says sda5 is "re-mounted" - it should be mounted only once...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
zartus
n00b
n00b


Joined: 02 Jul 2015
Posts: 3

PostPosted: Sat Jul 04, 2015 12:31 pm    Post subject: Reply with quote

eccerr0r wrote:
Well your "cold start" had the signature that it didn't shut down properly. What happens if you shut down properly instead of "cold reset"?

The other oddity is that it says sda5 is "re-mounted" - it should be mounted only once...


When i shutdown with halt -p - all works ok after boot and all fs are mounted.

If I press power button several seconds , power is switch off, and there are problems with mount sda5 after boot.
May be something wrong with fsck?
/etc/conf.d/fsck

# Pass any arguments to fsck.
# By default we preen.
# Linux systems also force -C0 and -T.
# If fsck_args is not specified then Linux systems also use -A
# (and -R if / is rw)
#fsck_args="-p"

# We can also specify the passno in /etc/fstab to check
# If you multiplex fsck (ie ln -s fsck /etc/init.d/fsck.late) then you can
# do an fsck outside of the normal scope, say for /home.
# Here are some exampes:-
#fsck_passno="=1 =2"
#fsck_passno=">1"
#fsck_passno="<2"

# If passno is not enough granularity, you can also specify mountpoints to
# check. This should NOT be used for the default non-multiplexed fsck, or your
# system might not be checked. Additionally, it is mutually exclusive with
# the fsck_passno setting.
#fsck_mnt=""
#fsck_mnt="/home"

# Most modern fs's don't require a full fsck on boot, but for those that do
# it may be advisable to skip this when running on battery.
# WARNING: Do not turn this off if you have any JFS partitions.
fsck_on_battery="YES"

# fsck_shutdown causes fsck to trigger during shutdown as well as startup.
# The end result of this is that if any periodic non-root filesystem checks are
# scheduled, under normal circumstances the actual check will happen during
# shutdown rather than at next boot.
# This is useful when periodic filesystem checks are causing undesirable
# delays at startup, but such delays at shutdown are acceptable.
fsck_shutdown="NO"
----------------------------
may be there should be option
fsck_mnt="/mnt/ftp" ?

or may be there should be other options(passno) in fstab for example
/dev/sda5 /mnt/ftp ext4 noatime 0 1
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum