Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 04-09-2006, 01:32 AM   #1
LQ Newbie
Registered: Apr 2006
Posts: 1

Rep: Reputation: 0
/etc/mtab input/ouput error

Never mind. Fixed it. Copied /etc to tmp, removed /etc, copied it back. Don't yet know why this fixed things.

references to /etc/mtab by any utilities which concern mounting, including usb, removable media, internal disks, "df", etc. fail with "/etc/mtab input/output error".
proc/mounts is visible and populated.
This makes it impossible to mount usb, accumulates tons of error messages in dmesg and /var/log/messages.
First appeared after FC5 updates with:
Apr 8 06:58:32 localhost kernel: audit(1144504677.102:2): avc: denied { getattr } for pid=1292 comm="mount" name="mtab" dev=sda6 ino=8799416 scontext=system_u:system_r:mount_t:s0 tcontext=system_ubject_r:unlabeled_t:s0 tclass=file

Turned off selinux, no change.

also noticed when restarting nfs:
Starting RPC idmapd: Error: RPC MTAB does not exist.
[root@dtxps1 etc]# ln -s /proc/mount /etc/mtab
ln: accessing `/etc/mtab': Input/output error
[root@dtxps1 etc]# ls /etc/mtab
ls: /etc/mtab: Input/output error

Thank you.

Charlie Collins

Last edited by cecollinsjr; 04-10-2006 at 02:25 PM.
Old 04-14-2006, 02:36 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,945
Blog Entries: 14

Rep: Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163
You don't by any chance have /etc as a separate mount in your fstab do you? Since it writes to /etc/mtab on a mount it would right to that BEFORE you mounted /etc. After /etc mounted it would hide the original /etc/mtab beneath the mount point so susequent reads/writes to /etc/mtab would actually be using a different mtab that the original which would freak it out a bit.


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
aplay: pcm_write:1029: write error: Input/output error mimithebrain Linux - Software 2 12-04-2007 11:51 AM
cp - error reading /mnt/cdrom/mpegav/avseq01.dat input/output error manishsingh4u Linux - General 2 10-17-2005 05:02 AM
java compiler+error ouput language bai_design Programming 0 10-06-2004 07:41 PM
question about ouput of ls -l Itzac Linux - Newbie 1 05-09-2004 04:18 PM
SAR Ouput Question te_conway Linux - General 10 01-26-2003 09:29 AM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 05:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration