LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-09-2011, 09:57 AM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,697

Rep: Reputation: 48
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 ;-)
 
Old 02-09-2011, 10:35 AM   #2
goodhombre
Member
 
Registered: Mar 2010
Location: Ungheni, Rep. Moldova
Distribution: Ubuntu
Posts: 84

Rep: Reputation: 21
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.

Last edited by goodhombre; 02-09-2011 at 10:37 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
e2fsck and unmounted a volume rjo98 Linux - Newbie 11 07-27-2010 03:18 PM
Logical Volume lost after Reboot RHEL tungaw2001 Linux - Software 1 01-20-2010 07:15 AM
e2fsck is running for 3 days checking 800 GB ext3 lvm volume kyriakos Linux - Software 8 02-06-2006 03:21 PM
Preserving Sound Volume After Reboot RodWC Debian 8 12-26-2005 12:55 PM
Restoring Volume Levels after reboot MasterC Slackware 16 09-22-2002 02:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration