LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 05-01-2009, 08:26 PM   #1
ehdwuld
Member
 
Registered: Jul 2003
Distribution: Currently Suse 11.1 but have RH7,8,9 / Fedora 7,8_64,9_64,&10_64
Posts: 634

Rep: Reputation: 30
dadgum external drive


ok here's what happened
got an external drive ( 1.5 seagate w/ vantec enclosure)
esata directly into motherboard with external power supply

using lvm went to format the durn thing

chug-chug screen blank (probably just big drive)

I thought maybe the program froze

exit program

turn off enclosure

reboot

now Fedora 8-64 wont start says my fstab is horked
wont let me edit the fstab says read only no root

when it restarted it looked for the new drive sdc ( which was still off )
de faulted to the
(repair Filesystem)# prompt

i thought it wanted to repair it so i typed yes at the prompt
which started a run of "y"'s down the screen till i rebooted again
I can see my install but cannot edit the fstab to ignore the drive

obviously i turned the drive on and plugged it back in only to have it complain bout the swap not initializing

can anyone help?

thanks
 
Old 05-01-2009, 09:50 PM   #2
tommylovell
Member
 
Registered: Nov 2005
Distribution: Fedora, Redhat
Posts: 372

Rep: Reputation: 101Reputation: 101
If you can reboot and get to the (repair Filesystem)# prompt, I think (and I'm going from memory here) that your mounted filesystem is still your initrd.

If your root filesystem is on LVM, you need to do a few things. (If it's not this won't work. Let me know if that's the case.)

First, you need to pvscan, vgscan, possibly vgchange -ay, then lvscan to see if the logical volumes are available. If running off the initial ramdisk filesystem, those commands aren't directly available. You have to 'lvm pvscan', 'lvm vgscan', etc.

When you get to the point where the 'lvm lvscan' shows your root filesystem logical volume is active, you can mount it and edit /etc/fstab.

So you could "mkdir /m", 'mount /dev/<volumegroup>/<rootlogicalvolume> /m', then 'vi /m/etc/fstab' to remove the offending line. Reboot and you should be ok.

This is all from memory, so I hope my recall is good. Good luck. Post your results, good or bad.
 
Old 05-02-2009, 11:48 PM   #3
ehdwuld
Member
 
Registered: Jul 2003
Distribution: Currently Suse 11.1 but have RH7,8,9 / Fedora 7,8_64,9_64,&10_64
Posts: 634

Original Poster
Rep: Reputation: 30
Thanks Tommy

I had looked at my fstab before i horked it

i was able to read the file during the recovery but not edit

I could See the offending entry but couldn't touch it

dang

loaded the recovery cd

chose rescue

got to the " sh-3# " prompt

Read this
http://www.faqs.org/docs/Linux-HOWTO...ng_linux_cdrom

section 2.2

# df

to see what I had

# chroot /mnt/SYSIMAGE

# ls

to see where I'm at

# cd etc/

# vim fstab

I see the line again

"i"

to write in vi

it is now read/write

edit out offending line about new harddrive

"esc" :wq!

cntrl+d twice

my box is back

now i must read up on formatting and mounting external hard drives before attempting to install that thing again

again thanks Tommy
 
Old 05-03-2009, 12:22 AM   #4
tommylovell
Member
 
Registered: Nov 2005
Distribution: Fedora, Redhat
Posts: 372

Rep: Reputation: 101Reputation: 101
Really excellent work, and easier than my suggestion.
 
  


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
ubuntu installed on external hard drive, can't startup without external hard drive. Vanostaajen Linux - Software 23 01-20-2009 10:59 AM
external enclosure for an internal hard drive vs external USB hard drive powah Linux - Hardware 1 03-10-2006 10:03 AM
Laptop DVD drive has died, will linux boot from an external drive? Stevetgn Linux - Newbie 2 05-14-2005 06:18 PM
IRQ conflict when external drive/flash-drive is put to use Nightfrost Linux - Hardware 0 10-22-2004 05:15 AM
Installing SuSE on an external FireWire drive: YaST can't edit partitions on drive kivimaki Linux - Distributions 2 09-13-2004 09:52 PM


All times are GMT -5. The time now is 08:51 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