Results 1 to 3 of 3

Thread: Does unmounting filesystems also do a 'sync'?

  1. #1
    Join Date
    May 2008
    Beans
    54

    Question Does unmounting filesystems also do a 'sync'?

    I run 8.04 LTS (Hardy). I use a 4gig FAT32 USB stick for some of my files between Ubuntu & Windows. Sometimes, the USB stick is corrupted (according to Windows CHKDSK) and files are lost.

    When I unmount the USB, (via a right click on the icon on the GNOME desktop), does the unmount selection also do a sync to the USB? I don't know for sure. I have been using 'sync' and waiting a bit before unmounting the USB. I haven't tried just an unmount and then pulling the USB out after it's unmounted.

    My questions are:

    1) Does the unmount also flush all I/O to the mounted drive / USB stick?

    2) When in the command shell, does the 'sync' command not return to the command prompt until after all I/O is flushed?

  2. #2
    Join Date
    Aug 2006
    Location
    Yellowknife
    Beans
    878

    Re: Does unmounting filesystems also do a 'sync'?

    "Yes" to both.
    Not the cupcakes!
    Trust me.

  3. #3
    Join Date
    May 2008
    Beans
    54

    Re: Does unmounting filesystems also do a 'sync'?

    Thanks decoherence, I'll test it out.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •