Posts Tagged ‘fsck’

fsck on boot

Thursday, February 21st, 2008

Force fsck check on boot:

cd /

touch forcefsck

It will force fsck check on next boot, the system will automatically remove the file when the boot process finish.

 

Disable auto fsck check on boot (after 30 mounts):

edit /etc/fstab

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/sda7       /               ext3    defaults,errors=remount-ro 0       1
/dev/sda10              /home                   ext3    defaults,usrquota,grpquota      0       2
/dev/sda9       /tmp            ext3    defaults        0       2
/dev/sda6       /usr            ext3    defaults        0       2
/dev/sda8       /var            ext3    defaults        0       2
/dev/sda5       none            swap    sw              0       0
/dev/hda        /media/cdrom0   iso9660 ro,user,noauto  0       0

Change the ending 2 to 0 on all disks that you want to remove from the auto check.

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/sda7       /               ext3    defaults,errors=remount-ro 0       1
/dev/sda10              /home                   ext3    defaults,usrquota,grpquota      0       0
/dev/sda9       /tmp            ext3    defaults        0       0
/dev/sda6       /usr            ext3    defaults        0       0
/dev/sda8       /var            ext3    defaults        0       0
/dev/sda5       none            swap    sw              0       0
/dev/hda        /media/cdrom0   iso9660 ro,user,noauto  0       0