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 11-09-2023, 06:27 AM   #1
rhadmn
Member
 
Registered: Oct 2009
Location: Bangalore
Distribution: Redhat Linux, Solaris, CentOS
Posts: 35

Rep: Reputation: 1
Is FSCK order value required on CENTOS 8 RHEL 8 Versions


Hi Team,

Greetings for the day.

Kind request to please shed some light on the requirement of the FSCK order in the /etc/fstab entries on RHEL/CENTOS 8 Servers/VMs.

I mean is there any issue in Skipping it by mentioning the value '0'.

Regards.
 
Old 11-09-2023, 07:28 AM   #2
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,149

Rep: Reputation: 393Reputation: 393Reputation: 393Reputation: 393
I'm hardly an expert on fstab stuff, or the boot process in general. But fsck checks and repairs the filesystem. Why do you want to disable it? It takes virtually no time at all?

I think there is no harm in leaving it zero but eventually something will go sideways and you will wish you had it turned on I'd think anyway. Back in the day every distro I tried had the fstab all set to 0 on the fsck. Now they all have it set to 1 on root and 2 on the rest of the local drives. I'm sure it's not on by accident.
 
1 members found this post helpful.
Old 11-09-2023, 08:02 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,710

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by rhadmn View Post
Hi Team,
Greetings for the day.

Kind request to please shed some light on the requirement of the FSCK order in the /etc/fstab entries on RHEL/CENTOS 8 Servers/VMs. I mean is there any issue in Skipping it by mentioning the value '0'.
We aren't on your 'team'; we are volunteers here.

And as someone with Red Hat 'certifications', and *FOURTEEN YEARS* experience, you're honestly asking us about fstab and fsck??? If you know what fsck is and what it does, you know what the issues would be if you skipped it, especially on a damaged filesystem. And you don't tell us what the 'any issue' is with the system, why you're asking, or what kind of file systems are involved with the fsck in question.
 
Old 11-10-2023, 05:03 AM   #4
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,816

Rep: Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211
Without occasionally checking (and eventually fixing) file systems, corruptions will grow over time, and finally can lead to a "fubar" state.
There is normally no overhead with fsck. At a normal system shutdown a clean flag is set. At boot, fsck first checks the clean flag and skips all further actions.

Last edited by MadeInGermany; 11-10-2023 at 05:11 AM.
 
2 members found this post helpful.
Old 12-15-2023, 06:59 AM   #5
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,816

Rep: Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211
If your filesystem type is ext3/ext4 then it might run a fsck after some time.
You can tune it with e.g.
Code:
tune2fs -c 100 -i 6m /dev/xxxx
Meaning: run a fsck after 100 mounts (e.g. system bootups) or after 6 months, whichever comes first. A value -1 disables the respective limit.
List the current values:
Code:
tune2fs -l /dev/xxxx | grep -i -e "mount.count" -e "interval"
 
Old 12-15-2023, 08:25 AM   #6
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 794

Rep: Reputation: 253Reputation: 253Reputation: 253
See man fstab, "sixth field". Since you want the root system first due to its importance, it's set to 1. Others are 2. Stuff you don't want fsck'd are zero. Modern filesystems that journal don't have the long fsck time that something like ext2 had, even after a crash.
 
  


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
LXer: RHEL, RHEL, RHEL, fancy that: Rocky Linux would-be CentOS replacement hits RC1 milestone LXer Syndicated Linux News 0 05-05-2021 08:44 AM
Logi Sales Manager on Ncurses (invoice, invoicing, orders, order, sale order, sales order...)? Xeratul Linux - Software 0 03-25-2017 02:45 PM
ext4 won't mount - fsck required - 2nd fsck in less than a week td3201 Linux - General 1 09-10-2012 12:07 AM
strange value assignments variable = value, value?? ostrow30 Programming 2 07-24-2011 07:59 AM
difference between value *value and value * value PoleStar Linux - Newbie 1 11-26-2010 03:37 PM

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

All times are GMT -5. The time now is 08: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