LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 02-17-2004, 08:21 AM   #1
firestomper41
Member
 
Registered: Feb 2004
Location: Switzerland, Zimbabwe
Distribution: Suse 10.1
Posts: 78

Rep: Reputation: 15
Filesystem check at bootime


Hi there

I have had a couple of powercuts while i was working in mdk 9.1 and when i restart mdk, at the bootup it says "press Y within 1 second to start filesystem check", but 1 second is not long enough, and when i reboot it does not say it as i i have then shutdown the machine properly, so is there any way of either making that time longer or to make it do the check automatically when mdk is not properly shutdown?

Thanks

Christian

Last edited by firestomper41; 02-17-2004 at 08:24 AM.
 
Old 02-17-2004, 08:48 AM   #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
you can boot with the install cd and check the hard drive from there.
you might be using a filesystem that doesn't need to be checked, like
reiser or ext3.
 
Old 03-19-2004, 08:16 PM   #3
ubell
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Rep: Reputation: 0
The real question should be:

Why does linux default to not checking the file system?
(It actually gives you 5 seconds, but you were not looking for
the first 4).

The assertion was that file systems like ext3 and reiser don't need
to be checked. Well, I lost quite a all of a ext3 file system after
a reboot that did not check the system. Any timeout is too short
as you cannot be sure of being around during a power failure.

Is there some way of turning off this "feature"? I made one
attempt to find out, but did not invest enough time.

In the meantime, when I rebuilt my system, I partitioned off
a separate root so I am less likely to loose everything.
 
Old 03-19-2004, 11:49 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
in fstab

/dev/hda5 / reiserfs defaults,noatime,notail 0 0

the first 0 at the end means not to check at boot.
this would check
/dev/hda5 / ext2 defaults,noatimel 1 0
 
Old 03-20-2004, 08:31 AM   #5
ubell
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Rep: Reputation: 0
I don't think that is the problem, /etc/fstab:

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
LABEL=/home /home ext3 defaults 1 2
/dev/sda1 /sd1 ext2 defaults 1 2
/dev/sda3 /sd3 ext2 defaults 1 2
 
Old 03-20-2004, 11:07 AM   #6
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 gave some bad info. it's the last number on the line that means whether to check and in what order. when reiserfs was new, i did a bunch of resets in the middle of writes to see if the filesystem would get corrupted, and it didn't. i think you just had some bad luck, but if i had ext3 get corrupted on my machine, i wouldn't use it again. especially since there's reiserfs, jfs, and xfs too.

The sixth field, (fs_passno), is used by the fsck(8) pro_
gram to determine the order in which filesystem checks are
done at reboot time. The root filesystem should be speci_
fied with a fs_passno of 1, and other filesystems should
have a fs_passno of 2. Filesystems within a drive will be
checked sequentially, but filesystems on different drives
will be checked at the same time to utilize parallelism
available in the hardware. If the sixth field is not pre_
sent or zero, a value of zero is returned and fsck will
assume that the filesystem does not need to be checked.
 
  


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
Filesystem Check Every Boot springshades Linux - Software 4 08-16-2005 12:25 PM
Failed to check filesystem jonmarco Linux - General 2 07-18-2005 05:12 AM
Failed to check Filesystem... keyz_182 Linux - General 8 11-22-2003 09:20 PM
Check filesystem twantrd Linux - Newbie 4 03-26-2003 12:37 AM
Filesystem check on reboot? augamecock Linux - General 4 04-09-2002 01:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 05:43 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
Open Source Consulting | Domain Registration