Questions tagged [fat32]

FAT32 is a filesystem format that is used on flash drives and older systems. It is the only filesystem that is fully supported by all three major operating systems (Windows, Mac OS X, and Linux).

FAT32 (File Allocation Table or File Allocation Table) is a that organizes and manages access to files on hard drives and other media. Created in 1996 by Microsoft to replace the FAT16 used by MS-DOS and with a number of limitations. FAT32 was implemented on Windows 95 (OSR2), Windows 98 and Millennium, and still has compatibility with Windows 2000 and Windows XP, using a more modern file system, NTFS, which was continued, and is also used in systems Windows Vista, Windows 7 and Windows Server 2008 R1/R2 (enterprise server).

The file allocation table (FAT) is a data structure that Windows creates after formatting a physical unit. This table stores information about the location of each file within the physical drive so they can be saved, retrieved, modified or deleted later. They are stored in blocks arranged in different positions of the disk, justifying the need for a table that point to each of these blocks.

Summary

For any type of data access to media, you need a file system to take these actions. Without a structure for storing data such as FAT32, no procedure for disk access is possible.

214 questions
2
votes
1 answer

Garbage data in file after sudden power loss

I am using a flash with FAT32 system. I am continuosly writing data to a file using file system APIs from rtos(SMX). However, after sudden poweroffs, the file contains garbage values just above the first file entry on system reboot. I run chkdsk…
Punit
  • 83
  • 1
  • 6
2
votes
3 answers

How can I write a program that can recover files in FAT32

How can I write a program that can recover files in FAT32?
user50819
  • 333
  • 1
  • 5
  • 14
2
votes
3 answers

microSD card FAT module

I have recently been using a uALFAT microSD board by GHI Electronics for data logging, but I have been having problems with its reliability; some of its function calls, at times, take far longer than I can handle. I am currently using an MSP430…
Dustin
  • 89
  • 11
2
votes
0 answers

Android Device act as Client FAT32 mass storage to Windows Host

Is it possible to make an android application that would allow for a computer running windows to be connected to the Android via USB and for the Windows machine to believe that the android is a FAT32 storage device? What I know so far: 1. The…
Wondering
  • 21
  • 2
2
votes
2 answers

Creating a symlink or hardlink in XP Fat32

I am looking for a way to use a symlink or hardlink to trick a program into thinking a file is in a specific directory when it's actually on a network share. I know symlinks are available via Junction and in Vista and above, but this is a Windows…
kesi
  • 21
  • 1
  • 2
2
votes
1 answer

undefined reference to `le16toh' error in Makefile

I'm trying to compile a C program with the following Makefile: msh: libFAT32.so gcc -Wall -fPIC -I. -o msh newTest.c -L. -lFAT32 libFAT32.so: gcc -std=c99 -shared -o libFAT32.so -fPIC fat32.c clean: rm *.so msh However, every time I…
mj_r96
  • 37
  • 6
2
votes
2 answers

Working with python off of a FAT32 filesystem

I pulled a django project repository (git) to a FAT32 drive and made some changes but when I went to commit, every file is out of date because of it's mode (i.e. - was 100644 is 100755) that's because of FAT32 right? I haven't ever really thought…
rennat
  • 2,529
  • 3
  • 26
  • 30
2
votes
2 answers

Format USB with bad partition table (read-only fs)

I have a USB drive that my Ubuntu machine can't format. I think the problem originated when I was using Rufus or UNetBootin inside a Windows VM and got a blue screen. There's no important data on there, I just want to be able to use it. It's…
lagagne
  • 25
  • 1
  • 1
  • 6
2
votes
4 answers

How can I create a file with invalid Windows timestamps?

I'd like to create a file with an invalid created/modified/accessed timestamp to use in unit tests to ensure that my application can handle files with invalid timestamps. It's a Windows application written in C# that could run on both NTFS and FAT32…
Tom Robinson
  • 8,348
  • 9
  • 58
  • 102
2
votes
5 answers

FAT File system and lots of writes

I am considering using a FAT file system for an embedded data logging application. The logger will only create one file to which it continually appends 40 bytes of data every minute. After a couple years of use this would be over one million write…
PICyourBrain
  • 9,976
  • 26
  • 91
  • 136
2
votes
0 answers

What steps are needed to load a second stage bootloader by name on a FAT32 file system in x86 Assembly?

I have a second stage bootloader which I need to load on a USB flash drive. I have a bootloader which loads my operating system and runs on a floppy drive. I can copy this boot code to my USB flash drive partition, but it crashes while loading the…
Michiel Pater
  • 22,377
  • 5
  • 43
  • 57
2
votes
2 answers

What is a good FAT file system for ARM7-TDMI

I'm using the ARM7TDMI-S (NXP processor) and I need a file system capable of reading/writing to an SD card. There are so many available, what have people used and been happy with? One that requires the least amount of setup is best - so the less I…
Seidleroni
  • 1,044
  • 3
  • 15
  • 31
2
votes
1 answer

Mounting a hidden partition in windows using C# or C++ program

I have a FAT32 partition that is hidden. I like to copy files to it from a Windows application implemented in C# or C++. The examples I have seen end up creating a drive in Explorer while the hidden partition is mounted. Is there a way to mount this…
PC Guy
  • 71
  • 6
2
votes
1 answer

Rsync copies unchanged files (USB Drive, FAT32)

I use rsync to make backups of my files located on my NAS to an USB device. I use the following command: sudo rsync -rv --modify-window=9999 --update --delete --stats --progress --log-file=/shares/Franck/log/backup_photos.log /shares/Public/photos…
Franck
  • 31
  • 3
2
votes
2 answers

Determine FileSystem of USB Drive

Is there a way to determine if a USB drive has been formatted as FAT, FAT32 or NTFS?
Luke
  • 41
  • 1
  • 2