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
2
votes
1 answer
Safely Remove Mounted Drive
I have an application that writes files to an external drive formatted as NTFS through the SATA interface.
Before closing the application I make sure that everything is flushed using FlushFileBuffers for each file (i.e. CreateFile, FlushFileBuffers,…

ronag
- 49,529
- 25
- 126
- 221
2
votes
2 answers
Delegating Constructors with Inheritance in C++ FAT Filesystem Emulation
I'm currently creating a FAT filesystem in C++. I have three classes:
Sdisk (which formats the disk via string to file output).
Filesys (which writes the FAT and the root).
Shell (offers ability to perform various file system operations.)
During…

SaundersB
- 607
- 2
- 12
- 25
2
votes
1 answer
File Allocation Table logical structure
I’m trying to understand how FAT file systems work from a higher (more logical) level. A FAT file system has a file allocation table, with 1 entry for each available allocation unit (cluster) in the disk. This data structure is used to map a file…

Frederic
- 83
- 1
- 10
2
votes
2 answers
FAT BPB and little endian reversal
My CPU is little endian, which documentation has told me conforms to the byte-order of the FAT specification. Why then, am I getting a valid address for the BS_jmpBoot, bytes 0-3 of first sector, but not getting a valid number for BPB_BytesPerSec,…

Kdawg
- 167
- 11
2
votes
1 answer
Git diff is present on symbolic links on Windows but not on Mac on FAT file system
I have a FAT external disk on which I store my GIT repos and use that reops both on Mac and on Windows. As FAT has no permissions, when I have copied files from local disk to external FAT disk I had git diffs because of the file mode changes. I have…

Narek
- 38,779
- 79
- 233
- 389
2
votes
1 answer
OS development: Implementing FAT12 Write Function
So im pretty new at OS development, right now im writing my FAT12 filesystem code. I got all the writing to floppy disk using the FDC code working but I cant seem to wrap my head around how I should proceed when writing a file to disk.
I know where…

Andres Bejarano
- 442
- 4
- 14
2
votes
1 answer
Create a FAT source-only jar using Gradle
I need to create a jar that includes dependencies (a FAT jar) using Gradle.
The catch: the jar needs to only include the straight .groovy files... no .class files.
I've seen the way to do it from the Gradle cookbook:…

twbbas
- 407
- 3
- 9
- 19
2
votes
2 answers
clusters, pages, sectors in FAT file system
Im trying to understand the concept of a "cluster" in a FAT filesystem. Specifically what is the relationship between a cluster, a Block, A Sector.
My understanding is the following
1) A Block/Page is 4096 bytes and a block is divided into …

banditKing
- 9,405
- 28
- 100
- 157
2
votes
2 answers
Converting the cluster number stored in FAT table (of FAT12 filesystem) for reading from a floppy disk
I'm writing a two stage bootloader for a FAT12 filesystem. The stage1 of the bootloader loads the stage2 from a floppy disk which is in FAT12 filesystem. Now I am having problem converting the cluster number (that I obtain from the FAT table) to a…

Saurav Deb Purkayastha
- 159
- 4
- 13
2
votes
3 answers
How can I read HDD volume serial number using VB 6?
How can I read HDD volume serial number using VB 6 but without using any ActiveX controls or third party add-ons?

Robert Jung
- 166
- 1
- 3
- 11
2
votes
0 answers
Big DB file support on Android
We all know that Android doesn't support any filesystem for SD cards except FAT.
I have huge DB sqlite file (approx. 9 Gb) and I would like to work with the file on my mobile device, but now it's impossible. Can I divide the file into some smaller…

GuenterR
- 59
- 5
2
votes
1 answer
FAT: List all files in a directory
I'm using Chan's FAT library that seems to provide a standard FAT filesystem API. The API doesn't seem to directly offer to list all the files in a given directory.
What is the standard way to list all files in a directory given access to a…

Randomblue
- 112,777
- 145
- 353
- 547
1
vote
2 answers
FILESTREAM in SQL Server 2008 cannot be used on FAT systems?
According to this article: http://technet.microsoft.com/en-us/library/bb933993.aspx
the FILESTREAM type is used for NTFS systems. Does that mean it can't be used on FAT systems?

CJ7
- 22,579
- 65
- 193
- 321
1
vote
1 answer
Scan a USB for Folders which have mp3 file in them using ELM CHAN fatfs?
I am tying to scan usb msc in stm32 for audio files. This mp3 files are scattered in many folders which are unknown to the application.
First I scan for directories in the root folder and find folders then I scan folders for mp3 files.
This is very…

Nima Aghayan
- 109
- 1
- 7
1
vote
0 answers
Sort a list of file paths without using memory or array in C?
I Use ELM Chan fatfs library for file system. This application reads a USB memory MSC. I want to read all the MP3 files in root directory in a sorted manner but I can not use an array to save all the file paths, Number of files exceeds ram memory of…

Nima Aghayan
- 109
- 1
- 7