PDA

View Full Version : Safely unmounting usb drives with knoppix



don999
02-03-2014, 01:45 PM
Hi all,

It would always bother me to just unplug my flash drives under linux/knoppix without cleanly unmounting them. Under windows you have the "Safely remove devices" on the taskbar. So I did a bit of searching and if you use the command line:

udisks --detach /dev/sdg

where /dev/sdg is the location of the flash drive, it will be detached and powered down (assuming you haven't still got it mounted.)

Werner P. Schulz
02-03-2014, 02:02 PM
You can also use right mouse click on the device within the left side of PCManFM.

Capricorny
02-04-2014, 11:11 AM
Because I don't fully trust any file managers for such tasks, I normally use the command line, with mount/umount, and sync. That's of course old-fashioned and awkward, but it works safely. In particular, running sync can give some unexpected results when you just thought everything was written to disk already. It wasn't.

Werner P. Schulz
02-04-2014, 12:30 PM
If you try to unmount an USB device within PCManFM as I described you'll get this message, if there are any jobs not finished.
203