VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Can't unmount pendrive [SOLVED]  (Read 1401 times)

telepibe

  • Member
  • *
  • Posts: 19
Can't unmount pendrive [SOLVED]
« on: August 09, 2008, 02:11:54 pm »

I can't unmount my pendrive. I've tried every umount and vlh-umount command I could think of. Also, since I use Fluxbox, tried clicking the umount icon in the ~/desktop through pcmanfm and the icons went away but I'm still able to use the files in the pendrive.
I tried to change vl-hot for HAL but nothing happens when I click the respective icon in vasmcc.

I'm running VL 5.9 Light.
« Last Edit: August 10, 2008, 01:08:02 am by telepibe »
Logged
Runnning VL 5.9 Light on Desktop P133 Mhz, 64 Mb Ram, 4 Gb harddisk.

bigpaws

  • Vectorian
  • ****
  • Posts: 1872
Re: Can't unmount pendrive
« Reply #1 on: August 09, 2008, 09:09:28 pm »

Find the card first in the file system. Probably under media.

Then as root you can umount -f <mount point>

That is a dirty way to do it, however that should work.

Bigpaws
Logged

telepibe

  • Member
  • *
  • Posts: 19
Re: Can't unmount pendrive
« Reply #2 on: August 10, 2008, 01:07:35 am »

Then as root you can umount -f <mount point>

With the f option works. Thank you Bigpaws.
Logged
Runnning VL 5.9 Light on Desktop P133 Mhz, 64 Mb Ram, 4 Gb harddisk.

Joe1962

  • Administrator
  • Vectorian
  • *****
  • Posts: 2499
    • Joe1962's Website
Re: Can't unmount pendrive [SOLVED]
« Reply #3 on: August 12, 2008, 04:15:29 pm »

If a process has an open file on the drive, you can't unmount it normally. You have to close the process first (or kill it). Now vlh-umount has options for this:

vlh-umount = normal unmount
vlh-umount -s = unmount with sighup
vlh-umount -k = unmount with sigkill

sighup signals the process to shut itself down, which is better than kill, but won't work if the process is hang up.

The vl-hot desktop icon on KDE has similar unmount options on the context menu, but this was not yet possible to do on XFCE.
Logged
O'Neill (RE the Asgard): "Usually they ask nicely before they ignore us and do what they damn well please."
http://joe1962.bigbox.info
Running: VL 7 Std 64 + self-cooked XFCE-4.10