LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 07: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, 08:50 PM   #2
tommylovell
Member
 
Registered: Nov 2005
Distribution: Raspbian, Debian, Ubuntu
Posts: 380

Rep: Reputation: 103Reputation: 103
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, 10: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-02-2009, 11:22 PM   #4
tommylovell
Member
 
Registered: Nov 2005
Distribution: Raspbian, Debian, Ubuntu
Posts: 380

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


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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