You are not logged in.

#1 2006-10-23 11:08:50

con
Member
Registered: 2006-05-11
Posts: 89
Website

Not checking filesystems at startup by default

Not sure if this is really the right place to discuss this but...here goes...
I had some troubles with one of my harddrives and while troubleshooting I noticed that in fstab, fsck isn't performed on any partition at all... Which got me wondering if that is really sane? Isn't it a bit risky not to do a fsck every bootup? Yes, it speeds up booting quite alot but is it really worth it? Anyone got any opinions?


charlie dont surf!

Offline

#2 2006-10-23 13:04:39

stavrosg
Member
From: Rhodes, Greece
Registered: 2005-05-01
Posts: 330
Website

Re: Not checking filesystems at startup by default

Normally, the ext3 partitions will fsck automagically on startup every time you reach the mount timer written on the superblock (man tune2fs to see how to set it), unless you changed the options in fstab.

Offline

#3 2006-10-23 13:11:34

con
Member
Registered: 2006-05-11
Posts: 89
Website

Re: Not checking filesystems at startup by default

I'm running reiserfs on all partitions and I edited fstab...


charlie dont surf!

Offline

#4 2006-10-23 13:44:07

Tatey
Member
From: Brisbane, Australia
Registered: 2006-04-02
Posts: 66
Website

Re: Not checking filesystems at startup by default

According to the fstab man page, it's appropriate to set safe dump/pass parameters on each partition to check filesystem integrity.

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.

/dev/hdaX / reiserfs defaults 0 1
/dev/hdaY /home resierfs defaults 0 2
/dev/hdaZ /var resierfs defaults 0 2

Adjusting your /etc/fstab to something similar will ensure that your file system is checked on boot. In terms of start-up time, it doesn't really take that much longer with ReiserFS (Depending on the size of your partition) and it provides you with "piece-of-mind".


Check out my website, http://tatey.com

Offline

#5 2006-10-23 18:04:48

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: Not checking filesystems at startup by default

con wrote:

I'm running reiserfs on all partitions and I edited fstab...

Reiserfs automatically does a file system check upon every mounting, so you don't have to explicitly tell it to in your fstab file...if you do, it will actually get checked twice.  I know this has been brought up before on a couple of the bootchart threads if you want to search around for more info.

Offline

#6 2006-10-29 19:42:40

con
Member
Registered: 2006-05-11
Posts: 89
Website

Re: Not checking filesystems at startup by default

Thanks for your reply elasticdog (and everyone else too) I wasnt aware of that. Thanks again smile


charlie dont surf!

Offline

Board footer

Powered by FluxBB