View previous topic :: View next topic |
Author |
Message |
maor Guru
Joined: 28 Aug 2002 Posts: 323
|
Posted: Sun Sep 15, 2002 5:35 pm Post subject: how to make auto filesystem check |
|
|
is there a way to make autofilesystem check in case of suden shutdown
an how ?
i hope it's the right forum for that question. |
|
Back to top |
|
|
arkane l33t
Joined: 30 Apr 2002 Posts: 918 Location: Phoenix, AZ
|
Posted: Sun Sep 15, 2002 6:23 pm Post subject: |
|
|
well if I'm not mistaken, the filesystem goes through a rough fsck when it comes up, and if it finds corrupt data, then it'll run a full fsck on it...
It's been forever since I've ran fsck though. |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Sun Sep 15, 2002 6:41 pm Post subject: |
|
|
ext3/reiserfs/xfs are journaling file systems. They typically do not need an fsck after an unclean shutdown. ext2 is not journaled and needs a check on boot.
Whether fsck is done or not depends on the last (6th) field for the filesystem in your /etc/fstab file. For journaled filesystems this field is set to 0 (no check). For non-journaled root, it is set to 1 and for non-journaled /usr, etc, it is set to 2.
man fstab for more details. |
|
Back to top |
|
|
maor Guru
Joined: 28 Aug 2002 Posts: 323
|
Posted: Sun Sep 15, 2002 8:59 pm Post subject: |
|
|
ok i got it thx |
|
Back to top |
|
|
|