FAT short for File Allocation Table is the name of a computer file system architecture and a family of industry standard file systems utilizing it.
Questions tagged [fat]
188 questions
4
votes
2 answers
Weird directory entries in FAT file system
So I'm trying to figure out how the FAT FS works and got confused by the root directory table. I have two files in the partition: test.txt and innit.eh which results in the following table:
The entries starting with 0xE5 are deleted, so I assume…

Armandas
- 2,276
- 1
- 22
- 27
4
votes
2 answers
Purposefully Corrupting a FAT File System?
Is there a way to purposefully corrupt a FAT file system using only Win32 calls or must you do it at lower level? We're encountering FAT corruption on a WinCE 5.0 device and have written a utility to detect and attempt to correct it, but don't have…

Damon8or
- 527
- 2
- 11
4
votes
2 answers
Shrinking or partially truncating a file in DOS/FAT
I've been tasked with writing a data collection program for a Unitech HT630, which runs a proprietary DOS operating system that can run executables compiled for 16-bit MS DOS with some restrictions. I'm using the Digital Mars C/C++ compiler, which…
user65628
4
votes
2 answers
How to avoid damaging SD card for large writes?
Ok, first a little background to help make my question clear:
I am working on a device that collects certain data from sensors and posts them to a server using a GSM modem. As a GSM connection is not 100% reliable, it would contain a logging…

Suman Roy
- 673
- 5
- 18
4
votes
2 answers
What is the use of FAT32 reserved sectors?
I know sector 0 is mostly used for loading the operating system. Some windows versions have bootloadres bigger than 1 sector and use sector 1 and 2 as well. On sector 6 up to 8 is often a backup of the sectors 0-2. But what is the rest for? Why is…

Den
- 547
- 1
- 6
- 15
4
votes
1 answer
Android SD card filesystem
Long story short - how do I check what filesystem is used on the SD card?
I'd like to be able to differentiate between FAT and NTFS.

Sebastian Nowak
- 5,607
- 8
- 67
- 107
3
votes
1 answer
File.SetAttributes() not working on USB key as expected
FileAttributes attrs = File.GetAttributes( path);
File.SetAttributes( path, FileAttributes.Hidden );
attrs = File.GetAttributes( path);
This code snippet works on my NTFS file system (C:\Temp...\whatever_file). But when I try to perform this same…

dviljoen
- 1,612
- 1
- 16
- 28
3
votes
1 answer
How to build fat gcc46 libstdc++ on OS X?
I have successfully built and installed gcc 4.6.1 on my OS X box, but I can't seem to get it to create a fat/universal libstdc++ library for me. How do I make it do that?
The default /usr/lib/libstdc++.6.dylib supports the following…

Neil Steiner
- 729
- 1
- 7
- 17
3
votes
1 answer
SDHC card SPI initialisation
I'm working on an embedded system that currently only supports SDSC v1 cards. As it's getting harder and harder to find cards less than 2 GB, I'm trying to add support for SDHC cards. The communication with the card is done via the SPI bus.
So here…

lang2
- 11,433
- 18
- 83
- 133
3
votes
1 answer
Reading second stage bootloader from FAT floppy image
I am trying to develop a small OS with custom bootloader. I have a little bit of experience in OSDEV but not that much... My problem is that the first stage bootloader does not load the seconds from the disk. this is the boot.asm file:
org 0
bits…

Bonfra
- 33
- 3
3
votes
1 answer
Creating a FAT partition with a bootsector as an MBR
I am helping a friend write a bootloader for his operating system. I have gotten as far as writing a boot parameter block for him. It seems valid, however, when I use DD to burn it to the 1st sector of a 1.44MiB floppy disk image, it is not…

Safal Aryal
- 155
- 1
- 8
3
votes
0 answers
Windows 10 appears to corrupt FAT
I'm working on a firmware which was developed in 2011. The device has a USB OTG module and can be plugged into USB port of a PC. It has a 1 MB flash memory. When USB plug in is detected, the firmware generates two files, a PDF and a TTV (proprietary…

Donotalo
- 12,748
- 25
- 83
- 121
3
votes
1 answer
Format specifiers for data type BYTE, WORD and DWORD in c-language?
In C-language, what are the most appropriate format specifiers for data type BYTE, WORD and DWORD to be used with printf and scanf functions?
I am having a hard time displaying BPB field's values over console.
For example, if I am trying to display…

Amit Kumar
- 59
- 1
- 8
3
votes
0 answers
How to perform incremental tar backup of FAT filesystem
I use tar --listed-incremental=... to perform incremental backups on my computer, and for the most part it works like a charm. However, it doesn't seem to play well with my old FAT partition. It thinks that all the files have changed and backs up…

Adam Crume
- 15,614
- 8
- 46
- 50
3
votes
2 answers
Where do filesystems like Reiser, NTFS, etc store the file tables?
Where do filesystems like Reiser, NTFS, etc store the file tables? We're looking at writing our own filesystem, and wondering if we should use a single file to hold it all using btree's or use something out there.
Any advice? This is more a…

Kladskull
- 10,332
- 20
- 69
- 111