LinuxQuestions.org
Review your favorite Linux distribution.
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 08-15-2005, 02:18 PM   #1
wasaabi4784
LQ Newbie
 
Registered: Aug 2004
Location: NC, USA
Distribution: Mandrake 10.0
Posts: 19

Rep: Reputation: 0
Please help! F'ed my fstab!! Input output error


hey guys, I was trying to get my cdrom drive working last night. I opened up my fstab file with vim to check it out , and saw that the line containing the cd drive's information was commented out (?) I removed the "none" in front of the line and gave it a mount-to directory. Did a :wq write quit and mounted the drive. It sat there for about 30 seconds doing something, then completely froze up. Now when I try to boot it gives me an error about the inability to access the fstab file, I tried accessing the file myself with vim, but it wouldn't let me edit it. And I tried e2fsck to check the drive but everything checked out OK
 
Old 08-15-2005, 02:42 PM   #2
Michael_S
Member
 
Registered: Oct 2004
Location: Pennsylvania, USA
Distribution: Debian
Posts: 85

Rep: Reputation: 23
I'm no expert, but until some Linux genius comes along I'll see what I can do.

1. Can you copy and paste the contents of the /etc/fstab file here for us to look at?

2. What kind of error does it give you when you try to edit the file? Not found? Permission denied?
Are the rest of the files in the /etc/ directory still there? (I don't expect you to know all the files that are supposed to be there. Just make sure the entire directory isn't empty.)

3. (Forgive me for asking an obvious question...) You weren't trying to mount a regular audio CD, were you? Regular audio CDs don't need to be mounted for you to play them. Plus, many audio CDs you buy in stores have copy protection that can 'confuse' your CD drive. That could be what caused the lockup.
 
Old 08-15-2005, 02:52 PM   #3
wasaabi4784
LQ Newbie
 
Registered: Aug 2004
Location: NC, USA
Distribution: Mandrake 10.0
Posts: 19

Original Poster
Rep: Reputation: 0
The directory appears to have everything it should in there, more than a page length of files and directories. When I try to do ANYTHING to fstab it tells me "input : output error" . When I vim into fstab it gives me the crap about there being a .fstab.swp file (I tried recovery but it just gave me the broken record again) and instead of opening fstab it creates a new file named fstab (which I can't save because of.... what do you know?... input output error! ) However the contents of .fstab.swp are what fstab SHOULD have in it. Unfortunately that was my only computer so I'm at my parent's place posting this, so I don't know the fstab contents by memory. Also, the CD was an old windows game just to see if it was working. I really appreciate the help with this, I'm completely confused.

Last edited by wasaabi4784; 08-15-2005 at 02:53 PM.
 
Old 08-15-2005, 03:17 PM   #4
Michael_S
Member
 
Registered: Oct 2004
Location: Pennsylvania, USA
Distribution: Debian
Posts: 85

Rep: Reputation: 23
According to this:
http://www.computerhope.com/unix/vim.htm
You may be able to fix the file by typing "vim -r fstab.swp".
Or you may be able to go
"vim fstab" and then inside the (empty) file type ":help recover" and follow the directions to get the file back.

Once (hopefully when) you have the file back, try posting a copy here and we'll see what we can do.

Good luck.
 
  


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
Input/output error rob19 Linux - Newbie 14 08-21-2012 10:35 PM
input/output error when editing fstab true_atlantis Linux - General 6 01-08-2010 05:30 PM
aplay: pcm_write:1029: write error: Input/output error mimithebrain Linux - Software 2 12-04-2007 12:51 PM
cp - error reading /mnt/cdrom/mpegav/avseq01.dat input/output error manishsingh4u Linux - General 2 10-17-2005 06:02 AM
dd: input/output error? logosys Linux - Newbie 3 09-19-2005 03:13 AM


All times are GMT -5. The time now is 08:46 AM.

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