[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Switched from ext2 to ext3...no fsck needed after crash?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, Apr 26, 2003 at 02:13:31PM -0400, Kevin McKinley wrote:
> This happens for the root filesystem. Do you know how to make it happen
> automagically for other filesystems (such as /home)?

- From the fstab(5) man page
(http://ursine.dyndns.org/cgi-bin/man/man2html?query=fstab)

The sixth field, (fs_passno), is used by the fsck(8) program to
determine 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.

In another words, in your /etc/fstab, the last part of each line is
the order in which things are going to get checked.  Here's my fstab
as an example.

# /etc/fstab: static file system information.
#
# <file system>	<mount point>	<type>	<options>		<dump>	<pass>
/dev/hda3	/		ext3	errors=remount-ro	0	1
/dev/hda2	none		swap	sw			0	0
proc		/proc		proc	defaults		0	0
/dev/fd0	/floppy		auto	user,noauto		0	0
/dev/sr0	/burner		iso9660	ro,user,noauto		0	0
/dev/hdd	/dvd		auto	ro,user,noauto		0	0
/dev/hda1	/boot		ext3	defaults		0	2


- -- 
 .''`.     Baloo Ursidae <baloo@ursine.dyndns.org>
: :'  :    proud Debian admin and user
`. `'`
  `-  Debian - when you have better things to do than fix a system
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+q51kJ5vLSqVpK2kRAoBMAKDK2bztYmYIMVYT9TLmKU31drf70wCgpQOG
M361Kn3xHZmso9y5iJQQD10=
=9cvN
-----END PGP SIGNATURE-----



Reply to: