LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 03: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 .. bullseye bookworm
Posts: 1,833

Rep: Reputation: 108Reputation: 108
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, 07: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,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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, 06: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 .. bullseye bookworm
Posts: 1,833

Original Poster
Rep: Reputation: 108Reputation: 108
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



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 12:18 AM
FORCE SHUTDOWN -> Auto-Kill apps that prevent Shutdown - HOW ?? ttiihone Linux - General 3 01-19-2015 08:19 AM
[SOLVED] How to tell if /forcefsck fsck ran at reboot for ext4 anon091 Linux - Server 2 04-12-2013 03:32 AM
[SOLVED] how to remove forcefsck from / anon091 Linux - Newbie 5 04-01-2011 05:38 AM
"fsck died with exit status 6" , what to do after forcefsck ? frenchn00b Debian 3 06-19-2010 09:39 AM

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

All times are GMT -5. The time now is 09:57 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
Open Source Consulting | Domain Registration