LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-02-2006, 08:05 PM   #16
phobox
Member
 
Registered: Dec 2003
Location: Columbus, OH USA
Distribution: Debian Knoppix Kanotix Sidux
Posts: 73

Rep: Reputation: 15

my preferred way of unmounting a complaining usb stick is to pull it from the socket, unlike a cdrom which can be refused you. just make sure you're not writing any data to it at the time...
 
Old 10-03-2006, 03:33 PM   #17
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Original Poster
Rep: Reputation: 30
Weird weird stuff. I still think it is related, because it implies some device not being released or shared by the system. In the case of the usb key, you can't unmount; on the other hand, the sound device cannot be used by another application, because some other application is accessing it.

Whatta you guys think? I am still trying to figure out the way to release the sound device once firefox is using it, without having to shutdown firefox. In some cases, i even have to restart my machine so i can have xmms working again.
 
Old 10-03-2006, 07:56 PM   #18
mma8x
Member
 
Registered: Jul 2004
Posts: 164

Rep: Reputation: 30
i've already replied how you can figure out what's using your devices. why not try and report back?
 
Old 09-28-2008, 07:16 AM   #19
leslieviljoen
LQ Newbie
 
Registered: Sep 2008
Posts: 10

Rep: Reputation: 1
If you are running a GUI and have "System Monitor" in your menus, you can use that instead of 'mount', 'ps' and 'kill' below.

Step-by-step in a terminal:

1. Open a terminal
2. 'mount' will tell you which devices are mounted where
3. sudo fuser -cv /dev/sda8

(where /dev/sda8 is the mounted device)

fuser will show you which PIDs (process IDs) are accessing the device.

To directly kill the process:
1. kill <PID>

To find out more about the process:
1. ps -fp <PID>

(you may have to use 'sudo ps -fp <PID>' if the process was started by another user)

If you run ps and see the process is still there after you tried kill, the process might not be responding any more. Then you can force it to close (but you risk losing data the process has in memory)

1. kill -9 <PID>

The only time I have seen 'kill -9' unable to kill a process is where the process is working with broken hardware.
 
Old 10-17-2008, 04:58 AM   #20
sachin.hbti
LQ Newbie
 
Registered: Oct 2008
Location: India
Distribution: suse ,fedora
Posts: 4

Rep: Reputation: 0
I think u r in the mounted directory...so u should first change the current directory..then try to umount usb drive...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unmount cd: device is busy jhimes Linux - Hardware 18 04-08-2008 01:51 AM
how can i force unmount a busy CD drive mailavj Linux - Software 1 04-04-2005 06:21 PM
USB flash unmount: device busy mkivihar Linux - Hardware 4 11-20-2004 10:32 AM
can't unmount my cdrom drive (says it's busy) fabs Linux - Hardware 2 02-23-2004 12:12 AM
"VFS:Busy inodes after unmount.Self-destruct in 5 seconds:have a nice day svyshna Linux - Networking 1 10-14-2003 10:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration