Automatically answer yes to all fsck questions

Posted September 29, 2003 by Quinn McHenry in Solaris system administration

Last Updated on

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


About 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.
View more articles by Quinn McHenry

The Conversation

Follow the reactions below and share your own thoughts.

Leave a Reply