-   Fedora (
-   -   /etc/mtab input/ouput error (

cecollinsjr 04-09-2006 02:32 AM

/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_u:object_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

MensaWater 04-14-2006 03:36 PM

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.

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