xboxscene.org forums

Author Topic: Fatx File System Structure  (Read 139 times)

LostIt

  • Archived User
  • Jr. Member
  • *
  • Posts: 86
Fatx File System Structure
« on: October 21, 2006, 10:21:00 AM »

CODE

Private Type typFATxMBR ' Always 4KB in size
    FSName As String          ' Offset 0  - Size 4    : Will always be FATX
    VolumeID As Long          ' Offset 4  - Size 4    : Volume ID
    SectorsPerCluster As Long ' Offset 8  - Size 4    : Sectors Per Cluster
    FATCopies As Long         ' Offset 12 - Size 2    : Number of FAT copies. Always = 1
    Unknown As Long           ' Offset 14 - Size 2    : Unknown... Always = 0
    VolumeLabel As String     ' Offset 16 - Size 64   : Volume label in UNICODE
    'Unused() As Byte         ' Offset 80 - Size 4078 : Unused
End Type


I got the most helpful info from the XBox-Linux Wiki @
http://www.xbox-linu..._and_MS-DOS_FAT

You'll notice the Wiki doesn't know about the Unicode Volume Label. I found that out after some tinkering.

My problem is I can't figure out how to get the Sector Count or raw drive size. If that info can be found using an API (I'm using VB) for a RAW drive then that might be fine but I really would like more detailed (and correct) specs on the FATX file system.

Thanks.
Logged

LostIt

  • Archived User
  • Jr. Member
  • *
  • Posts: 86
Fatx File System Structure
« Reply #1 on: October 21, 2006, 11:26:00 AM »

I've figured out how to get the sector count (cylinder count, etc) but I would still greatly appreciate any details on the FATX file system if someone can point me in the right direction. Thanks!!!
Logged

LostIt

  • Archived User
  • Jr. Member
  • *
  • Posts: 86
Fatx File System Structure
« Reply #2 on: November 10, 2006, 01:39:00 PM »

I want to write a Memory card utility for the PC for formatting, reading, and writing XBox 1 memory cards or USB flash drives (configured to be XBox 1 memory cards.) I've got a decent understanding of  the FATX file system. I'm pausing on that at the moment but should be back on in it soon. I have another XBox related project (all tied together actually at some point) that I'm working on. XPnP Serivce Topic on XBox-Scene Forums

When I swing my attention back I would really appreciate any help! I'll post here in the dev section. Thanks
Logged