USB Flashdrive light does not turn off when unmounted
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.
USB Flashdrive light does not turn off when unmounted
I have managed to mount my usb flashdrive and read it's contents. But when I umount the drive, the drive light does not turn off. I am sure the drive is umounted. Is this normal with RH 9 and is it safe to pull out the flashdrive while the drivelight is still on?
Further, if I mount the drive as root, I cannot umount the drive. I get an error message "Cannot umount because device is busy". My present working dir is not the /mnt directory and I am not accessing the drive contents when trying to umount from root.
Thanks shuuhen, I'll check if eject works. But after mounting the device an icon appears on X window's desktop and I unmount the device by right-clicking the icon and selecting "Unmount Volume" from the context menu. I suppose Linux would eject/umount the device as appropriate.
Is there any way to automate this process, like the "Unplug or eject hardware" feature of Windows?
Well shuuhen "eject /mnt/usb-flash" does NOT work. The drive get unmounted nodoubt, but the drivelight is still ON. I suppose the drive light should turn off if I need to unplug the flashdrive. Now I need to shut down Linux and turn off my computer to unplug the flashdrive.
Distribution: Mac OS X 10.6.6, Gentoo Linux, FreeBSD 6.0
Posts: 127
Rep:
If the light is still on after "eject /mnt/usb-flash", then it's going to stay on as long as it's getting power. You should be able to just pull the device after ejecting it without needing to worry about it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.