Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Disk fsck message in log file?
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
trumee
Guru
Guru


Joined: 02 Mar 2003
Posts: 551
Location: London,UK

PostPosted: Fri Jul 01, 2016 12:05 pm    Post subject: [Solved] Disk fsck message in log file? Reply with quote

Hello,

Is there any way to find out from the log files whether the disks have been fscked on bootup?

I have a remote system which sometimes goes down due to power failure. It does have a UPS attached to it but I have seen occasions where the UPS itself has switched off. When the power resumes and the computer bootups the disks should have been fscked. However I cant find anything in the logs giving an indication of this.


Last edited by trumee on Fri Jul 01, 2016 1:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Fri Jul 01, 2016 12:57 pm    Post subject: Re: Disk fsck message in log file? Reply with quote

trumee wrote:
Is there any way to find out from the log files whether the disks have been fscked on bootup?

trumee ... not from logs, but the fs contains this information (at least with ext{3,4})

Code:
# dumpe2fs -h /dev/mapper/vg-root | egrep -i '^last'
dumpe2fs 1.42.13 (17-May-2015)
Last mounted on:          /
Last mount time:          Tue Jun 28 15:19:53 2016
Last write time:          Tue Jun 28 15:19:32 2016
Last checked:             Tue May 10 16:51:45 2016

HTH & best ... khay
Back to top
View user's profile Send private message
trumee
Guru
Guru


Joined: 02 Mar 2003
Posts: 551
Location: London,UK

PostPosted: Fri Jul 01, 2016 1:03 pm    Post subject: Reply with quote

I can see the status in /var/log/rc.log after modifying /etc/rc.conf to

Code:

rc_logger="YES"
rc_log_path="/var/log/rc.log"
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