LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   USB Flashdrive light does not turn off when unmounted (https://www.linuxquestions.org/questions/linux-hardware-18/usb-flashdrive-light-does-not-turn-off-when-unmounted-397062/)

josedsilva 12-27-2005 11:42 PM

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.

Please advice !!!!
:Pengy:

shuuhen 12-27-2005 11:55 PM

Instead of using "umount /mnt/usb-flash", use "eject /mnt/usb-flash".

josedsilva 12-28-2005 12:17 AM

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?

josedsilva 12-28-2005 09:09 PM

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.

dmartins 12-29-2005 12:42 AM

maybe the light comes on when the drive has power? I know the light on mine flashes when the kernel detects it.

shuuhen 12-29-2005 01:08 AM

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.


All times are GMT -5. The time now is 08:59 AM.