0

I have several live usb sticks. I decided to use them as ordinary flash drive. So I formatted them to fat32 using gparted. The mount correctly, but when I created file or directory on usb drive, and then replug it, everything disappears. I've got this problem for both linux and windows.

  • 2
    Do you unmount it before you unplug it? – Kusalananda May 14 '17 at 12:49
  • Oh, that was the solution. But other usb sticks works well with just unplugging – Kirill Losev May 14 '17 at 13:07
  • 2
    They only work because writing happened to have finished when you were unplugging them. Never unplug a storage medium (harddisk/stick) without unmounting first. – dirkt May 14 '17 at 13:09
  • Now everythin works well. Even if I unplug – Kirill Losev May 14 '17 at 13:09
0

You unplugged the drive without unmounting its partition.

Unmounting the partition would have allowed the OS to flush any pending writes to the disk.

It is likely that the partition will need to be run through fsck the next time you mount it as its state may be inconsistent.

Always unmount the mounted partition before unplugging the drive it's located on!

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.