| 1 | ==== USB Storage Devices ==== |
| 2 | |
| 3 | The 825gen2 supports USB storage devices formatted for FAT32 or ExFAT. |
| 4 | |
| 5 | ExFAT (FAT32 has maximum individual file size of 4G. ExFAT file size limit is 128PB, so effectively individual file size can be as big as the flash drive.) |
| 6 | |
| 7 | SanDisk 256G flash drive. |
| 8 | |
| 9 | {{{ |
| 10 | dmesg |
| 11 | … |
| 12 | [ 972.373516] audit: type=1327 audit(1698930643.213:22): proctitle="(systemd)" |
| 13 | [ 992.372412] usb 4-1.2: new SuperSpeed USB device number 4 using xhci-hcd |
| 14 | [ 992.395362] usb-storage 4-1.2:1.0: USB Mass Storage device detected |
| 15 | [ 992.395822] scsi host1: usb-storage 4-1.2:1.0 |
| 16 | [ 993.425958] scsi 1:0:0:0: Direct-Access USB SanDisk 3.2Gen1 1.00 PQ: 0 ANSI: 6 |
| 17 | [ 993.428431] sd 1:0:0:0: [sdc] 488570880 512-byte logical blocks: (250 GB/233 GiB) |
| 18 | [ 993.429383] sd 1:0:0:0: [sdc] Write Protect is off |
| 19 | [ 993.429400] sd 1:0:0:0: [sdc] Mode Sense: 43 00 00 00 |
| 20 | [ 993.429719] sd 1:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA |
| 21 | [ 993.436723] sdc: sdc1 |
| 22 | [ 993.438787] sd 1:0:0:0: [sdc] Attached SCSI removable disk |
| 23 | |
| 24 | root@imx8mq-var-dart:~# df -h |
| 25 | Filesystem Size Used Avail Use% Mounted on |
| 26 | /dev/root 7.1G 4.2G 2.5G 64% / |
| 27 | devtmpfs 1.5G 4.0K 1.5G 1% /dev |
| 28 | tmpfs 2.0G 4.0M 2.0G 1% /dev/shm |
| 29 | tmpfs 782M 11M 772M 2% /run |
| 30 | tmpfs 4.0M 0 4.0M 0% /sys/fs/cgroup |
| 31 | tmpfs 2.0G 32K 2.0G 1% /tmp |
| 32 | tmpfs 2.0G 224K 2.0G 1% /var/volatile |
| 33 | /dev/mmcblk0p2 7.1G 24K 6.7G 1% /run/media/rootfs2-mmcblk0p2 |
| 34 | /dev/mmcblk0p3 182M 14K 168M 1% /run/media/data-mmcblk0p3 |
| 35 | /dev/mmcblk0p1 7.1G 3.1G 3.6G 47% /run/media/rootfs1-mmcblk0p1 |
| 36 | tmpfs 391M 12K 391M 1% /run/user/1001 |
| 37 | tmpfs 391M 0 391M 0% /run/user/0 |
| 38 | /dev/sdc1 233G 43M 233G 1% /run/media/sdc1 |
| 39 | |
| 40 | root@imx8mq-var-dart:~# ls -l /run/media/sdc1 |
| 41 | total 43584 |
| 42 | -rwxrwx--- 1 root disk 44041519 Oct 6 2021 SanDiskMemoryZone.apk |
| 43 | -rwxrwx--- 1 root disk 497832 Oct 25 2021 SanDiskMemoryZone_QuickStartGuide.pdf |
| 44 | drwxrwx--- 2 root disk 32768 Nov 24 2021 'System Volume Information' |
| 45 | root@imx8mq-var-dart:~# |
| 46 | |
| 47 | root@imx8mq-var-dart:~# echo "Test" > /run/media/sdc1/test.txt |
| 48 | root@imx8mq-var-dart:~# ls -l /run/media/sdc1 |
| 49 | total 43616 |
| 50 | -rwxrwx--- 1 root disk 44041519 Oct 6 2021 SanDiskMemoryZone.apk |
| 51 | -rwxrwx--- 1 root disk 497832 Oct 25 2021 SanDiskMemoryZone_QuickStartGuide.pdf |
| 52 | drwxrwx--- 2 root disk 32768 Nov 24 2021 'System Volume Information' |
| 53 | -rwxrwx--- 1 root disk 5 Nov 2 13:13 test.txt |
| 54 | }}} |
| 55 | |
| 56 | Verified in Windows this is FAT32 and not ExFAT by trying to copy large file to the drive. |
| 57 | |
| 58 | Error "File Too Large" appeared |
| 59 | |
| 60 | Used Windows 10 to reformat to ExFAT |
| 61 | |
| 62 | Then copied large file successfully |
| 63 | |
| 64 | Moved flash drive back to 825 |
| 65 | |
| 66 | Dmesg |
| 67 | |
| 68 | [ 1858.483512] usb-storage 4-1.2:1.0: USB Mass Storage device detected |
| 69 | [ 1858.485704] scsi host1: usb-storage 4-1.2:1.0 |
| 70 | [ 1859.490708] scsi 1:0:0:0: Direct-Access USB SanDisk 3.2Gen1 1.00 PQ: 0 ANSI: 6 |
| 71 | [ 1859.491710] sd 1:0:0:0: [sdc] 488570880 512-byte logical blocks: (250 GB/233 GiB) |
| 72 | [ 1859.492735] sd 1:0:0:0: [sdc] Write Protect is off |
| 73 | [ 1859.492753] sd 1:0:0:0: [sdc] Mode Sense: 43 00 00 00 |
| 74 | [ 1859.493136] sd 1:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA |
| 75 | [ 1859.500237] sdc: sdc1 |
| 76 | [ 1859.502308] sd 1:0:0:0: [sdc] Attached SCSI removable disk |
| 77 | root@imx8mq-var-dart:~# |
| 78 | |
| 79 | root@imx8mq-var-dart:~# ls /run/media |
| 80 | Data256G-sdc1 data-mmcblk0p3 rootfs1-mmcblk0p1 rootfs2-mmcblk0p2 |
| 81 | |
| 82 | root@imx8mq-var-dart:~# ls -l /run/media/Data256G-sdc1/ |
| 83 | total 5827968 |
| 84 | drwxrwxrwx 1 root root 131072 Nov 2 08:21 'System Volume Information' |
| 85 | -rwxrwxrwx 1 root root 5967587328 Oct 24 2022 en-us_windows_10_business_editions_version_22h2_x64_dvd_8cf17b79.iso |
| 86 | |
| 87 | |
| 88 | root@imx8mq-var-dart:~# echo "test123" > /run/media/Data256G-sdc1/test123.txt |
| 89 | root@imx8mq-var-dart:~# ls -l /run/media/Data256G-sdc1/ |
| 90 | total 5828096 |
| 91 | drwxrwxrwx 1 root root 131072 Nov 2 08:21 'System Volume Information' |
| 92 | -rwxrwxrwx 1 root root 5967587328 Oct 24 2022 en-us_windows_10_business_editions_version_22h2_x64_dvd_8cf17b79.iso |
| 93 | -rwxrwxrwx 1 root root 8 Nov 2 13:27 test123.txt |
| 94 | |
| 95 | |
| 96 | root@imx8mq-var-dart:~# cat /run/media/Data256G-sdc1/test123.txt |
| 97 | test123 |
| 98 | |
| 99 | fdisk -l to view file system information: |
| 100 | |
| 101 | root@imx8mq-var-dart:~# fdisk -l |
| 102 | Disk /dev/mmcblk0: 14.68 GiB, 15758000128 bytes, 30777344 sectors |
| 103 | Units: sectors of 1 * 512 = 512 bytes |
| 104 | Sector size (logical/physical): 512 bytes / 512 bytes |
| 105 | I/O size (minimum/optimal): 512 bytes / 512 bytes |
| 106 | Disklabel type: dos |
| 107 | Disk identifier: 0xe49b9c9d |
| 108 | |
| 109 | Device Boot Start End Sectors Size Id Type |
| 110 | /dev/mmcblk0p1 16384 15192063 15175680 7.2G 83 Linux |
| 111 | /dev/mmcblk0p2 15192064 30367743 15175680 7.2G 83 Linux |
| 112 | /dev/mmcblk0p3 30367744 30777343 409600 200M 83 Linux |
| 113 | |
| 114 | |
| 115 | Disk /dev/mmcblk1: 29.72 GiB, 31914983424 bytes, 62333952 sectors |
| 116 | Units: sectors of 1 * 512 = 512 bytes |
| 117 | Sector size (logical/physical): 512 bytes / 512 bytes |
| 118 | I/O size (minimum/optimal): 512 bytes / 512 bytes |
| 119 | Disklabel type: dos |
| 120 | Disk identifier: 0xb88fb0cd |
| 121 | |
| 122 | Device Boot Start End Sectors Size Id Type |
| 123 | /dev/mmcblk1p1 16384 15171583 15155200 7.2G 83 Linux |
| 124 | |
| 125 | |
| 126 | Disk /dev/sdc: 232.97 GiB, 250148290560 bytes, 488570880 sectors |
| 127 | Disk model: SanDisk 3.2Gen1 |
| 128 | Units: sectors of 1 * 512 = 512 bytes |
| 129 | Sector size (logical/physical): 512 bytes / 512 bytes |
| 130 | I/O size (minimum/optimal): 512 bytes / 512 bytes |
| 131 | Disklabel type: dos |
| 132 | Disk identifier: 0x3083954b |
| 133 | |
| 134 | Device Boot Start End Sectors Size Id Type |
| 135 | /dev/sdc1 32 488570879 488570848 233G 7 HPFS/NTFS/exFAT |
| 136 | root@imx8mq-var-dart:~# |
| 137 | |
| 138 | |
| 139 | Attempt NTFS |
| 140 | |
| 141 | |
| 142 | Reformatted and copied large file back on drive. |
| 143 | |
| 144 | Inserted in 825 |
| 145 | |
| 146 | dmesg |
| 147 | |
| 148 | |
| 149 | [ 2632.765588] sd 1:0:0:0: [sdc] Write Protect is off |
| 150 | [ 2632.765606] sd 1:0:0:0: [sdc] Mode Sense: 43 00 00 00 |
| 151 | [ 2632.768104] sd 1:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA |
| 152 | [ 2632.776333] sdc: sdc1 |
| 153 | [ 2632.778398] sd 1:0:0:0: [sdc] Attached SCSI removable disk |
| 154 | [ 2633.488384] ntfs: driver 2.1.32 [Flags: R/O MODULE]. |
| 155 | [ 2633.530979] ntfs: volume version 3.1. |
| 156 | |
| 157 | root@imx8mq-var-dart:~# ls /run/media |
| 158 | Data256G-sdc1 data-mmcblk0p3 rootfs1-mmcblk0p1 rootfs2-mmcblk0p2 |
| 159 | root@imx8mq-var-dart:~# |
| 160 | root@imx8mq-var-dart:~# |
| 161 | root@imx8mq-var-dart:~# ls -l /run/media/Data256G-sdc1/ |
| 162 | total 5827724 |
| 163 | dr-x------ 1 root root 0 Nov 2 13:35 'System Volume Information' |
| 164 | -r-------- 1 root root 5967587328 Oct 24 2022 en-us_windows_10_business_editions_version_22h2_x64_dvd_8cf17b79.iso |
| 165 | |
| 166 | root@imx8mq-var-dart:~# echo "TestXYZ" > /run/media/Data256G-sdc1/testxyz.txt |
| 167 | -sh: /run/media/Data256G-sdc1/testxyz.txt: Read-only file system |
| 168 | |
| 169 | Read NTFS successful, but does not support writing |
| 170 | |