Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 09-18-2003, 06:16 PM   #1
Registered: Oct 2001
Location: Overland Park, KS
Distribution: OpenSuSE Leap 42.3
Posts: 368

Rep: Reputation: 30
What file contains auto-mount for fsck

there is a file that will check to see how many times a particular drv has been mounted and will force a check (fsck on that drv) after x number of times...does anyone know the name of that file..??...thanks in advance
Old 09-18-2003, 07:02 PM   #2
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,865

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
"does anyone know the name of that file..?"

The information is not kept in a file. It is kept in the file system descriptor on the disk. The way that you manipulate how oftn fsck is run against a partition is with the tune2fs command.

tune2fs should be used on an umounted partition. I have had it work OK on a mounted file system that was doing absolutely nothing. I always use tune2fs immediately after formatting a partition and before I mount it.

tune2fs -c 200 /dev/hda4
will cause fsck to run every 200 mounts of /dev/hda4

tune2fs -i 30 /dev/hda4
will cause fsck to run at the next mount after 30 days have passed.

man tune2fs


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
auto mount samba file system nanjil SUSE / openSUSE 1 11-25-2005 10:19 AM
mount -r while fsck is running? aaccomazzi Linux - Hardware 1 10-20-2004 04:00 PM
How to disable auto fsck during boot for specific volumes mansonmuni Linux - General 5 12-21-2003 09:54 PM
autofs enabled in kernel but auto.mount and auto.master are NOT in /etc! Alybyzrp Linux - General 0 11-11-2003 12:26 PM
SCRIPT: check if auto-mount mount-points are still mounted markus1982 Linux - Software 0 05-25-2003 05:48 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration