Describe the bug
Linux-based OSes cannot reliably mount the emulated FAT32 volume. The underlying block device is accessible, but the FAT32 format cannot be parsed without errors.
To Reproduce
- Boot Xubuntu 18.04.4 Live USB
- Plug in EV3 with firmware 1.10E
- Open the device in Thunar/File browser
- Run
dmesg in terminal
Expected behavior
Kernel mounts the filesystem successfully and is able to read and write files on it without errors.
Screenshots
dmesg on PC:
[46037.916480] usb 1-9: new high-speed USB device number 59 using xhci_hcd
[46038.104311] usb 1-9: New USB device found, idVendor=0694, idProduct=0005, bcdDevice= 2.16
[46038.104315] usb 1-9: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[46038.104317] usb 1-9: Product: EV3
[46038.104319] usb 1-9: Manufacturer: LEGO Group
[46038.104320] usb 1-9: SerialNumber: 00165344cf21
[46038.149724] hid-generic 0003:0694:0005.002E: hiddev1,hidraw0: USB HID v1.10 Device [LEGO Group EV3] on usb-0000:00:14.0-9/input0
[46038.157223] usb-storage 1-9:1.1: USB Mass Storage device detected
[46038.157599] scsi host6: usb-storage 1-9:1.1
[46049.321161] scsi 6:0:0:0: Direct-Access Linux File-CD Gadget 0316 PQ: 0 ANSI: 2
[46049.321848] sd 6:0:0:0: Attached scsi generic sg2 type 0
[46049.322918] sd 6:0:0:0: Power-on or device reset occurred
[46049.323847] sd 6:0:0:0: [sdb] 65000 512-byte logical blocks: (33.3 MB/31.7 MiB)
[46049.324376] sd 6:0:0:0: [sdb] Write Protect is off
[46049.324383] sd 6:0:0:0: [sdb] Mode Sense: 0f 00 00 00
[46049.324989] sd 6:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[46049.350182] sdb:
[46049.353691] sd 6:0:0:0: [sdb] Attached SCSI removable disk
[46056.286985] FAT-fs (sdb): error, corrupted directory (invalid entries)
[46056.286989] FAT-fs (sdb): Filesystem has been set read-only
[46088.069243] FAT-fs (sdb): error, fat_get_cluster: invalid cluster chain (i_pos 0)
If needed, I can scrape the kernel dmesg from the brick as well (via telnet).
Desktop (please complete the following information):
- OS: Xubuntu 18.04.4
- Version
5.3.0-40-generic #32~18.04.1-Ubuntu
Additional context
I can force the kernel into ignoring the errors. After that, the files can be listed and application upload succeeds, but it is not a very good experience.
$ sudo mount -t vfat -o rw,errors=continue /dev/sdb /mnt
$ LC_ALL=C ls
ls: cannot access 'projects': Input/output error
dmesg.txt index.htm info_uf2.txt projects
$ sudo cp lego-Untitled.uf2 /mnt/
$ sync
However I cannot access the projects directory at all, the result is always an I/O error. On Windows, I can browser the Projects directory and the UF2 files show up.
Describe the bug
Linux-based OSes cannot reliably mount the emulated FAT32 volume. The underlying block device is accessible, but the FAT32 format cannot be parsed without errors.
To Reproduce
dmesgin terminalExpected behavior
Kernel mounts the filesystem successfully and is able to read and write files on it without errors.
Screenshots
dmesg on PC:
If needed, I can scrape the kernel dmesg from the brick as well (via telnet).
Desktop (please complete the following information):
5.3.0-40-generic #32~18.04.1-UbuntuAdditional context
I can force the kernel into ignoring the errors. After that, the files can be listed and application upload succeeds, but it is not a very good experience.
However I cannot access the
projectsdirectory at all, the result is always an I/O error. On Windows, I can browser the Projects directory and the UF2 files show up.