LXDE doesn't unmount external drives on shutdown

Please post all general support questions for LXDE here.
Locked
decomp
Posts: 4
Joined: Wed Dec 02, 2009 4:08 pm

LXDE doesn't unmount external drives on shutdown

Post by decomp »

Hi all,

Lxde doesn't seem to be safely unmounting my external hard drive when I shutdown. This fact is also making me question whether it's safely unmounting my internal laptop hard drive? Is there a command I can add to a shutdown script somewhere to be sure? I'm currently using ubuntu 9.10 with lxde installed through synaptic.

Thanks!
Marty Jack
Posts: 381
Joined: Mon Mar 23, 2009 5:14 am

Re: LXDE doesn't unmount external drives on shutdown

Post by Marty Jack »

Take this up with Ubuntu if you would please, if you aren't able to figure it out. LXDE does not control the scripts that are run when you shut down. We do the equivalent of "init 6" or "init 0", or have it done by hal or UPower.

Somewhere along the way it should be doing umount -a -d, which should unmount everything that is mounted.

Also, whenever you file a bug report on anything, it is usually necessary to know the version of what you are complaining about, which in this case is the lxsession-logout part of LXSession.
Kobus
Posts: 2
Joined: Sat May 29, 2010 7:51 pm

Re: LXDE doesn't unmount external drives on shutdown

Post by Kobus »

Hi decomp,

Unmounting filesystems at shutdown is no business of LXDE. If you shutdown, LXDE is closed. After that your linux-system - whatever distro you have - should execute a shutdown-script, which unmounts all filesystems. So, as long as you don't change anything in your linux 'init' scripts, there's no reason to worry!!
If, for any reason, you want to unmount any filesystem, like an external drive, while not shuting down LXDE, open a terminal (LXterminal), type

Code: Select all

mount
to see what is mounted, and then

Code: Select all

umount /dev/xxx
, where xxx stand for the filesystem you want to unmount.
I hope this helps to understand Linux.
Locked