PDA

View Full Version : [ubuntu] What does "unmount" mean??



jamieh
May 7th, 2008, 01:22 AM
Do I have to "unmount" a flash drive before removing it?
What happens if I unmount an internal drive?
Thanks!

Dark Aspect
May 7th, 2008, 01:28 AM
Do I have to "unmount" a flash drive before removing it?
What happens if I unmount an internal drive?
Thanks!

You don't have to but its a good idea to unmount a drive to prevent data lost.Its basically the equivalent to the "safe removal of device" that windows 2000/XP had.

PeterJS
May 7th, 2008, 01:31 AM
Unmounting is the process of pushing out any pending write operations to a disk (this is especially problematic with flash disks that can be removed at any time), and disconnecting the files and directories listed on that disk from the rest of the file system (so other programs and things will know this disk isn't there anymore).

|{urse
May 7th, 2008, 01:34 AM
It is advisable to use the


sync

command before unmounting flash drives, ipod's psp's etc.

sync finishes up all pending data transfers to and from the flash drive
and is generally not necessary for non-removeable hard disks.

PeterJS
May 7th, 2008, 01:36 AM
It is advisable to use the


sync

command before unmounting flash drives, ipod's psp's etc. but not necessary for hard disks.

Unmount doesn't automatically sync? I thought that was one of the things it did... learn something new everyday.

ditdot
May 7th, 2008, 01:52 AM
how about the eject command ? I usually unmount the flash drive then eject it. Because if you only unmount it, its still show up in nautilus

glennric
May 7th, 2008, 02:10 AM
Unmount doesn't automatically sync? I thought that was one of the things it did... learn something new everyday.

Drives are synced when they are unmounted.

PeterJS
May 7th, 2008, 02:12 AM
Drives are synced when they are unmounted.

That's what I thought, thanks. It seems weird they wouldn't be, but stranger things have happened.

carloslosgrande
May 7th, 2008, 02:21 AM
You can unmount an internal drive so long as its not the OS drive - if you have only one don't unmount it.
If you have a flash drive with a display light you'll see this flicker after unmount.When that stops you can pull it out.- I believe this is sync occurring.
However I could be completely wrong on that.
And the command in terminal is "umount" not unmount

LeoSolaris
May 7th, 2008, 02:22 AM
I just unmount it, then pull it out. It automatically updates in Nautilus. I never even knew there was an eject command option for USB stuff. For me it always shows up as either mount or unmount, depending on if it's mounted or not.

It would be logical, given that Ubuntu tends to make things useful, that unmount would sync unwritten data and allow safe removal of USB devices all in one click (or command for those terminal freaks.)

Leo

|{urse
May 12th, 2008, 02:33 AM
Unmount doesn't automatically sync? I thought that was one of the things it did... learn something new everyday.

ah ^^ I made a stripped down ubuntu livecd with very few progs on it strictly for recovery use with a 5gb seagate usb hd. I've noticed that when using it to pull images with partimage it does not automatically sync so I've just always included sync before exit in my scripts on the disc. Glad i don't have to keep doing this, thx for the info ^^