Questions tagged [fat32]

FAT32 is a filesystem format that is used on flash drives and older systems. It is the only filesystem that is fully supported by all three major operating systems (Windows, Mac OS X, and Linux).

FAT32 (File Allocation Table or File Allocation Table) is a that organizes and manages access to files on hard drives and other media. Created in 1996 by Microsoft to replace the FAT16 used by MS-DOS and with a number of limitations. FAT32 was implemented on Windows 95 (OSR2), Windows 98 and Millennium, and still has compatibility with Windows 2000 and Windows XP, using a more modern file system, NTFS, which was continued, and is also used in systems Windows Vista, Windows 7 and Windows Server 2008 R1/R2 (enterprise server).

The file allocation table (FAT) is a data structure that Windows creates after formatting a physical unit. This table stores information about the location of each file within the physical drive so they can be saved, retrieved, modified or deleted later. They are stored in blocks arranged in different positions of the disk, justifying the need for a table that point to each of these blocks.

Summary

For any type of data access to media, you need a file system to take these actions. Without a structure for storing data such as FAT32, no procedure for disk access is possible.

214 questions
2
votes
0 answers

Launching JRE in Linux from a FAT32 USB

I have a Java application installed on a USB which the user should be able to run from any OS. For this, I'm packaging a JRE instance on the USB along with my application. I'm having a FAT32 file-system on the USB. However, the problem is, FAT32…
nxs
  • 21
  • 4
2
votes
1 answer

FAT32 - size of the root directory

I am trying to parse the root directory of FAT32 in order to get a dir list in the root folder. So I need to go over all the directory entries in the root directory and parse them. My problem is that I don't know when to stop the iteration - How to…
2
votes
1 answer

Get fat32 attributes with python

How i can get fat32 attributes (like archived, hidden...) in linux without spawning a new process with fatattr utility call ? May be there is python binding for it or for linux/fs functions (fat_ioctl_get_attributes,…
therg
  • 465
  • 5
  • 11
2
votes
0 answers

Fatfs on win32 with an usb flash drive

Fatfs is a small library written in C ansi that lets us manage a file system on a storage device. I am planning on using it in an embedded project in order to store several files on an SD Card. Therefore I try to make some tests on a USB flash…
Geoffrey R.
  • 1,907
  • 1
  • 19
  • 32
2
votes
2 answers

FSCTL_MOVE_FILE on Windows XP, System volume, FAT32

I am having a problem with defragmenting files on windows xp, fat32 system volume. I am not writing a defragmenter but instead a part of the solution requires a certain set of files to be laid out continuously on the disk. To ensure this i am using…
Inso Reiges
  • 1,889
  • 3
  • 17
  • 30
2
votes
1 answer

Interpreting Bytes Per Sector on FAT32 Volume Boot Record

Below I've attached an image pertaining to the following question. I am parsing the volume boot record for a FAT32 partition and was stuck for many hours until I figured out WinHex has a Data Interpreter. When I click on 0Bh it shows a 16 bit…
Nick
  • 487
  • 1
  • 4
  • 21
2
votes
5 answers

Unable to delete file ( target of symbolic link doesn't exist )

I have a file named ENG~1.IN that cannot be deleted. File is located on an 8GB SanDisk USB drive with a FAT32 file system. Windows states that the file has 1,975 bytes attached to it. Windows explorer states: This is no longer located in J:. Verify…
Jared
  • 41
  • 1
  • 1
  • 6
2
votes
2 answers

low level C++ style i/o in C# for reading FAT32

I am working on reading the FAT32 entry of the hard disk and so far have been successful in reading the entries by making use of the CreateFile, ReadFile, and SetFilePointer APIs. Here is my code (written in C#) so far. ---The DLL…
Anirudh Goel
  • 4,571
  • 19
  • 79
  • 109
2
votes
2 answers

How do i replace unknown characters with sed?

Today i tried to import some MP3 Files from an external drive to my music folder, when i noticed that many of my tags are getting wrong interpreted. For example, files with letters such as á,ó,í,ö,ä etc. are shown as a question mark within a…
JFP
  • 21
  • 1
  • 2
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
1
vote
3 answers

FAT, optimize performance when retrieve a file

I have an implementation of database with one file per record, and I have about 10000 records. I'm trying to optimize the performance of access to file, and I have a little doubt. Is split files into folders better then keep all in single folder,…
blow
  • 12,811
  • 24
  • 75
  • 112
1
vote
2 answers

How can I find physical address of my files on hard disc

Suppose, I save a file on my hard disc drive(for example c:\abc.txt) that system file of my drive is in system file FAT32 or NTFS, I want to find physical address of this file for example sector number XXXXX to sector number yyyyy. please help me.
Ehsan
  • 2,273
  • 8
  • 36
  • 70
1
vote
2 answers

Alter a file (without fseek or + modes) or concatenate two files with minimal copying

I am writing an audio file to an SD/MMC storage card in real time, in WAVE format, working on an ARM board. Said card is (and must remain) in FAT32 format. I can write a valid WAVE file just fine, provided I know how much I'm going to write…
Iskar Jarak
  • 5,136
  • 4
  • 38
  • 60
1
vote
1 answer

Writing FAT32 image file to a RAW partition

Is it possible to write a FAT32 image file to a partition, like a second partition, programmaticaly?
ctasdemir
  • 383
  • 4
  • 13
1
vote
2 answers

Very large Jar files and FAT32

I am doing some analysis for a chunk of a desktop app we're working on. One requirement is that it be able to do i/o of some legacy file formats, which in practice are running as large as 800Mb each. An import might reasonably be expected to be on…
jasonnerothin
  • 1,556
  • 10
  • 15