Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 31st October 2004, 07:09 PM
Mtnear Offline
Registered User
 
Join Date: Aug 2004
Location: WV
Age: 37
Posts: 107
Removed 2nd Hard Drive - Won't boot...

I've had FC2 installed on my linux system for a while now. I just removed the slave hard drive to use in another computer and now on boot up the system errors out because it can't find the drive / directory.

The boot screen drops me into a shell prompt with the error, "An error occurred during the file system check. The system will reboot when you leave the shell." It then asks for the root password for maintenance, which I provide, but after that I don't know what to do.

How do I let the system know that the drive no longer exists, and to continue with the normal boot process? Thanks.
Reply With Quote
  #2  
Old 31st October 2004, 07:18 PM
CrystalCowboy's Avatar
CrystalCowboy Offline
Registered User
 
Join Date: Sep 2004
Posts: 536
I am going to presume that none of the critical OS components were located on the now-removed disk.

Check file /etc/fstab. Assuming the simplest case of IDE/ATA disks, your primary master disk is /hda, and the various partitions are /hda1, /hda2, ... The primary slave disk is /hdb, so look for any partitions of that in /etc/fstab and comment out those lines with an editor by placeing # at the beginning of the line. Then reboot.

If critical OS info is indeed on the disk you removed, then put it back in place temporarily (you didn't erase or write over it already, did you?) and backup anything you want to keep, because you probably need to do a re-install.
__________________
Explore the Core!
Reply With Quote
  #3  
Old 31st October 2004, 07:35 PM
Mtnear Offline
Registered User
 
Join Date: Aug 2004
Location: WV
Age: 37
Posts: 107
Okay, thanks. But how do I check fstab from the shell prompt. Do I just need to type something like gedit /etc/fstab?

The slave drive that I removed was completely blank, and was only there for storage. No critical OS components were housed on that drive.
Reply With Quote
  #4  
Old 31st October 2004, 07:40 PM
Mtnear Offline
Registered User
 
Join Date: Aug 2004
Location: WV
Age: 37
Posts: 107
By the way, if I type gedit /etc/fstab at the prompt I get a "warning - cannot open display" message. If I just try to go to /etc/fstab I get a "permission denied" (even after typing in my root pass).

?
Reply With Quote
  #5  
Old 31st October 2004, 09:42 PM
crackers's Avatar
crackers Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Seattle, WA, USA
Age: 56
Posts: 3,423
1) You can't use gedit in text mode - it's a Gnome GUI app.
2) Try this:
Code:
# cat /etc/fstab
__________________
Linux User #28251 (April '93)
Professional Java Geek :cool:
Reply With Quote
  #6  
Old 1st November 2004, 01:40 AM
Mtnear Offline
Registered User
 
Join Date: Aug 2004
Location: WV
Age: 37
Posts: 107
Thanks, but cat /etc/fstab results in "file not found". Is there more to the pathname or something?
Reply With Quote
  #7  
Old 1st November 2004, 01:47 AM
jayemef's Avatar
jayemef Offline
Registered User
 
Join Date: Sep 2004
Location: Juniata College, PA
Age: 28
Posts: 629
You can use vi to edit the file though. To do this, type
Code:
vi /etc/fstab
Then use the following keys to edit:
j: move cursor down
k: move cursor up
l: move cursor right
h: move cursor left
i: enter insert mode
esc: exit insert mode

SHIFT + ZZ: exit and save

That should do it. Those are the important ones. Vi takes some getting used to, but it can definitely grow on you. It is my editor of choice after having used it for the last year and a half for programming assignments. I have to laugh every time I use another text editor and start typing letters to move up and down.


EDIT:
Quote:
Thanks, but cat /etc/fstab results in "file not found". Is there more to the pathname or something?
That would suggest then that you did manage to store critical files on your second drive. Try
Code:
ls /etc
If fstab doesn't show up, do a whereis fstab.
__________________
- JMF
Registered Linux User #371168

+Fedora Core 3 - k2.6.10-1.766_FC3
+WindowMaker 0.91.0

Last edited by jayemef; 1st November 2004 at 01:54 AM.
Reply With Quote
  #8  
Old 1st November 2004, 03:34 AM
Mtnear Offline
Registered User
 
Join Date: Aug 2004
Location: WV
Age: 37
Posts: 107
Typing "help" at the grub prompt lists the available command choices and vi and ls are not available choices. They just return "unrecognized command".
Reply With Quote
  #9  
Old 1st November 2004, 03:46 AM
jayemef's Avatar
jayemef Offline
Registered User
 
Join Date: Sep 2004
Location: Juniata College, PA
Age: 28
Posts: 629
This is partly our fault, not explicitly telling you to return your computer to a state where you can boot up into linux (hopefully by simply sticking the second harddrive back in and trying again). If you can boot up again though, these are the things you want to check. Once you look all of that over, try taking the harddrive back out and see if you can still get it to boot.

It is still possible that something like vi won't work for you, even when you are booted into linux. If it doesn't, it simply means you didn't install it. I can't remember if vi is one of the default text editors or not...
__________________
- JMF
Registered Linux User #371168

+Fedora Core 3 - k2.6.10-1.766_FC3
+WindowMaker 0.91.0

Last edited by jayemef; 1st November 2004 at 03:48 AM.
Reply With Quote
  #10  
Old 1st November 2004, 03:50 PM
Mtnear Offline
Registered User
 
Join Date: Aug 2004
Location: WV
Age: 37
Posts: 107
Oh, okay. I'm still learning, so I guess you can't leave anything out with me.

This brings me to a problem. The reason I took the second drive out of my linux computer was to replace the primary drive in my windows computer that decided to crap out. I'm not going to be able to put that drive back in now to get the FC2 computer to boot up.

I really hope there is something else that I can do here. I had FC2 running perfectly and I really don't want to have to do a fresh install and start over. Thanks for your help.
Reply With Quote
  #11  
Old 2nd November 2004, 01:10 AM
Mtnear Offline
Registered User
 
Join Date: Aug 2004
Location: WV
Age: 37
Posts: 107
Seriously, I can't believe that I'm going to have to re-install this whole distro just because I took out a piece of hardware. What up?

Does this mean that you always have to edit your /etc/fstab prior to removing any hardware from your linux pc? If this is the case, then there should be a reminder or how-to somewhere to warn people that they are going to lose a working system should they decide to remove hardware.
Reply With Quote
  #12  
Old 2nd November 2004, 02:19 AM
imdeemvp's Avatar
imdeemvp Offline
Registered User
 
Join Date: Feb 2004
Age: 44
Posts: 8,256
where was fc2 installed in primary or slave? now try to reinstall the grub like this:
using cd1 at the prompt type: linux rescue
at the bash do this:
chroot /mnt/sysimage
grub-install /dev/hda
__________________
HELP with JAVA, MP3's, Wireless, Repo's, YUM, Partitions, System Monitors, Nvidia, ATI drivers, LIMEWIRE PRO & MORE!.

Easiest and most friendly desktop ever is PCLinuxOS! Includes all this apps. Just try it.

"The greater the struggle THE greater the achievment."

Do you know HIM?

If you are an idiot click here. NThis will test you linux skills :D
Reply With Quote
  #13  
Old 2nd November 2004, 02:29 AM
Mtnear Offline
Registered User
 
Join Date: Aug 2004
Location: WV
Age: 37
Posts: 107
Thanks mvp, but I've probably already screwed something up.

The OS was loaded on the primary. I removed the secondary.

I used a mepis linux live cd to get the system up and running, and then used the kwrite editor under root to remove the "label=/tmp...." line (/tmp was the label for the slave drive that I removed). Now when FC2 boots it acts as though everything is okay, but then goes to a blank screen. It's almost as if the desktop is there but the monitor cannot provide the video or something.

I'm on the verge of just re-installing. I just really didn't want to have to do that.
Reply With Quote
  #14  
Old 2nd November 2004, 02:48 AM
imdeemvp's Avatar
imdeemvp Offline
Registered User
 
Join Date: Feb 2004
Age: 44
Posts: 8,256
use my fstab as your guide to see which line you are missing:

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0

/dev/hda6 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/hda1 /mnt/winxp -t ntfs -r -o umask=0222
/dev/hda2 /mnt/windows vfat users,rw,owner,umask=000 0 0
/dev/sda1 /mnt/usbflash vfat noauto,user,umask=0 0 0

you can also use nano to edit your fstab: nano /etc/fstab and to save it pressed Ctrl+O
__________________
HELP with JAVA, MP3's, Wireless, Repo's, YUM, Partitions, System Monitors, Nvidia, ATI drivers, LIMEWIRE PRO & MORE!.

Easiest and most friendly desktop ever is PCLinuxOS! Includes all this apps. Just try it.

"The greater the struggle THE greater the achievment."

Do you know HIM?

If you are an idiot click here. NThis will test you linux skills :D
Reply With Quote
  #15  
Old 2nd November 2004, 02:57 AM
Mtnear Offline
Registered User
 
Join Date: Aug 2004
Location: WV
Age: 37
Posts: 107
Thanks man, but I can't tell what I'm missing. I'm just going to re-install. Very disappointing. Will have to remember this for the future.
Reply With Quote
Reply

Tags
2nd, boot, drive, hard, removed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
RAID5 re-add of removed drive? (failed drive replacement) Alex R Using Fedora 1 2nd June 2009 02:42 PM
grub.conf on hard drive, boot usb drive badwolf001 Installation and Live Media 9 17th November 2007 02:58 AM
Removed Hard Drive an Now FC6 Won't Boot pegasus_329 EOL (End Of Life) Versions 11 30th March 2007 09:23 AM
Will not boot from 2nd hard drive davfel Installation and Live Media 6 29th December 2006 03:31 AM
Would like to mount old Fedora boot drive as second hard drive. grndplane Using Fedora 20 5th February 2006 04:53 AM


Current GMT-time: 06:35 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat