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
3
votes
2 answers
File-Allocation Table (FAT) - How is Random-Access allowed?
Here comes a straight-forward question about random access when it comes to file systems using FAT.
I have seen different explanations of FAT with different kinds of pictures/animations showing different things. I don't understand how random access…

Simon
- 470
- 1
- 7
- 22
3
votes
3 answers
Logging 16-bit data to an SD card at the rate of 44 kHz
I am using the STM32F4 microcontroller with a microSD card. I am capturing analogue data via DMA.
I am using a double buffer, taking 1280 (10*128 - 10 FFTs) samples at a time.
When one buffer is full I am setting a flag and I then look at 128…

user3122700
- 39
- 2
3
votes
2 answers
How to traverse a FAT directory, file
I am trying to understand how a FAT file system works. From the attached first sector of FAT 16 partition I could understand,
Bytes per sector = 512.
Sectors per cluster = 4.
FAT 16 file system.
reserved sectors = 4.
FAT table count = 2.
Number of…

prasannatsm
- 900
- 1
- 11
- 19
3
votes
2 answers
Weird standard for FAT32 >4gb files
I have recently encountered an embedded system with IDE drives that are FAT32 but have >4gb files. It appears to do this by setting the file size in the 32byte directory entry to how many bytes the final cluster uses - instead of being the actual…
kiasecto
3
votes
1 answer
Programmatically accessing the Windows file allocation table
How can I programmatically access the file allocation entries (FAT) in Windows? I have read the articles which mention reading entries at a particular address in the harddisk, but how can I read those entries from the harddisk. I can try in C, C++,…

Anirudh Goel
- 4,571
- 19
- 79
- 109
2
votes
2 answers
Why changing directory using elm chan fatfs f_chdir doesnt effect directory structure?
My folder structure is like this :
I open a folder then I use f_chdir to change my directory to that folder.
The problem is that f_chdir doesn't change my Directory Structure variable.
-A1
| A11
| |
| A11.mp3
| A12
| |
…

Nima Aghayan
- 109
- 1
- 7
2
votes
2 answers
FAT12 file starts at 0x4200 or 0x4400?
Following link http://www.c-jump.com/CIS24/Slides/FAT/lecture.html say Fat12 file starts at
0x4200, but when I use hexeditor watch the floppy image created by following commands, file seems start at 0x4400, and bootloader assembly code used jmp…

lewis
- 51
- 3
2
votes
2 answers
Programatically change FAT32 volume serial number
How do I programatically change Volume Serial of a Fat32 partition from C#. I found this example, but it is written with C++ which I don't read well. Could someone please answer a C# code snippet?
Update:
I can see the C++ function from above…

VOX
- 2,883
- 2
- 33
- 43
2
votes
1 answer
bad CPU type in executable error from the CLI Provider Perspective
I've my own open-source CLI tool called surmagic. In my latest update, I've built on a different machine, which has an M1 CPU. Before and after publishing I've tested on that machine, via installing the homebrew. And it works as expected. After a…

MGY
- 7,245
- 5
- 41
- 74
2
votes
0 answers
Use variable in other layer file
I have an assignment that do FAT12 system. Follow the requirement, I need 2 functions to read sector and multi sector. Those functions in HAL layer. I just tested in app (main) layer below:
In HAL.c:
#define SIZE_OF_SECTOR 512
static FILE* s_pimage…
2
votes
1 answer
How to decide where to put a function in django fat model implemantation
I want to know where to put a function on models that related to multiple models.
I have four models:
1- custom user
2- office
3- company
4- vehicle
every vehicle, user and office has a foreign key to company.
I want to have all vehicles from a…

Bahadır Kacar
- 43
- 4
2
votes
0 answers
Fat12 emulation
I implemented FatFS in internal memory of MCU STM32 Chan's library. Now I try to emulate bigger volume of flash device to receive large files from PC.
I can do it by changing two places of FatFS image:
1. By changing MBR_start + 12 field value of…

user3583807
- 766
- 1
- 8
- 26
2
votes
0 answers
access resource files in outer jar
I'm writing some microservices (fat jar) which expose some http endpoint using a router. As I like every microservice automatically expose a /doc endpoint which just fetches a /src/main/resource/doc/readme.adoc and renders that to html I created a…

Marco
- 173
- 1
- 3
- 9
2
votes
1 answer
Why is FAT#2 rarely used?
I read a single-line explanation of FAT#2 from Peter Abel's book IBM PC Assembly Language and Programming.
It says:
Although FAT2 is still maintained, its use has never been implemented.
Wikipedia says:
The FAT Region.
This typically contains two…

Jee Seok Yoon
- 4,716
- 9
- 32
- 47
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