LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-19-2018, 04:44 AM   #1
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie stretch buster
Posts: 1,702

Rep: Reputation: 106Reputation: 106
Thumbs down /forcefsck, shutdown -F -r 1


Hya

To whom it may concern.

I knew that -F option for shutdown command was removed.
I did not know that /forcefsck was obsolete.

I needed to check file system integrity. So, I did
Code:
touch /forcefsck
shutdown -r
I checked that /forcefsck was gone after reboot.

BUT fact is that file check was NOT performed.

Why I noticed?
Code:
tune2fs -l /dev/###
shows that file system check was done almost two years ago and that several hundred mount times since then.

system: Debian testing amd64
 
Old 01-19-2018, 08:51 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,820
Blog Entries: 15

Rep: Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664
You can set how often the fsck is done with tune2fs itself. Run "man tune2fs" and look at the "-c" (count) and "-i" (interval) options.

If they've not been checked in 2 years it seems likely someone disabled the default count and interval. Some people do this to prevent large filesystems (e.g. those used for databases) being automatically checked on reboot because for ext2 and ext3 that could take a while. For ext4 it usually is fairly painless. If you DO disable automatic fsck then you should have a schedule to manually run it periodically. You also should only do such disabling for large filesystems like data and not for your root and other system filesystems. If everything is in root filesystem and you don't want to wait for fsck to finish you should seriously consider re-ordering things so that data is not in root filesystem any longer.

You don't say whether your running ext2, ext3 or ext4. As noted fsck for ext4 is generally quick and painless so there is little reason to disable automatic checks even for large data filesystems.
 
Old 01-19-2018, 07:46 PM   #3
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie stretch buster
Posts: 1,702

Original Poster
Rep: Reputation: 106Reputation: 106
Hya,

Thanks. My penguins look better now. The file system used on this one is ext4.
By the way, I do not see much reason for these fsck related changes.

cheers
 
  


Reply

Tags
ext4, fsck, update


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
what is the default powerstate (e.g. S3,S4,S5) for the command 'shutdown -hP' or 'shutdown -hH' or 'shutdown -h' badbetty Slackware 6 11-12-2017 01:18 AM
FORCE SHUTDOWN -> Auto-Kill apps that prevent Shutdown - HOW ?? ttiihone Linux - General 3 01-19-2015 09:19 AM
[SOLVED] How to tell if /forcefsck fsck ran at reboot for ext4 rjo98 Linux - Server 2 04-12-2013 04:32 AM
[SOLVED] how to remove forcefsck from / rjo98 Linux - Newbie 5 04-01-2011 06:38 AM
"fsck died with exit status 6" , what to do after forcefsck ? frenchn00b Debian 3 06-19-2010 10:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:40 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration