Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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)
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.