View previous topic :: View next topic |
Author |
Message |
jontoo n00b
Joined: 27 Jun 2005 Posts: 28 Location: Stockholm, Sweden
|
Posted: Tue Sep 19, 2006 7:59 am Post subject: How do I make sure all file systems are checked on boot? |
|
|
Hi,
I would appreciate if someone could answer this one for me.
I have checkfs in my boot runlevel. It doesn't do anything when it starts, and I don't know why.
When localmount starts, it complains that none of my file systems have been checked since 200+ mounts.
I could check them manually, but didn't find it a lot of fun, if you know what I mean.
It is a four years old gentoo installation, but there are no problems otherwise.
Thanks!
/Q |
|
Back to top |
|
|
BitJam Advocate
Joined: 12 Aug 2003 Posts: 2508 Location: Silver City, NM
|
Posted: Tue Sep 19, 2006 8:09 am Post subject: |
|
|
For ext2 or ext3 filesystem you can use the tune2fs program. Other types of file systems have their own tools for this sort of thing. You also need to specify in fstab which file systems should be checked. From the fstab man page: Quote: | The sixth field, (fs_passno), is used by the fsck( program to deter-
mine the order in which filesystem checks are done at reboot time. The
root filesystem should be specified 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 present or zero, a value of zero
is returned and fsck will assume that the filesystem does not need to
be checked. |
|
|
Back to top |
|
|
jontoo n00b
Joined: 27 Jun 2005 Posts: 28 Location: Stockholm, Sweden
|
Posted: Tue Sep 19, 2006 9:58 pm Post subject: |
|
|
Thanks, BitJam! That's clear information !
For the record:
If you want to check a file system at boot-up, put a non-zero value in the sixth field its fstab-entry.
The entry is a kind of weight number used to resolve the checking order.
It seems this is more some kind of a general Un*x-mechanism and not a gentoo-specific thing.
I am sorry if I should have asked the question elsewhere, but my error seeking only came as far as the localmount script which is a gentoo component.
I am also sorry that I missed this informatio before, probably caused me a lot of data harm through the years... |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|