You are not logged in.

#1 2011-03-08 17:29:20

Dan0512
Member
Registered: 2011-03-08
Posts: 7

[SOLVED] /var not unmounting correctly during shutdown

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

#2 2011-03-09 08:40:08

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: [SOLVED] /var not unmounting correctly during shutdown

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

#3 2011-03-10 16:22:42

Dan0512
Member
Registered: 2011-03-08
Posts: 7

Re: [SOLVED] /var not unmounting correctly during shutdown

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

#4 2011-03-11 17:38:29

gimireh
Member
From: Kathmandu, Nepal
Registered: 2010-11-13
Posts: 4

Re: [SOLVED] /var not unmounting correctly during shutdown

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

#5 2011-03-12 22:03:34

lives2evil
Member
From: GMT+7
Registered: 2010-03-21
Posts: 244

Re: [SOLVED] /var not unmounting correctly during shutdown

@Dan0512:
/etc/mtab~ seem to be a backup file to me, have no idea what it means big_smile
@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

#6 2011-03-16 21:22:59

Dan0512
Member
Registered: 2011-03-08
Posts: 7

Re: [SOLVED] /var not unmounting correctly during shutdown

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

#7 2011-03-26 15:30:04

gimireh
Member
From: Kathmandu, Nepal
Registered: 2010-11-13
Posts: 4

Re: [SOLVED] /var not unmounting correctly during shutdown

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

#8 2011-03-30 19:46:28

Dan0512
Member
Registered: 2011-03-08
Posts: 7

Re: [SOLVED] /var not unmounting correctly during shutdown

gimireh wrote:

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

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

#9 2011-06-16 03:24:19

railmaniac
Member
Registered: 2010-04-24
Posts: 24

Re: [SOLVED] /var not unmounting correctly during shutdown

That topic is no longer there in the wiki. Linking to correct version: https://wiki.archlinux.org/index.php?ti … _partition


Thanks,
railmaniac

Offline

#10 2011-06-16 16:37:26

thestinger
Package Maintainer (PM)
From: Toronto, Canada
Registered: 2010-01-23
Posts: 478

Re: [SOLVED] /var not unmounting correctly during shutdown

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

Board footer

Powered by FluxBB