LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   USB Harddisk (https://www.linuxquestions.org/questions/linux-general-1/usb-harddisk-341780/)

enemorales 07-10-2005 03:23 AM

USB Harddisk
 
Hi there,

I have a usb powered hard disk. So far it works great (I formatted it with ext3) but I'm wondering if unmounting it before unplugging is the only thing I should take care of, or there could be other things to do? I'm not speaking about performance, but only to make sure that I don't loose data or kill the hard disk.

Thank you a lot in advance!

nixcraft 07-10-2005 03:52 AM

Yes you should unmount it before unplugging and run sync command:

Code:

sync;sync
umount /dec/sdaX


enemorales 07-10-2005 04:10 AM

Mm... interesting. Could I omit that if I add the sync option when I mount the disk? It looks like sync will sync(hronize?) all the devices... which I'm not sure is "desirable".

Thank you for the info anyway, I'll look for more information (man sync is not very "illustrative")


All times are GMT -5. The time now is 01:56 AM.