Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I do

sudo umount /media/KINGSTON

I got

umount: /media/KINGSTON: device is busy.

By using

fuser -c /media/KINGSTON

And

cat /proc/<pid>/cmdline

I found that the process is thunar--deamon. I closed all file manager windows. When I try to umount it by right cliking on the desktop, it also gave an error :

An application is preventing the volume "KINGSTON" from being unmounted

I am affraid that killing Thunar is going to impact other process running in other terminal. How can I tell it that I don't need this usb key anymore so it stop using it?

share|improve this question
    
If nothing is writing to the usb stick and you're out of other ideas, unplug it. –  Martin Owens -doctormo- Nov 6 '10 at 19:27
3  
sudo fuser -mv /media/KINGSTON will show the process name (instead of needing to do the separate cmdline command). –  Kees Cook Nov 7 '10 at 1:51

1 Answer 1

If you know that the media device is synchronised (there're no outstanding writes), then use the -f switch to umount (force unmount).

From the unmount man page, the -l switch does a "lazy" unmount, which detaches the filesystem now, and cleans up all references later.

sudo umount -f /media/KINGSTON

or

sudo umount -l /media/KINGSTON
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.