Forum Topic - Securely removing a USB pendrive:
   
Securely removing a USB pendrive  
Hi,

Presently I am working with QNX 6.3.0 SP3.

When I connect a pendrive to the USB port, QNX kindly recognises it, mounting it under the /fs/hd10-dos-1 folder. As it 

recognizes, the pendrive led goes on. This is fine.

Once finished with the pendrive, I wonder how I could securely remove the pendrive from the USB port, without loosing 
buffered data. 

I have checked to unmount the device, but the pendrive led does not goes off. I guess that removing the pendrive while 
its led is lid on could damage data.

However, killing the io-usb process, the led goes off, but if later I want to connect another usb pendrive, QNx does not

 automatically detects it anymore. Also this metohd requires root privileges.

I would like something more practical, like in MS Windows.

Cheers,

Ramon
Re: Securely removing a USB pendrive  
On Mon, 14 Apr 2008 14:29:17 +0400, Ramon Sarrate <ramon.sarrate@upc.edu>  
wrote:

> I have checked to unmount the device, but the pendrive led does not goes  
> off. I guess that removing the pendrive while
> its led is lid on could damage data.

It is dangerous to remove a drive when data transfer is under way. Some
drives indicate this by turning the led on, other by flashing led. If
you had the former kind of USB drive, you would never notice any
difference from Windows. Just try with another (newer? AData?) USB drive.

As far as a USB drive is unmounted, it is safe to disconnect it.

-- 
Andrei Gerasimenko
Re: Securely removing a USB pendrive  
> On Mon, 14 Apr 2008 14:29:17 +0400, Ramon Sarrate <ramon.sarrate@upc.edu>  
> wrote:
> 
> > I have checked to unmount the device, but the pendrive led does not goes  
> > off. I guess that removing the pendrive while
> > its led is lid on could damage data.
> 
> It is dangerous to remove a drive when data transfer is under way. Some
> drives indicate this by turning the led on, other by flashing led. If
> you had the former kind of USB drive, you would never notice any
> difference from Windows. Just try with another (newer? AData?) USB drive.
> 
> As far as a USB drive is unmounted, it is safe to disconnect it.
> 
> -- 
> Andrei Gerasimenko


OK. After unmounting it is safe to remove the USB drive. But, this requires root privileges. As a user I would be 
interested in safely removing the USB drive without knowing the root password!

Is it possible?

Cheers,

Ramon