LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 05-04-2015, 02:19 PM   #1
KawiNinjaZX
LQ Newbie
 
Registered: May 2015
Posts: 7

Rep: Reputation: Disabled
Stuck on boot fsck missing drive


I was trying to format an external hard drive, but it got all screwy so I rebooted and I guess I didn't unmount or remove it, now when I boot I get an error fsck.ext3 cannot find file or drive and it lets me login to root for maintenance.

Every time I reboot I am stuck on this, the drive is no longer available on the system and it won't boot even though I didn't touch the main boot drives.

Is there a command to clear off the old drive it can't find?

I'm trying shutdown -f to start without fsck but it won't work.
 
Old 05-04-2015, 02:35 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Welcome to LQ!!!

Is it possible for you to share the screenshot? You said it was an external drive so I am assuming you did not make entries in /etc/fstab for it? If you have remove them from maintenance mode. It will be good if you let us know what you mean by "but it got all screwy so I rebooted and I guess I didn't unmount or remove it'
 
Old 05-04-2015, 02:55 PM   #3
KawiNinjaZX
LQ Newbie
 
Registered: May 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
Red hat starts up, then it fails

"Checking filesystems

fsck.ext3: No such file or directory while trying to open /dev/external/ExternalWD

[failed]
An error occurred during the file system check.
Dropping you to a shell: the system will reboot
when you leave the shell.
Give root password for maintenance
(control D to continue)" <--reboots and does it all over again

\dev\external\ExternalWD is the logical volume I made. I could get into it through terminal but not see it in the file explorer, I just wound up rebooting while it was plugged in then unplugged it before it booted, so I'm assuming the computer is looking for that drive.

I was looking in vgreduce to remove the bad drive, I can't seem to get the OS to delete this drive from it's memory. I also tried doing a shutdown -f now to disable fsck but the server never turns off.
 
Old 05-04-2015, 03:00 PM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
quote]Give root password for maintenance
(control D to continue)" <--reboots and does it all over again[/quote]

Did you enter root password here or simply hit control + D? Enter root password and it will take you to maintenance mode. If you are unable to get into maintenance mode then use rescue disk to boot in rescue mode.

Was this external drive part of existing VG or you have created separate VG for it? If you are able to get in maintenance mode then share the output of:

Code:
pvs
Code:
vgs
Code:
lvs
Also, share the output of:

Code:
cat /etc/fstab
You mentioned that it is a Red Hat box, did you get in touch with Red Hat for assistance?
 
Old 05-04-2015, 03:16 PM   #5
KawiNinjaZX
LQ Newbie
 
Registered: May 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
PVS VGS and LVS put out
Locking type 1 initialisation failed

the last command shows all the normal drives and the one I want to remove
/external/ExternalWD /media/sdc1 ext3 defaults

So how do I get rid of that drive?

I have a customer needing this machine back and I'm hung up on this, if I can get rid of this drive and have it stop looking for it, I'll be good.
 
Old 05-04-2015, 03:24 PM   #6
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Use:

Code:
vi /etc/fstab
and comment out that line as follows:

Code:
#/external/ExternalWD /media/sdc1 ext3 defaults
save and exit, reboot the box.
 
Old 05-04-2015, 03:36 PM   #7
KawiNinjaZX
LQ Newbie
 
Registered: May 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
i put in the comment, how do I save it?
 
Old 05-04-2015, 03:37 PM   #8
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Hit esc key and then put :wq and then hit enter.
 
Old 05-04-2015, 03:51 PM   #9
KawiNinjaZX
LQ Newbie
 
Registered: May 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
It appears to be read only I found a video showing the guy remounting the drive, I'm trying to figure that out now. After I change the command and it gives me an error, I can't seem to get out of the vi /etc/fstab program to type another command.
 
Old 05-04-2015, 03:55 PM   #10
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
You should be aware of how to use vi if you are administering RHEL box. As I mentioned earlier you have to hit Esc key and then type :wq and hit enter. It will allow you to save the file an exit. If it says read only try: hit Esc key and then type :wq! and then hit enter. If it still doesn't work then hit Esc key and then type :q! and hit enter.
 
Old 05-04-2015, 03:59 PM   #11
KawiNinjaZX
LQ Newbie
 
Registered: May 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
I remounted and was able to save my changes
 
Old 05-04-2015, 04:00 PM   #12
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Good, now reboot the box and see if you are able to get pass through that hurdle.
 
Old 05-04-2015, 04:01 PM   #13
KawiNinjaZX
LQ Newbie
 
Registered: May 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thank you so so much for your help. I am a pc guy with some mild linux experience, their "administrator" wants them to buy a new $8000 server because their tape drive failed.
 
Old 05-04-2015, 04:15 PM   #14
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
You're welcome. I wasn't aware that you haven't worked on Linux, you mentioned RHEL and I thought you to be pretty experienced with Linux.

Please mark the thread as solved!

Enjoy Linux!!!
 
  


Reply



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
[SOLVED] System get stuck on boot when disk is in CD\DVD-drive Himilhil Linux - Hardware 4 12-07-2009 01:51 PM
External USB Drive Ext3 Fsck Error on Boot anon111 Linux - Desktop 8 08-22-2009 12:02 AM
Removing external drive causes boot failure: fsck.ext3: unable to resolve... David Marks Linux - Hardware 6 06-23-2009 10:14 AM
installing without boot cdrom, no floppy drive, and no network - stuck need some help TimeFade Linux - Laptop and Netbook 4 05-14-2004 02:39 PM
Fsck and checking drive at boot Atmchicago Slackware 2 02-29-2004 03:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 11:21 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
Open Source Consulting | Domain Registration