0

There are few questions about some time between GUI copy window finishes the copying process to the external drive and a moment when the IO queue is fully written to the drive.

IO queue: https://askubuntu.com/a/428529/404171

This is why USB safe eject doesn't work for some time until data is written. Debian/Ubuntu shows notifications when it is not allowed to eject the drive, and when you can eject it. Windows (afaik) at least waits for the IO queue to empty when you click "Safely eject drive" from the status bar. We all know, that the situation may lead to the corrupted and half-written data on the drive.

The question is - when you suspend the computer during the copying phase, when GUI reports success, and IO queue still writes the data to the drive - does it respect the IO queue? Or that could also result in corrupted data?

  • 1
    If you want to be on the safe side, start a terminal window and run the command sync in order to flush the buffers. When the terminal window returns to prompt you know that the buffers are flushed and it is safe to remove the drive. I don't know if suspend will run sync and wait for it to finish, but if you do it manually you will be safe. -- Let us hope that somebody who knows will chip in and tell us if suspend respects the IO queue. – sudodus Mar 18 at 14:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.