You are not logged in.
Good afternoon
I'm having a very annoying problem recently. Somehow my /var partition has decided to not unmount properly every time I shut down my laptop normally, which leads to the annoying problem of having to delete stale lock files every time I start the system up :-S.
I don't know much about troubleshooting such a problem. During shutdown I just get a message that the partition is still locked due to a running process. I've tried going through my log files where my beginner instinct tells me that I might find something, but I couldn't find any useful information in any of them. Maybe I'm missing an importang shutdown logfile.
Anyways, could someone please show me the right direction?
thanks
Last edited by Dan0512 (2011-03-30 19:46:57)
Offline
I have no experience with that, but... aren't the lock files you have to delete the ones that were still open at shutdown? It should give you the name of the application that doesn't want to quit, shouldn't it?
Since it's a recent problem, you can also have a look at pacman.log for new or updated programs...
Offline
When my laptop shuts down, it's very fast so that I can't write down anything meaningful, but I'm pretty sure I just get a generic message that a proccess still has it locked.
The file I have to delete is /etc/mtab~.
regards
daniel
Offline
I have same problem started just few days before,
I was using gnome/gdm then i migrated to kde [not completely just desktop]. then i started getting those problem.
The message says /var is still in use and lsof or fuser can help detecting processes using that mount point so, i did
lsof | grep /var
the list includes klipper, yakuake, polkit-kde, kmix, klauncher, kded4, bluedevil, kglobalac, ksmserver, kwin, kactivity, knotify4, plasma-de, kuiserver, kaccess, krunner
All of them using /var/cache/fontconfig
and some of them using this also /var/tmp/kdecache-gimireh/
I don't what this means or has to do any thing with the problem.
thanks
obssesed with changing distros .......................... ArchLinux is my doctor.
Offline
@Dan0512:
/etc/mtab~ seem to be a backup file to me, have no idea what it means
@gimireh: you seem to run "lsof | grep /var" while kde is still running.
I'm no expert but how about try this:
sudo telinit 3
then log in and try
lsof | grep /var
tsujeruplive, tnarongisi... ... ... ... ɥsılƃuǝ sı sıɥʇ
Offline
So, let me give you an update on the issue:
Apart from this I had a very ugly problem with my install, so I just plain decided to reinstall arch from scratch. And guess what, /var is still busy during shutdown XD ..
Now, the strange part is that it happens even when there are no processes running on /var. I can do a boot to console, run lsof | grep /var which shows nothing, and then shutdown and still have the same issue.
Any ideas on what could be wrong? ...
thanks ..
Offline
The solution was on arch wiki:
should have been gone there first
https://wiki.archlinux.org/index.php/Fstab
topic : Fixing shutdown error with /var partition
obssesed with changing distros .......................... ArchLinux is my doctor.
Offline
The solution was on arch wiki:
should have been gone there firsthttps://wiki.archlinux.org/index.php/Fstab
topic : Fixing shutdown error with /var partition
Thanks a lot for the link, that fixed it for me as well ;-)
I think though that there should be some indication in the beginner's install guide.
Offline
That topic is no longer there in the wiki. Linking to correct version: https://wiki.archlinux.org/index.php?ti … _partition
Thanks,
railmaniac
Offline
The old section on the wiki (which I wrote) solves an unmounting problem when /var/{lock,run} are mounted as tmpfs, which you shouldn't be doing anymore - we have /run now, just use symlinks.
Offline