Tuesday, November 19, 2024
HomeSolarisSolaris system administrationAutomatically answer yes to all fsck questions

Automatically answer yes to all fsck questions

When filesystem errors prevent a reboot, you are instructed to run fsck on the affected filesystem. If there are lots of errors, you may be stuck typing y for hours. An option to fsck can automatically answer yes for you.


Warning: Use this at your own risk. You may not always want to answer yes to everything. This is helpful in some cases when you are not concerned with the integrity of all of the contents of the filesystem.

To fsck the unmounted filesystem c0t0d0s0 and answer yes to every question, run the following command as root:

fsck -y /dev/rdsk/c0t0d0s0

See also: Check filesystem integrity

Quinn McHenry
Quinn McHenry
Quinn was one of the original co-founders of Tech-Recipes. He is currently crafting iOS applications as a senior developer at Small Planet Digital in Brooklyn, New York.
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

LATEST REVIEWS

Recent Comments

error: Content is protected !!