Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1GB Chihiro images crash fatxfs or has blank root directory #26

Open
GXTX opened this issue Feb 8, 2022 · 0 comments
Open

1GB Chihiro images crash fatxfs or has blank root directory #26

GXTX opened this issue Feb 8, 2022 · 0 comments

Comments

@GXTX
Copy link

GXTX commented Feb 8, 2022

Attempting to load a 1GB Chihiro FATX partition crashes the driver.

Using the size as described in the example we end up crashing the driver.

--size=0x01f400000

Using a 'correct' size as calcuated by JayFoxRox's Chihiro-Tools project we end up being able to mount the image - however the root directory is empty.

--size=0x3B7D9000

Log with --size=0x01f400000 is too long to post, see: https://pastebin.com/Vy4ykv1u

Log below is from --size=0x3B7D9000

fatx_dev_read(buf=0x0x7fffcea32904, size=0x4, items=0x1)
fatx_dev_read(buf=0x0x7fffcea328fa, size=0xe, items=0x1)
Partition Info:
  Device Path:         /mnt/c/Temp/GCB0083s_b.img_dec
  Partition Offset:    0x0 bytes
  Partition Size:      0x3b7d9000 bytes
  Volume Id:           ffffffff
  Bytes per Sector:    512
  # of Sectors:        1949384
  Sectors per Cluster: 32
  # of Clusters:       60918
  FAT Offset:          0x1000 bytes
  FAT Size:            0x1e000 bytes
  FAT Type:            16
  Root Cluster:        1
  Cluster Offset:      0x1f000 bytes
fatx_fuse_get_attr(path="/")
fatx_fuse_read_dir(path="/", buf=0x0x55555f8794e0, offset=0x0)
fatx_open_dir(path="/")
checking component 1 in path /
fatx_read_dir(cluster=1, entry=0)
fatx_dev_seek_cluster(cluster=1, offset=0x0)
fatx_cluster_number_to_byte_offset - cluster = 1
fatx_dev_read(buf=0x0x7fffcea32360, size=0x40, items=0x1)
reached the end of the directory
fatx_close_dir()

A 512MB FATX partition is able to mount, read, and write using the example --size=0x01f400000.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant