[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Pen drive real unmount



John Halton wrote:
Alejandro Salas wrote:

My question is that I can mount-unmount the device
perfectly, but in windows I notice that when I unmount
it  the light from the pen drive goes off... and when
I unmount it under linux the light stays on. A friend
told me that I should unmount it using eject, that the
light not going off is not a good thing, but nothing
changes. I don't know if it has to do with the fact
that my pen drive seems to be different ( having to
mount it on another device ), or what.


The main reason for unmounting before unplugging is to make sure there isn't any data transfer occurring when you unplug the device, as this could cause permanent damage.

However, unmounting from the filesystem is not the same as removing the pen drive as a device. When you unmount the device, while it no longer appears in your filesystem, it still remains recognised by your PC as a device, it will still have a device assigned for it in /dev, it will still be drawing power, etc. This is a distinction that is less clear in Windows, which unmounts and unplugs a device simultaneously (even if that's not what you *want* it to do...)

I'm guessing that's why the light is still appearing. If the drive is unmounted then you should be able to unplug it without any risk, but if you want to be certain then you can always use "eject /dev/sda" (run as root or using sudo) which should then mean the light comes off.

(NB eject using "/dev/sda" because /dev/sda is the device itself, and /dev/sda1 is the partition on the device which stores the files.)

I have the same issue with my iPod, which keeps the "Do not disconnect" message up even after it's been unmounted from the filesystem, and if I just unplug it there are no problems.

You may be skating on thin ice. I wouldn't unplug a FLASH device
until power was removed from it.

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!



Reply to: