Hi,
Is it safe to run tune2fs -c -1 -i 0 /dev/sda2 on mounted file system
Basically, this is a command to disable fsck based on reboot count & last fsck time.
-- Regards, Sherin
On Thu, Jul 7, 2011 at 06:32, Sherin George list@sheringeorge.co.cc wrote:
Is it safe to run tune2fs -c -1 -i 0 /dev/sda2 on mounted file system
Yes.
Hi,
Is it safe to run tune2fs -c -1 -i 0 /dev/sda2 on mounted file system
Basically, this is a command to disable fsck based on reboot count & last fsck time.
The RHEL/CentOS installed does exactly this, -c 0 -i 0, so yes it's considered safe.
Simon
On Thu, Jul 7, 2011 at 11:10 PM, Simon Matter simon.matter@invoca.ch wrote:
Hi,
Is it safe to run tune2fs -c -1 -i 0 /dev/sda2 on mounted file system
Basically, this is a command to disable fsck based on reboot count & last fsck time.
The RHEL/CentOS installed does exactly this, -c 0 -i 0, so yes it's considered safe.
Simon
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Hi,
It would be much better controlling this values from your /etc/fstab file, so in case of any future references to fsck on boot, you will know what's configured by file. man fstab , and read about the sixth field.
yonatan pingle yonatan.pingle@gmail.com wrote:
It would be much better controlling this values from your /etc/fstab file, so in case of any future references to fsck on boot, you will know what's configured by file. man fstab , and read about the sixth field.
I would disagree with that as there's a difference in semantics. If you set the 6th fstab field to zero, checks are never performed at all; this is suitable for read-only mounts and other special cases. Going the tune2fs route, though, just turns off the flags that say, "this filesystem appears to be clean but it's been a while since we checked, so we're going to check anyway". If you set the tune2fs flags to zero but leave the fstab flag set, then as long as you've done a clean shutdown you will not get an fsck on boot. OTOH if you've had a crash, the filesystem will not be marked as clean and it will be checked at the next boot, which is a whole lot safer than just using it. With journaled filesystems, it's also relatively fast.
I can't think of a situation where I would have a "normal" local filesystem mounted read-write but for which I would disable fsck in fstab.
Devin
It is safer than cross-posting to multiple OS discussion lists.... On Jul 6, 2011 10:32 PM, "Sherin George" list@sheringeorge.co.cc wrote:
Hi,
Is it safe to run tune2fs -c -1 -i 0 /dev/sda2 on mounted file system
Basically, this is a command to disable fsck based on reboot count & last fsck time.
-- Regards, Sherin _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Fri, 8 Jul 2011, Mark wrote:
To: CentOS mailing list centos@centos.org From: Mark mhullrich@gmail.com Subject: Re: [CentOS] Is it safe to run tune2fs -c -1 -i 0 /dev/sda2 on mounted file system
It is safer than cross-posting to multiple OS discussion lists.... On Jul 6, 2011 10:32 PM, "Sherin George" list@sheringeorge.co.cc wrote:
Yep. You can get shot at dawn for doing that on this list here - LOL!
Keith
----------------------------------------------------------------- Websites: http://www.karsites.net http://www.php-debuggers.net http://www.raised-from-the-dead.org.uk
All email addresses are challenge-response protected with TMDA [http://tmda.net] -----------------------------------------------------------------