eclipse-threadx/filex

Mounting of FileX filesystem image

Closed this issue · 2 comments

I could imagine the following use case:

  • We have a host application that is able to convert the native host file system image into a FileX image (and actually dump the fourth argument for fx_media_open - which serves as a scratchpad memory for the filesystem)

  • Generated filesystem image works perfect on the target system

I am wondering about compatibility with the FAT32 filesystem - I tried mounting that image using Linux - but without success - probably because there are no partitions?

Output from file <generated_filesystem_image.bin>

./generated_filesystem_image.bin: DOS/MBR boot sector, code offset 0x34+2, OEM-ID "EL FILEX", sectors/cluster 8, FAT  1, root entries 8, sectors 128 (volumes <=32 MB), Media descriptor 0xf8, sectors/FAT 1, sectors/track 1, heads 1, serial number 0x1, label: "default_vol", FAT (1Y bit by descriptor)

Output from fdisk -lu <generated_file_system_image.bin>

Disk ./generated_filesystem_image.bin: 64 KiB, 65536 bytes, 128 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

When I try to mount - I get:

mount: /mnt/my_mount_point: wrong fs type, bad option, bad superblock on /dev/loop35, missing codepage or helper program, or other error.

I appreciate any help/points - if you have tried such experiments on your side (mounting FileX filesystem image on host side) - since compatibility with FAT32.

FileX does not manage partitions but relies on driver/user application for the partition offset.
We have tried formating USB drives/SD card with FileX and successfully mounted on Windows PC.

@bhnaphade - thank you for your answer.
I am going to close that issue.