Jump to content

"device is busy" - Doing What? *RESOLVED*


kmc77
 Share

Recommended Posts

I know I saw a post on this a week or two ago, but I can't find it.

 

Occasionaly when I try to unmount my USB HD, I get a "device busy" message. Please excuse me asking the question again, but I can't get the dang thing unmounted tonight. Normally I just wait an hour, and it's not busy anymore, but It's been on for 5 hours now, and still busy.

 

How do I find out what it's busy doing, and how do I kill it when I find out?

Edited by kmc77
Link to comment
Share on other sites

I'm affraid I haven't a clue what post, but I had the same problem once with /dev/cdrom. Turned out i had /mnt/cdrom open in a konqeror window on desktop 2 and it wouldn't let me unmount untill I closed it.

Link to comment
Share on other sites

[root@kevins kevin]# umount -f /mnt/usbhd
umount2: Device or resource busy
umount: /dev/scsi/host1/bus0/target0/lun0/part1: not mounted
umount: /mnt/usbhd: Illegal seek
umount2: Device or resource busy
umount: /mnt/usbhd: device is busy

No luck with umount -f

[root@kevins kevin]# lsof | grep /dev/scsi/host1/bus0/target0/lun0/part1
bash: lsof: command not found

or with lsof | grep

 

The dang thing's still running

Link to comment
Share on other sites

Success! I found what I was looking for in one of aru's old FAQ's. This one to be exact. Thanks aru.

 

[root@kevins kevin]# fuser -vm /mnt/usbhd

This shows the offending process

[root@kevins kevin]# fuser -km /mnt/usbhd

This kills the offending process

 

In case any one was wondering, I got a little trigger happy and used the kill process command before I checked it, so I don't know what was tying things up.

 

Thanks for the help all.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...