LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to boot server with one dirty volume not mounting (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-boot-server-with-one-dirty-volume-not-mounting-867669/)

rjo98 03-10-2011 06:12 AM

How to boot server with one dirty volume not mounting
 
I have a server that has 2 dirty volumes, both of which are very large. One volume contains live data, the other is just a rsync'd copy of that data, which isn't critical to the users. The e2fsck is taking forever in single user mode, so i'm wondering if there is a way after the volume with live data becomes clean from e2fsck fixing everything, if i can boot the server and have it skip mounting the other dirty volume (/dev/md1) just this once, so i can get the server up with the live data available to users. Then with /dev/md1 unmounted with the server up, I should be able to e2fsck that until it comes back clean, then do a mount /dev/md1, at least I hope!!

Please let me know how I could do this, I'm running RedHat if that matters. I'm quickly running out of time here, but I think at least the live volume will be good soon.

TobiSGD 03-10-2011 06:25 AM

Just comment out the line for /dev/md1 in your /etc/fstab, then it will not be automounted at boot.

rjo98 03-10-2011 06:26 AM

Thanks!! Do you know how to do that though? do i do that while i'm still booted into single user mode? and how do i comment it out? vi the file, but what do i put in front of the line to signify a comment?

this will be HUGE if this works!!! THANK YOU

djsmiley2k 03-10-2011 06:33 AM

To comment it out, put a # before it


<code>
# this is commented out
this isn't
</code>

---------- Post added 10th Mar 2011 at 11:34 ----------

To comment it out, put a # before it


<code>
# this is commented out
this isn't
</code>

rjo98 03-10-2011 06:37 AM

cool, thanks!!!!

jefro 03-10-2011 05:51 PM

Boot to a live cd and use the hard drive tools if different to check.


All times are GMT -5. The time now is 03:42 PM.