LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Filesystem check at bootime (https://www.linuxquestions.org/questions/mandriva-30/filesystem-check-at-bootime-147142/)

firestomper41 02-17-2004 08:21 AM

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
:newbie:

whansard 02-17-2004 08:48 AM

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.

ubell 03-19-2004 08:16 PM

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.

whansard 03-19-2004 11:49 PM

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

ubell 03-20-2004 08:31 AM

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

whansard 03-20-2004 11:07 AM

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.


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