Jesús Guerrero wrote:
> On Sun, August 30, 2009 21:38, Dirk Heinrichs wrote:
>   
>> Am Sonntag 30 August 2009 19:29:39 schrieb Alex Schuster:
>>
>>
>>     
>>> I have to change the bus from usb to scsi, then it works. But what
>>> about unmounting? Is is possible to have it unmounted after I pull the
>>> memory stick?
>>>       
>> How do want to umount something that's not there anymore? You have to
>> umount _before_ you pull it.
>>     
>
> You can force the umount using -l (no, it's not documented in the man
> page). You can use this to umount a volume *after* it has been physically
> removed. And some people use this crap on udev rules to remove the
> volume when they unplug the pendrive. Then they wonder why the heck
> the file is not where it should be. I guess they never heard of cached
> writes.
>
> The correct thing to do is of course to umount it before,
> and then unplug it or whatever.
>
> If you truly want to umount after, you should at least do a sync before
> removing the device. In any case, if you don't follow the logical
> order of the things don't complain if then you find that the files that
> should be there are not there when you need them.
>
> If you truly love risk, just use umount -l, but you have to promise not
> to cry if the fs breaks or your files are not writen when you sudenly
> unplug the device.
>
>   

Basically, if he is going to do this the way he is thinking of doing it,
use cp NOT mv.  o_O  If he uses mv and then unpkugs it without
unmounting or syncing, the file is gone for good.  At least with cp you
still have the original file.

Just thinking this through a little here.

Dale

:-)  :-) 

Reply via email to