LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices



Reply
 
Search this Thread
Old 03-18-2005, 07:17 AM   #1
naps
Member
 
Registered: Aug 2003
Distribution: 10.3
Posts: 39

Rep: Reputation: 15
Unhappy 2 fsck or not 2 fsck?


I just noticed the following on booting up;

warning: maximal mount count reached (followed by recommendation to run e2fsck)

I thought this should have happened automatically (it is my home partition so I could un-mount it and run e2fsck ... is that the right command for an ext3 file system?) so I googled and got the following from TLDP

"solution is to get the latest version of the ext2fs utilities (e2fsprogs-0.5b.tar.gz at the time of writing) from the usual sites."

But I have just upgraded all my packages once I learned how to as described in the sticky at the beginning of this forum (I think it trashed my printing see my other posts). So two questions:-
One:- should I run e2fsck on my un-mounted ext3 filesystem?
Two:- Is there some simple way of making it happen on boot-up, or if not will it (still definitely) happen after the set number of days since last run?
Thanks
naps
 
Old 03-18-2005, 09:56 AM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
I am not an extX or Suse expert, but if you place this command in you start up script. Where is the partition that you want to check. It should check it at every boot.

tune2fs -c 0 /dev/$i
tune2fs -i 1m /dev/$i
 
Old 03-18-2005, 10:53 AM   #3
naps
Member
 
Registered: Aug 2003
Distribution: 10.3
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by tangle
I am not an extX or Suse expert, but if you place this command in you start up script. Where is the partition that you want to check. It should check it at every boot.

tune2fs -c 0 /dev/$i
tune2fs -i 1m /dev/$i
Thanks tangle, but I am one of those people who boots up more than once a day (KVM switch won't switch back to my machine so I must reboot if using my old Windows box). So I want it to boot quickly unless it is "time" for the filesystem to be checked.
Any suggestions?
naps
 
Old 03-18-2005, 11:22 AM   #4
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
Doesn't give you the option to run the check or skip it when you get the warning? If so you can just choose to run it. Or am I not understanding what you want.
 
Old 03-18-2005, 03:11 PM   #5
naps
Member
 
Registered: Aug 2003
Distribution: 10.3
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by tangle
Doesn't give you the option to run the check or skip it when you get the warning? If so you can just choose to run it. Or am I not understanding what you want.
No, I didn't make it clear that I only noticed this as it flashed by, and then verified it from dmesg (it is still in dmesg, so that means it came up on the screen last time I booted, right?).
Actually I noticed this on rebooting after the machine had hung on shutdown (because I used my KVM switch before it had finished unmounting the partitions- my bad). So it is just possible that it was due for a fsck on the re-boot but it did not get done what with all the recovering of journal etc. etc. But I don't know any way to read how many times the partition was mounted after the last fsck or how many times it is set to be mounted before fsck is run (though I think I left it at the default).
naps

Last edited by naps; 03-18-2005 at 03:15 PM.
 
  


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
Need help with fsck Grill Master Linux - Newbie 2 07-05-2005 06:37 PM
automatic fsck on boot. fsck errors. nixel Slackware 1 05-17-2004 08:51 AM
How to do fsck Please help Zi5 Linux - Distributions 2 05-13-2004 07:47 PM
fsck help afrodocter Linux - Software 6 04-29-2004 11:42 AM
Fsck scottpioso Linux - Newbie 7 06-01-2003 04:06 PM


All times are GMT -5. The time now is 02:58 AM.

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