LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-25-2004, 02:23 AM   #1
mkivihar
LQ Newbie
 
Registered: Oct 2004
Distribution: RedHat9
Posts: 2

Rep: Reputation: 0
USB flash unmount: device busy


Hi all,

Been playing with these USB-sticks (pen-drives, flash-drives or whatever)
on RH9, with 2.4.20-8 kernel.

Being ambitious, I installed some scripts to /etc/hotplug to enable the
stick mount automatically, when inserted in the USB slot. It so happens
that the stick mounts ok, even ordinary users can write to it.

But the blasted thing won't unmount! I've tried unmounting with the
stick in and out; as (l)user and as root, to no avail.

User unmount-attempts (naturally) end with "...only root can unmount..."
regardless of the flash being still plugged in. (The hotplug mounting
script runs as root)

Root-level unmounting attempts always end up with "Device is busy". Only window open on the desktop is the terminal window, and working directory is /mnt (mountpoint is /mnt/usbflash). "fuser -u usbflash" first produces "no process references" and "fuser -v" reports only USER root with PID kernel and ACCESS mount with COMMAND "/mnt/usbflash". fuser -k refuses to kill the process ("No automatic removal, please use umount")

Unmounting attempts of a user or root don't get recorded into the /var/log/messages while the stick is plugged in. Only when I physically remove the device, does there start appearing complaints. (usb.c says the device is not ready - why would it, is was just reported as disconnected - and after I plug it back in, VFS reports "busy inodes on changed media", but no copying or altering has been done)

So far only rebooting seems to help. Anyone have any suggestions as what_ could possibly be keeping the drive busy? Or any ideas whatsoever?

regards: MK
 
Old 10-25-2004, 02:33 AM   #2
wimdh
LQ Newbie
 
Registered: Aug 2004
Location: Dendermonde, Belgium
Distribution: Ubuntu latest
Posts: 28

Rep: Reputation: 15
Maybe some user is still in the usb directory...
 
Old 10-25-2004, 06:25 AM   #3
mkivihar
LQ Newbie
 
Registered: Oct 2004
Distribution: RedHat9
Posts: 2

Original Poster
Rep: Reputation: 0
Hmm, I can't think of any process that could be using it... (I'm not in the directory as user nor as root) although the mounting creates a desktop-icon for the flash-drive. If that is causing the device to be busy, I have no idea, how to remove it (the icon):
- there's no option to delete it
- right-clicking the icon and trying to unmount has the same effect as trying
to unmount as a normal user (since I'm logged in the desktop as user)

regs: MK
 
Old 10-25-2004, 06:37 AM   #4
wimdh
LQ Newbie
 
Registered: Aug 2004
Location: Dendermonde, Belgium
Distribution: Ubuntu latest
Posts: 28

Rep: Reputation: 15
It's when you change directory to /mn/usbflash
If you change to /home or another directory, can you unmount it then ?
 
Old 11-20-2004, 10:32 AM   #5
hanbin
LQ Newbie
 
Registered: Nov 2004
Posts: 9

Rep: Reputation: 0
Quote:
Originally posted by mkivihar

Being ambitious, I installed some scripts to /etc/hotplug to enable the
stick mount automatically, when inserted in the USB slot. It so happens
that the stick mounts ok, even ordinary users can write to it.
hi mkivihar,
sorry i can't help you becaur i'm just a linux newbie,
but may i know how you can make the stick mount automaticly when inserted in the usb slot?
 
  


Reply



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
Device busy, cannot unmount trebek Linux - Hardware 19 10-17-2008 04:58 AM
Unmount cd: device is busy jhimes Linux - Hardware 18 04-08-2008 01:51 AM
how to unmount unknown usb device? touser Linux - Hardware 1 05-30-2007 09:53 AM
unmount the usb device prital Linux - Newbie 6 01-24-2005 08:08 PM
unmount usb device pmorimer Linux - Hardware 2 08-25-2004 04:36 PM

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

All times are GMT -5. The time now is 02:02 PM.

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