Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I fsck the / partition on boot but not other partitions ?

Status
Not open for further replies.

NewtownGuy

Technical User
Jul 27, 2007
146
US
I want to control when various partitions are file system checked so I can always boot quickly and so I can e2fsck /home according to a calendar even if the machine does not reboot often. I have created /home as a separate partition that has most of the disk space. I will force a fsck of /home (with umount, etc) with a cron job.

How do I configure fsck on boot to only do the small '/' partition but not the large /home partition ? I have looked at tune2fs but I do not see a parameter that chooses the filesystem(s) checked -- it only seems to do all of them.

I am running Ubuntu Server 10.04 LTS.

Thank you in advance for your help.

 
Check "man fstab", regarding the sixth field. You can set it to 0, 1 or 2 to determine the order of fsck, or whether it gets checked at all.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top