Check filesystem integrity

Home -> UNIX -> Solaris -> System administration

10682 views

From the computer of: qmchenry (337 recipes)
Created: Sep 29, 2003     Updated: Sep 30, 2003


Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

Errors in a filesystem can prevent a system from booting properly and are commonly caused by improper system shutdown. The fsck (filesystem check) utility can identify and repair errors.

To check and interactively repair filesystem errors on the device c0t0d0s1, run the following command as root:

fsck /dev/rdsk/c0t0d0s1


Be careful when specifying the path to the device. There are two links to the same physical device, one in /dev/dsk and the other in /dev/rdsk. The rdsk represents the media as a raw device which is appropriate for low-level operations such as fsck and newfs. The dsk represents a cooked filesystem that is appropriate for mounting and other high-level operations.

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.





Related recipes:

  Automatically answer yes to all fsck questions
  ZFS: How to fsck or check filesystem integrity with scrub
  Solaris: Mount filesystem with UFS logging enabled
  Solaris: unmounting a filesystem with umount
  Solaris: disk usage of all users on a filesystem
  ZFS: Set or change the mount point of a filesystem
  ZFS: Destroy or remove one or more filesystems
  ZFS: Create a writable clone of a filesystem
  ZFS: Enable filesystem compression
  Solaris 10: Create multi-terabyte UFS filesystem

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.