Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: FAT32 corruption

  1. #1
    Join Date
    Jan 2016
    Beans
    16

    FAT32 corruption

    i use win 10 and ubuntu dual boot system.
    I have a fat32 partition and I use it with both operating systems
    Sometimes I lost files

    how can I do?
    Thank You

  2. #2
    Join Date
    May 2008
    Location
    United Kingdom
    Beans
    5,335
    Distro
    Ubuntu

    Re: FAT32 corruption

    There's little context in your post, so it's hard to diagnose your problem.

    What do you use the FAT32 partition for? Is it for sharing data, or do you store your home folder there, or do is that where you installed Ubuntu?

    If it's for sharing data, can you reformat it to NTFS? (Please backup your data before doing this!) NTFS is more resilient than FAT32, and can hold larger files.

    Do Windows or Ubuntu ever crash, and you have to do a hard power-down?
    Always make regular backups of your data (and test them).
    Visit Full Circle Magazine for beginners and seasoned Linux enthusiasts.

  3. #3
    Join Date
    Jan 2016
    Beans
    16

    Re: FAT32 corruption

    I use the partition for data
    For example I modify an image with windows in FAT32 partition, then when I reboot to linux, the image is corrupted

  4. #4
    Join Date
    May 2008
    Location
    United Kingdom
    Beans
    5,335
    Distro
    Ubuntu

    Re: FAT32 corruption

    Quote Originally Posted by zanetto View Post
    For example I modify an image with windows in FAT32 partition, then when I reboot to linux, the image is corrupted
    I don't know why it's doing that. Use the Windows tool to check the partition for errors. It might find something.

    But, if you can instead reformat to NTFS, you'll likely have a much better time. NTFS is more resilient and reliable.
    Always make regular backups of your data (and test them).
    Visit Full Circle Magazine for beginners and seasoned Linux enthusiasts.

  5. #5
    Join Date
    Jan 2016
    Beans
    16

    Re: FAT32 corruption

    does NTFS work with ubuntu?

  6. #6
    Join Date
    May 2008
    Location
    United Kingdom
    Beans
    5,335
    Distro
    Ubuntu

    Re: FAT32 corruption

    Quote Originally Posted by zanetto View Post
    does NTFS work with ubuntu?
    Absolutely, yes. Linux (not just Ubuntu) has had full support for NTFS for a long time.
    Always make regular backups of your data (and test them).
    Visit Full Circle Magazine for beginners and seasoned Linux enthusiasts.

  7. #7
    Join Date
    Dec 2014
    Beans
    2,682

    Re: FAT32 corruption

    The one thing missing from the support for NTFS in Linux is a program to repair the file system if it develops problem. There is no 'fsck' (File System ChecK) for NTFS while there is one for most file systems Linux supports including FAT - fsck.fat exists and is quite complete. So NTFS should be avoided unless you're dual booting or have a second machine running Windows at hand so you can run 'chkdsk' on a file system when needed.

    Newer versions of windows are known for not cleaning up file systems when they shut down because they don't actually shut down at all but do a kind of partial hibernation instead. There are ways to stop this behaviour but since I haven't used Windows since version 7 I haven't bothered to memorize them ...

    Holger

  8. #8
    Join Date
    May 2008
    Location
    United Kingdom
    Beans
    5,335
    Distro
    Ubuntu

    Re: FAT32 corruption

    Quote Originally Posted by Holger_Gehrke View Post
    The one thing missing from the support for NTFS in Linux is a program to repair the file system if it develops problem.
    That is a good point. The OP has Windows, fortunately.
    Quote Originally Posted by Holger_Gehrke View Post
    Newer versions of windows are known for not cleaning up file systems when they shut down because they don't actually shut down at all but do a kind of partial hibernation instead. There are ways to stop this behaviour but since I haven't used Windows since version 7 I haven't bothered to memorize them ...
    I forgot about that! My notes for how to disable fast boot are out of date; they don't work for Windows 11.
    Always make regular backups of your data (and test them).
    Visit Full Circle Magazine for beginners and seasoned Linux enthusiasts.

  9. #9
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: FAT32 corruption

    There is a kernel driver bug for some versions of the NTFS-3g driver when used in some ways. I think it only impacts kernel 6.8.x, but I don't know.

    FAT32 is the worst choice for sharing data on any type of storage and should be avoided unless there's no other choice.

    For SSDs and HDDs that much be accessible through a physical connection with an MS-Windows computer, then NTFS is the best option. NTFS is journaled, which is a good thing for storage almost always.

    For cheap flash storage, like a USB flash drive or SDHC/MicroSD cards, use exFAT which corrects limitations of FAT32, but is not journaled. Journaling does use more writes to provide lots of extra data safety, but if the media only allows 1000 writes per cell before failure, it is usually better to use non-journaled file systems like exFAT or for Linux-only use, choose f2fs. f2fs is specifically designed for flash storage and Linux with support for all the expected POSIX standards. It is also freely released without patents. The performance of f2fs compares well with other file systems as well, unlike exFAT and FAT32.

    I use NTFS for 1 specific need. A hardware video recorder only supports FAT32 or NTFS, so I choose NTFS. About once a month, the NTFS file system becomes corrupted. I think the NTFS implementation in the video recorder device (it doesn't have any OS) is substandard. When I first got the device, I used FAT32 and had dumb limitations like files are limited to sizes of 2GB and a partition over 64G cannot be used. FAT32 was created in the 1990s and the limitations show that age which the replacement file system, exFAT completely remove.

    But for HDD and SSD storage that must be shared with MS-Windows, choose NTFS.

  10. #10
    Join Date
    Jan 2016
    Beans
    16

    Re: FAT32 corruption

    in win 10 I disabled fastboot
    I turned off nv cache feature
    I still have the problem

Page 1 of 2 12 LastLast

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
  •