LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 03-10-2011, 05:12 AM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,320

Rep: Reputation: 36
Exclamation 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.
 
Old 03-10-2011, 05:25 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 14,880
Blog Entries: 2

Rep: Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805
Just comment out the line for /dev/md1 in your /etc/fstab, then it will not be automounted at boot.
 
1 members found this post helpful.
Old 03-10-2011, 05:26 AM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,320

Original Poster
Rep: Reputation: 36
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
 
Old 03-10-2011, 05:33 AM   #4
djsmiley2k
Member
 
Registered: Feb 2005
Location: Coventry, UK
Distribution: Home: Gentoo x86/amd64, Debian ppc. Work: Ubuntu, SuSe, CentOS
Posts: 343
Blog Entries: 1

Rep: Reputation: 72
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>
 
1 members found this post helpful.
Old 03-10-2011, 05:37 AM   #5
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,320

Original Poster
Rep: Reputation: 36
cool, thanks!!!!
 
Old 03-10-2011, 04:51 PM   #6
jefro
Guru
 
Registered: Mar 2008
Posts: 10,246

Rep: Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255
Boot to a live cd and use the hard drive tools if different to check.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting a Logical Volume at Boot - fedora 13 Skynet091 Linux - Newbie 6 07-09-2010 03:46 AM
[SOLVED] How to tell if volume is already dirty rjo98 Linux - Newbie 4 08-20-2009 02:29 PM
FSCK on EX2 after dirty boot yevgenit Linux - Software 1 04-25-2006 08:42 PM
Quick and Dirty email server setup help Drogo Linux - Software 3 01-06-2004 10:07 PM


All times are GMT -5. The time now is 07:34 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration