Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 02-29-2004, 01:49 PM   #1
Registered: Apr 2003
Location: Baltimore
Distribution: Fedora
Posts: 219

Rep: Reputation: 31
Fsck and checking drive at boot

I was wondering: in rc.S, there is the script to check the hard drive at boot for errors, and it does it every 20 times I boot. Is there a way to change this from 20 to like 30? Or some other number?

I believe the lines in question are:

if [ ! -r /etc/fastboot ]; then
echo "Checking root filesystem:"
/sbin/fsck $FORCEFSCK -C -a /

If I understand it correctly, the first line checks if /etc/fastboot exists. If it doesn't then it does fsck. It doesn't actually check it every time, though, so how does it know when to do it and when not to? Can I change that?
Old 02-29-2004, 02:02 PM   #2
Registered: Feb 2004
Location: Sacramento, CA
Distribution: Slack 9.1, slackware-current
Posts: 284

Rep: Reputation: 30
I belive it's `tune2fs -c 30`

-c is max_mount_count, argument is number of boots

`man tune2fs` for more tricks
Old 02-29-2004, 03:12 PM   #3
Registered: Apr 2003
Location: Baltimore
Distribution: Fedora
Posts: 219

Original Poster
Rep: Reputation: 31
Sweet, thanks. Works great.


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
How do I stop fsck from checking my drives. kponenation Slackware 7 08-03-2005 12:26 PM
fsck and lost hard drive space LinuxGeek Linux - Software 1 07-19-2005 08:17 PM
A little help with checking the hard drive. mrmcctt Linux - Hardware 3 03-11-2005 11:58 AM
automatic fsck on boot. fsck errors. nixel Slackware 1 05-17-2004 07:51 AM
fsck won't repair drive ffib Linux - General 5 10-06-2003 02:42 PM

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