LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-30-2003, 04:05 PM   #1
true_atlantis
Member
 
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639

Rep: Reputation: 30
input/output error when editing fstab


i did something wrong when editing fstab in mandrake when it booted correctly, now it wont boot correctly, and when i try to edit /etc/fstab in vi it gives me an error saying it cant write to the file, and if i try to less or cat it, it says "/etc/fstab: Input/output error." there is a file called /etc/fstab.OLD that has the correct settings, is there a way that will make my computer think that /etc/fstab.OLD is /etc/fstab without editing /etc/fstab in any way? or is there just a way to fix my problem?
 
Old 11-30-2003, 08:04 PM   #2
vnsullivan
LQ Newbie
 
Registered: Nov 2003
Posts: 15

Rep: Reputation: 0
Can you remove /etc/fstab?
If you can, just replace /etc/fstab by /etc/fstab.OLD.
If you cannot, post the output of the "rm -v /etc/fstab" command, so we can see what's the problem.
 
Old 12-01-2003, 05:02 PM   #3
true_atlantis
Member
 
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639

Original Poster
Rep: Reputation: 30
when i try to do anythign wiht fstab, which includes move delete view edit... i get an error like this

/etc/fstab: Input / output error
 
Old 12-01-2003, 05:24 PM   #4
true_atlantis
Member
 
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639

Original Poster
Rep: Reputation: 30
here is the exact error when i try

rm -f /etc/fstab

rm: unable to stat '/etc/fstab' : Input/Output error.

i am pretty sure the file is corrupt, and i was trying to find something about it on google, and i found this, if it helps, but i still dont have a solution on how to edit /etc/fstab

"The point is that if there is corruption in the filesystem then the
immutable flag may have be switched on accedently.

You notice this on ext2 when an inode has been corrupted. There's a 50%
chance the immutable bit may have been set, leading people to wonder why
they can't delete the file even as root.

I don't know whether reiserfs has such a bit though."
 
Old 01-08-2010, 03:02 PM   #5
theinvisibleguy3
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Rep: Reputation: 0
Hi true_atlantis hopefully you're still around, I was wondering if you ever found an answer to your unable to stat i/o problem. I've run into the exact same thing on an ext2 filesystem running busybox linux. Thanks!
 
Old 01-08-2010, 03:14 PM   #6
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
What does this show:
Code:
lsattr /etc/fstab
 
Old 01-08-2010, 05:30 PM   #7
GooseYArd
Member
 
Registered: Jul 2009
Location: Reston, VA
Distribution: Slackware, Ubuntu, RHEL
Posts: 183

Rep: Reputation: 46
have you tried booting into single user mode and fsck'ing / ?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
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
Please help! F'ed my fstab!! Input output error wasaabi4784 Linux - Newbie 3 08-15-2005 03:17 PM
Input/output error greenthing Linux - Software 4 04-28-2005 10:54 AM
Input/Output Error lwcangus Linux - Software 0 02-06-2005 09:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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