LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 09-18-2003, 06:16 PM   #1
cbjhawks
Member
 
Registered: Oct 2001
Location: Overland Park, KS
Distribution: OpenSuSE 11.4
Posts: 363

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
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,472

Rep: Reputation: 154Reputation: 154
"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.

see:
man tune2fs
 
  


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
auto mount samba file system nanjil Suse/Novell 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


All times are GMT -5. The time now is 03:33 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration