next up previous

Adding a Disk

This contains links to information used in the lectures.


SCSI

Problems with configuration

Disk Geometry

Installing a Disk

fsck : Check and Repair Filesystems

fsck is used to fix inconsistencies introduced into Unix filesystems during a crash. It will automatically fix most minor damage. The five most common types of damage are:

At boot time fsck -p is run to check all filesystems in /etc/fstab file. Newer systems only check "dirty" filesystems - ones that had blocks buffered at crash time. fsck -p checks the filesystems in ascending numeric order on the sixth entry. Partitions which are on different disks can be given the same number to have them checked in parallel.

Errors other than those above are deemed serious and fsck prints a message and quits. You must then run fsck manually (without -p option). Fixing the disk by hand requires extensive knowledge, extreme bravery and the type of foolhardiness that led to the charge of the Light Brigade. Lacking these give the default answer to all the questions fsck asks. Note that there is an option to fsck that answers yes to all the questions, but yes is not always the default !! One should try to copy files fsck wishes to delete. Files whose parent directory cannot be found will be copied to lost+found under their inode numbers. ncheck can sometimes be used to discover pathnames corresponding to inodes, and clri can be used to clear inodes which fsck will not fix.



next up previous


Paul A. Farrell
Tue Feb 27 02:08:37 EST 1996