Opened 22 years ago

Closed 22 years ago

#463 closed defect (fixed)

/etc/mtab should not be a symlink

Reported by: magius@… Owned by: lfs-book@…
Priority: highest Milestone:
Component: Book Version: 3.3
Severity: major Keywords:
Cc:

Description

/etc/mtab is currently being symlinked to /proc/mounts. This causes problems with applications that watch mtab. KDE for example loses performance becuase it will continually report that the /etc/mtab file is a dirty file. Once I changed the file to a static file in /etc it worked much better and KDE stopped complaining. Is there a possibility this could be changed in future version of LFS? The KDE Mailing list repeated gets complaints on this. Below I've attached one of the emails I received from the KDE Devel team regarding this problem. ---<SNIP>---


As long as LFS, doesn't use a real MTAB, but a link to /proc/mounts I see no real way to fix that. I've tried to do my best, to reduce the performance problem, but since proc doesn't know about mtime :(

What you can do is disable the devices:/ view on kdesktop in the desktop settings and edit in $(KDEPREFIX)/share/services/kded/mountwatcher.desktop the line X-KDE-Kded-autoload=true to look like X-KDE-Kded-autoload=false

I don't think about /etc/mtab being a symlink. Actually it was quite easy to fix once you pointed me to the symlink. I dropped to single user mode (ie. telinit 1) Killed any othe processes not killed by init so that all I had running was my single bash shell as root. umounted all unneeded filesystems. Deleted symlink in /etc and touched an empty file. Just to test it, I mounted another filesystem and it wrote to the static file. Then in /etc/rc.d/init.d/mountfs I changed: mount -n -o remount,rw / to mount -o remount,rw / And all works fine :) ---<SNIP>--- Regards, Adam Watson

Attachments (1)

mtab-2002.12.23.patch (5.1 KB ) - added by sk@… 22 years ago.
Patch to implement /etc/mtab file handling in LFS Book and Bootscripts

Download all attachments as: .zip

Change History (4)

by sk@…, 22 years ago

Attachment: mtab-2002.12.23.patch added

Patch to implement /etc/mtab file handling in LFS Book and Bootscripts

comment:1 by gerard@…, 22 years ago

Priority: highhighest

comment:2 by gerard@…, 22 years ago

Status: newassigned

comment:3 by gerard@…, 22 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.