Questions tagged [fat]

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.

188 questions
0
votes
1 answer

finding root directory offset from Master Boot Record data on FAT32 file system

I am trying to understand FAT32 file system and presently I have written code in C and am able to read the partition table and Master Boot Record data from a disk image of SDHC card ( created using hex editor). image Now I want to find the location…
Majeed Khan
  • 505
  • 7
  • 16
0
votes
1 answer

BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [xx-config.xml];

I have a spring batch application. my main class refers to config xml -- public class MyApp{ public static void main(String[] args) { String[] config = { "myApp-job-config.xml" }; …
0
votes
1 answer

How to compute the FAT size in FAT File System

I am implementing a FAT file system in C. I am following the specs published by microsoft (http://read.pudn.com/downloads77/ebook/294884/FAT32%20Spec%20%28SDA%20Contribution%29.pdf) But I don't understand how to compute the FAT size field of boot…
RdlP
  • 1,366
  • 5
  • 25
  • 45
0
votes
1 answer

Storing result in variable gives strange results

I have a section of code that sometimes produces correct results. The only difference is I am storing the result in an intermediate variable. The overall function signature is: FS_FATEntry getFATEntryForCluster(FS_Cluster cluster, FS_Instance *…
Erik Johnson
  • 858
  • 1
  • 7
  • 29
0
votes
1 answer

Find Free Floppy Disk Space from FAT12

I'm trying to figure out how much remaining free space is on a FAT12 floppy disk file system by reading the hex values of a disk image. My plan is to count the number of FAT entries with the value 0x000 (empty space). I don't understand how to get…
CaddyShack
  • 110
  • 7
0
votes
0 answers

Creating file with FAT file-system

I have this problem : I'm using FAT FS and LPC4088 and after I divided physical drive with f_fdisk, and mounting two partitions apparently without problems ( I get FR_OK as result value for every used fs function), then I create a file, I write on…
0
votes
1 answer

Reading 32 Bytes of file at a time

Working on reading and interpreting FAT12 directory entries. I am trying to determine how to read 32 bytes of the file at a time. So far I have the following: f_name = sys.argv[1] #set file name as the argument to be passed in command line with…
Zack Herbert
  • 942
  • 1
  • 16
  • 39
0
votes
0 answers

SQLite error SQLITE_READONLY_DBMOVED for exFAT drive

I have OS X and external hard drive with exFAT and with SQLite database there. When I try to write in database, I get SQLITE_READONLY_DBMOVED error, but I can access to make operation writing, creating file/folders in drive. Why?
fhdnsYa
  • 443
  • 1
  • 6
  • 15
0
votes
1 answer

Software to test FAT Implementation

Do you know any software to verify a FAT Implementation? I'm writing on a FAT32 Implementation which supports "basic wear leveling" on a SPI-Flash. Now I want to know if my (binary) Image of the Flash is a "valid" FAT, maybe including a list of the…
xavor
  • 162
  • 12
0
votes
0 answers

Working with HEX in C. [Stuck]

According to http://wiki.osdev.org/FAT I'm trying to get the total FAT size. But the result is riddiculus. What am I doing wrong? Any help is appreciated! Thank you. int main(int argc, char *argv[]){ if(argc == 1){ printf("Root…
mmswe
  • 707
  • 2
  • 8
  • 20
0
votes
2 answers

How to reach FAT in C?

I have disk.img which is a fat32 file system in Linux. I want to reach its FAT and figure out used blocks for each file. I've read http://wiki.osdev.org/FAT#FAT_32_3 but did not understand how to reach the table. Maybe I'm missing something. How…
user4751640
0
votes
1 answer

How to find disk block that contains a file in FAT

I am wondering how you can find a file in a FAT file system. While in Linux there is a root block that tells me where the root is and I can just iterate through directory i-nodes and their blockpointers to find other other inodes from directory…
piggyback
  • 9,034
  • 13
  • 51
  • 80
0
votes
0 answers

FAT16 copy/export command line tool implementation

I'm working on a command line tool that allows you to copy and export data from a loaded FAT16 file system to your own native file system. For instance, right now, my program works like this: ./a.out Adisk16.raw FOO.TXT FAT start at 00001000, root…
Jf2k
  • 139
  • 1
  • 15
0
votes
2 answers

Create an arbitrary FAT filesystem, to file or directly in program memory

I am writing an embedded system, where I am creating a USB mass storage device driver that uses an 8MB chunk of RAM as the FAT fileystem.. Although it made sense at the time to allow the OS to take my zero'd out RAM area and format a FAT partition…
bazz
  • 413
  • 6
  • 14
0
votes
1 answer

Doesn't fragmentation in FAT file system lead to space wastage?

The wikipedia for article for fragmentation states: In many cases, fragmentation leads to storage space being "wasted", and in that case the term also refers to the wasted space itself. For other systems (e.g. the FAT file system) the space used to…