LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   e2fsck for only one volume on reboot (https://www.linuxquestions.org/questions/linux-newbie-8/e2fsck-for-only-one-volume-on-reboot-861615/)

anon091 02-09-2011 08:57 AM

e2fsck for only one volume on reboot
 
I know if I do a shutdown -rF now, it will perform an e2fsck on all my volumes with the -y switch.

But if I just want to check one of the volumes rather than all of them, and have it use the -y switch so it will automatically answer yes to everything, how can I do that?

I'm using RHEL, and have a huge volume I need to run a check on, and I dont want to sit there for the next 24 hours hitting the Y key every time it finds a problem ;-)

goodhombre 02-09-2011 09:35 AM

Hi,

If you have physical access to the server.

Boot the server into single-mode :
http://www.centos.org/docs/5/html/In...ng-single.html

An then run e2fsck with -y switch on the partition you want.


All times are GMT -5. The time now is 04:30 PM.