LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-12-2010, 02:20 PM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,695

Rep: Reputation: 48
Safe to tune2fs a mounted volume to prevent disk checks at reboot?


I have some large volumes that I don't want to automatically be e2fsck'd when I reboot the server. is it safe to change maximum mount count to -1 and check interval to 0 while a volume is mounted, or will that cause problems to the file system?
 
Old 05-12-2010, 04:49 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,619

Rep: Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088
You can change the setting safely. Not checking the f/s at all (ever) is probably not advisable.
 
Old 05-12-2010, 04:50 PM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,695

Original Poster
Rep: Reputation: 48
Thanks Syg. I just want to not have it run during this one reboot in particular. I'm going to change the settings back afterward.
 
Old 02-06-2012, 01:49 PM   #4
dgwhiting
LQ Newbie
 
Registered: Nov 2008
Location: MA
Distribution: Ubuntu
Posts: 1

Rep: Reputation: 0
On a related note, is it safe to run "tune2fs -T now" against a mounted filesystem to reset the "Last checked" time? Thanks.
 
Old 02-06-2012, 01:52 PM   #5
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,695

Original Poster
Rep: Reputation: 48
My understanding of that option is yes as that's just setting the timestamp the volume was last checked, not actually doing any file system modifications. But you may want to let someone else chime in too.
 
Old 02-06-2012, 04:32 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,619

Rep: Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088
I work on the basis of "if it's safe to turn the journal on and off, what harm can any of the rest of the options do ?".
So yes, go for it. They all modify the filesystem, even if it's just meta-data.
 
Old 02-06-2012, 04:37 PM   #7
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,695

Original Poster
Rep: Reputation: 48
Yeah, guess i meant more like it wasn't trying to fix bad inodes and stuff like that, was just tweaking an attribute of the file system. i stand corrected.
 
  


Reply


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
Does shutdown -rF imply a -y on all the checks on reboot rjo98 Linux - Newbie 8 04-29-2010 11:59 AM
Windows Disk Checks on startup with dual boot kevin63661 Linux - General 2 07-01-2009 01:00 PM
Data more safe, Which tune2fs parameters do you use / advice ? frenchn00b Linux - General 0 10-26-2007 06:37 AM
Fsck checks SATA disk on every boot. aaargh486 Ubuntu 5 07-18-2007 02:04 PM
Script which checks Disk Volume - - on FC5 bskrakes Linux - General 1 10-11-2006 01:27 PM


All times are GMT -5. The time now is 05:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration