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
1
vote
3 answers

Why must multiple filesystem "types" exist?

File systems provide a mechanism for categorizing (and thus navigating) data on a disk. This makes sense to me. If I want to find some "group" of data, I don't want to have to remember byte offsets myself. I would rather have some look up system…
Izzo
  • 4,461
  • 13
  • 45
  • 82
1
vote
1 answer

Determine filename at an LBA (FAT)

My goal is to translate logged block-level accesses (LBAs) to file names. I am logging at UEFI level, so programs and boot loaders mostly read from ESP (EFI System Partition) which has a structure similar to FAT. I know that fsutil volume…
Radical Ed
  • 178
  • 2
  • 13
1
vote
0 answers

Reading Files/Folders from disk with FAT12 in Own OS

I am developing an OS, I am trying to Implement FAT12 Filesystem from an Other's OS Source Code, Finally, I can Mount a FAT12 Formatted disk and Get its FAT12 Information. It can Read DriveName ( When 'Location = 0' ). But When I am trying to List…
1
vote
1 answer

Easy way to automatically generate short file name

I have a very old car radio that can play music from USB fash drives when they are formatted in FAT16 or FAT32, but it sorts files by the short 8.3 file name, not by the long file name. I want to play audiobooks that are divided into multiple files,…
1
vote
1 answer

How calculate minimum cluster size for FAT10 with 1 GB disk size?

Let's see we have a file system with FAT10 and a disk size of 1 GB. I'd like to know how I can calculate the minimum size of a cluster? My current approach looks like this: FAT10 means we have 2^10 clusters. Since the disk size is 1 GB which equals…
cnmesr
  • 345
  • 3
  • 11
1
vote
2 answers

Dependencies in fat jar not working outside of IDE (Java 8)

So im working on this JavaFx application (Java 8) which copies a .xlsx file and fills it with data from a .txt-file, for this I use the apache poi dependency. I have successfully build a fat jar through the maven-assembly-plugin. Here my…
1
vote
0 answers

Repeated errors using interrupt 0x13 to read FAT12 root directory into memory

I'm rolling my own simple, two-stage boot loader to load into a kernel I wrote recently. So far it's been a fantastic experience, and I've learned a lot polishing off what I believe to be a mostly functional first stage. But early in the program,…
jaytlang
  • 23
  • 3
1
vote
1 answer

Retrieve file count without walking through entire file system

I am on a vxworks 6.9 platform. I want to know how many files are in a folder. The file system is DOSFS (FAT). The only way I know how to do this is to simply loop through every file in the folder and count. This gets very expensive the more files…
1
vote
0 answers

Algorithm for converting ext4 filenames to FAT filenames

I need to move a directory structure from an ext4 partition to a FAT partition. There are different rules for filenames for the two. For example, ext4 allows two files foo and Foo to be in the same directory and be unique. This is not true for…
corbin
  • 1,446
  • 2
  • 27
  • 40
1
vote
1 answer

FAT12 file data region offset

I created a FAT image with: [user@localhost]$ dd if=/dev/zero of=floppy.img bs=1024 count=2880 [user@localhost]$ mkdosf -F 12 floppy.img Then I mount the image and add a new file: [user@localhost]$ echo "Hello, World!" >> /mnt/hello.txt On…
1
vote
1 answer

Parsing universal/fat binary files

I'm working on a project to implement a basic nm using memory-mapping mmap. I have been able to parse 64-bit binaries using the code: void handle_64(char *ptr) { int ncmds; struct mach_header_64 *header; …
akinf3mi
  • 13
  • 3
1
vote
0 answers

Win32 C++ - check if write error because FAT formatted drive root folder maximum reached

Getting an error trying to write to USB. CreateFile() returns 0x82 (The directory or file cannot be created). File being copied to the root folder. The problem ended up being that the USB drive is FAT formatted. I found this out when on a hunch…
bmahf
  • 965
  • 2
  • 11
  • 27
1
vote
1 answer

Getting the volume label of a Fat12 disk in C

I'm having an odd time trying to get the volume label of a disk image in C. I understand that for FAT12 disks this piece of information is located at offset 0x2b or 43 in decimal and is 11 bytes in length. Anyway here is my code right now: void…
JFord
  • 126
  • 1
  • 9
1
vote
0 answers

FAT filesystem: calculate the size and search a byte

I have this question in an Operating System test: Given a disk of 1GB with 16KB blocks: (1) Calculate the size of the File Allocation Table: My Answer: since there are 2^16 blocks in the disk, we have a table with 2^16 entry, and every entry needs…
1
vote
0 answers

How do I change the code in a FAT boot sector?

I am creating an operating system, and am able to create a simple multitasking kernel (though the code has been lost) and an IDE/ATA PIO driver without BIOS interrupts. I wish to create a boot loader that puts the system into Protected Mode,…
user6557303