LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-27-2003, 01:53 PM   #1
thedeud
LQ Newbie
 
Registered: Mar 2003
Distribution: Redhat
Posts: 18

Rep: Reputation: 0
how to avoid manual fsck


I have a redhat 7.2 box remotely located. Sometimes when I reboot it or it crashes it requires a manual fsck. I find it pointless to drive 30 min's just to hold down the 'y' button for 15 min's while the manual fsck is being ran.

Is there a way to make fsck not require the root password for a manual and have it just anwser yes to everything during boot up?
 
Old 03-27-2003, 02:49 PM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
try one of the journaling filesystems.
 
Old 03-27-2003, 04:04 PM   #3
thedeud
LQ Newbie
 
Registered: Mar 2003
Distribution: Redhat
Posts: 18

Original Poster
Rep: Reputation: 0
I'm using etx3 fs, thats journaling isnt it?

LABEL=/ / ext3 defaults,usrquota,grpquota 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/ataraid/d0p2 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
 
Old 03-27-2003, 04:42 PM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
i don't have much experience with ext3.
reiserfs and xfs both will just run through
the journal quickly on boot, and
will not ever fsck.
 
Old 04-07-2003, 12:49 PM   #5
sethen
LQ Newbie
 
Registered: Apr 2003
Location: Switzerland of Maine
Distribution: RedHat 8.0
Posts: 21

Rep: Reputation: 15
I've got the exact same problem. IS there a work around?
 
Old 04-07-2003, 01:42 PM   #6
thedeud
LQ Newbie
 
Registered: Mar 2003
Distribution: Redhat
Posts: 18

Original Poster
Rep: Reputation: 0
I havent found anything new on this yet.

I'm thinking something fsck could be modified in the /etc/rc.d/rc.sysinit that could stop the manual fsck's.
 
Old 04-07-2003, 02:00 PM   #7
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
one of the 0's at the end of the fstab line means,
don't check the filesystem. I guess to be safe you
could do that, then set the filesystem to check every
day or at every boot or whatever instead.
 
Old 04-07-2003, 02:54 PM   #8
sethen
LQ Newbie
 
Registered: Apr 2003
Location: Switzerland of Maine
Distribution: RedHat 8.0
Posts: 21

Rep: Reputation: 15
so if i changed the last number in the fstab line to a 0, it wont check?

How would i then set the filesystem to check every so often?
 
Old 04-07-2003, 04:14 PM   #9
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
man, i'm having a bad day.
i can't remember anything.
i think the 0 means don't check to see if the filesystem is clean
on boot.
and there's a utility that lets you set how many times a filesystem
can get mounted before there is an automatic check.
i think the default is around 20 times. tune2fs i think.
 
Old 04-08-2003, 08:57 AM   #10
sethen
LQ Newbie
 
Registered: Apr 2003
Location: Switzerland of Maine
Distribution: RedHat 8.0
Posts: 21

Rep: Reputation: 15
tune2fs apparently only deals with ext2 partitions, and mine are all ext3.

any more ideas?
 
Old 04-08-2003, 10:22 AM   #11
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
did you try tune2fs and it didn't work?
i think the newest version of tune2fs is
for ext3 also.

i think the best thing to do though, would be to backup
and reformat as reiserfs, or xfs, or jfs, if you don't want
the filesystem to check.
 
Old 04-08-2003, 10:29 AM   #12
sethen
LQ Newbie
 
Registered: Apr 2003
Location: Switzerland of Maine
Distribution: RedHat 8.0
Posts: 21

Rep: Reputation: 15
how do i use tune2fs?
 
Old 04-08-2003, 10:48 AM   #13
lewnom
LQ Newbie
 
Registered: Apr 2003
Posts: 4

Rep: Reputation: 0
when creating EXT3 filesystems, you see:

This filesystem will be automatically checked every 23 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override.

see tune2fs man page
 
Old 04-08-2003, 10:55 AM   #14
sethen
LQ Newbie
 
Registered: Apr 2003
Location: Switzerland of Maine
Distribution: RedHat 8.0
Posts: 21

Rep: Reputation: 15
thank you!

How would i find out the current settings on tune2fs?
 
Old 04-08-2003, 10:58 AM   #15
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
it looks like the tune2fs -e continue
option might be what you need, for
the errors behavior. I don't know.
its on the man page
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I avoid booting up in X? aargh Linux - Newbie 7 10-29-2004 03:58 PM
automatic fsck on boot. fsck errors. nixel Slackware 1 05-17-2004 07:51 AM
Laptops to avoid?? morrolan Linux - Laptop and Netbook 4 01-24-2004 04:59 PM
Avoid being sniffed farpa Linux - Security 4 01-16-2004 01:14 AM
avoid fsck @ boot plisken Linux - General 1 12-18-2003 06:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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
Open Source Consulting | Domain Registration