LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-30-2014, 04:56 PM   #1
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Rep: Reputation: 174Reputation: 174
Routing boot time fsck not happening - Ubuntu Server 12.04


I am running Ubuntu 12.04 Server - 32 bit on an old Dell Power Edge 400 SC server with 5 large hard drives. It gets booted up and shut down frequently as I use it for backup storage and only bring it up when needed. The drives are supposed to be fsck checked every 30 boots (I believe that is the default when Ubuntu creates an ext4 file system). With Ubuntu 10.04 server it would in fact do that - and sometimes I had to wait a LONG time for all the drives to be checked as they seemed to be all on the same schedule. With 12.04 this is not happening.

If I connect into the server from a shell I see the following
Quote:
[ken@taylor12 ~]$ ssh taylor10
Welcome to Ubuntu 12.04.4 LTS (GNU/Linux 3.8.0-35-generic i686)

* Documentation: https://help.ubuntu.com/

System information as of Thu Jan 30 17:16:08 EST 2014

System load: 0.13 Processes: 157
Usage of /: 16.9% of 15.62GB Users logged in: 0
Memory usage: 11% IP address for eth0: 192.168.0.110
Swap usage: 0%

Graph this data and manage this system at:
https://landscape.canonical.com/

*** /dev/sdd1 will be checked for errors at next reboot ***

Last login: Thu Jan 30 16:58:14 2014 from 192.168.0.112
I rebooted and then reconnected. I received the same message. I must manually unmount and fsck the file system to clear the message.

I found some discussion about this dated 2011 but for the most part the thread explained how to do the job manually (which I know how to do). I do not find anything in launchpad which sounds like this - although I am not a very good launchpad searcher.

A look at the offending file system with tune2fs -l shows
Quote:
Mount count: 53
Maximum mount count: 30
so a check SHOULD be forced. Stranger still... I have checked the file systems on the other 4 large drives and they ALL show the mount count > max mount count yet they are not listed as "will be checked for errors at next reboot" nor are they checked upon a reboot.

Any ideas?

TIA,

Ken
 
Old 01-31-2014, 12:48 PM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,783

Rep: Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214
What is in field 6 of the /etc/fstab lines for those mounts? A "0" in that field means they will not be examined at boot time.
 
1 members found this post helpful.
Old 01-31-2014, 01:38 PM   #3
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Thanks rknichols! I believe you nailed it. I changed the 6th field to 1 and now the drives are checked at boot time when appropriate.

Ken
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make ext2 fsck time tolerant at boot ? Linux.tar.gz Linux - Software 4 03-06-2012 07:55 PM
How do I keep a filesystem from being checked with fsck at boot time? ccmelton Linux - General 1 05-10-2006 11:32 AM
fsck failure at boot time - hda mounted twice Steve2001 Linux - General 1 07-30-2005 10:45 AM
how to skip fsck at boot time? ItsNotMe SUSE / openSUSE 4 04-28-2005 05:31 AM
A good boot-time FSCK script? BFG-rat Linux - Software 2 04-18-2004 06:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration