Changes between Initial Version and Version 1 of Docs/825gen2/Dev/Devices/USB/Storage


Ignore:
Timestamp:
11/10/23 10:31:18 (12 months ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/825gen2/Dev/Devices/USB/Storage

    v1 v1  
     1==== USB Storage Devices ====
     2
     3The 825gen2 supports USB storage devices formatted for FAT32 or ExFAT.
     4
     5ExFAT (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
     7SanDisk 256G flash drive.
     8
     9{{{
     10dmesg
     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
     24root@imx8mq-var-dart:~# df -h
     25Filesystem      Size  Used Avail Use% Mounted on
     26/dev/root       7.1G  4.2G  2.5G  64% /
     27devtmpfs        1.5G  4.0K  1.5G   1% /dev
     28tmpfs           2.0G  4.0M  2.0G   1% /dev/shm
     29tmpfs           782M   11M  772M   2% /run
     30tmpfs           4.0M     0  4.0M   0% /sys/fs/cgroup
     31tmpfs           2.0G   32K  2.0G   1% /tmp
     32tmpfs           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
     36tmpfs           391M   12K  391M   1% /run/user/1001
     37tmpfs           391M     0  391M   0% /run/user/0
     38/dev/sdc1       233G   43M  233G   1% /run/media/sdc1
     39
     40root@imx8mq-var-dart:~# ls -l /run/media/sdc1
     41total 43584
     42-rwxrwx--- 1 root disk 44041519 Oct  6  2021  SanDiskMemoryZone.apk
     43-rwxrwx--- 1 root disk   497832 Oct 25  2021  SanDiskMemoryZone_QuickStartGuide.pdf
     44drwxrwx--- 2 root disk    32768 Nov 24  2021 'System Volume Information'
     45root@imx8mq-var-dart:~#
     46
     47root@imx8mq-var-dart:~# echo "Test" > /run/media/sdc1/test.txt
     48root@imx8mq-var-dart:~# ls -l /run/media/sdc1
     49total 43616
     50-rwxrwx--- 1 root disk 44041519 Oct  6  2021  SanDiskMemoryZone.apk
     51-rwxrwx--- 1 root disk   497832 Oct 25  2021  SanDiskMemoryZone_QuickStartGuide.pdf
     52drwxrwx--- 2 root disk    32768 Nov 24  2021 'System Volume Information'
     53-rwxrwx--- 1 root disk        5 Nov  2 13:13  test.txt
     54}}}
     55
     56Verified in Windows this is FAT32 and not ExFAT by trying to copy large file to the drive.
     57
     58Error "File Too Large" appeared
     59
     60Used Windows 10 to reformat to ExFAT
     61
     62Then copied large file successfully
     63
     64Moved flash drive back to 825
     65
     66Dmesg
     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
     77root@imx8mq-var-dart:~#
     78
     79root@imx8mq-var-dart:~# ls /run/media
     80Data256G-sdc1  data-mmcblk0p3  rootfs1-mmcblk0p1  rootfs2-mmcblk0p2
     81
     82root@imx8mq-var-dart:~# ls -l /run/media/Data256G-sdc1/
     83total 5827968
     84drwxrwxrwx 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
     88root@imx8mq-var-dart:~# echo "test123" > /run/media/Data256G-sdc1/test123.txt
     89root@imx8mq-var-dart:~# ls -l /run/media/Data256G-sdc1/
     90total 5828096
     91drwxrwxrwx 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
     96root@imx8mq-var-dart:~# cat /run/media/Data256G-sdc1/test123.txt
     97test123
     98
     99fdisk -l to view file system information:
     100
     101root@imx8mq-var-dart:~# fdisk -l
     102Disk /dev/mmcblk0: 14.68 GiB, 15758000128 bytes, 30777344 sectors
     103Units: sectors of 1 * 512 = 512 bytes
     104Sector size (logical/physical): 512 bytes / 512 bytes
     105I/O size (minimum/optimal): 512 bytes / 512 bytes
     106Disklabel type: dos
     107Disk identifier: 0xe49b9c9d
     108
     109Device         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
     115Disk /dev/mmcblk1: 29.72 GiB, 31914983424 bytes, 62333952 sectors
     116Units: sectors of 1 * 512 = 512 bytes
     117Sector size (logical/physical): 512 bytes / 512 bytes
     118I/O size (minimum/optimal): 512 bytes / 512 bytes
     119Disklabel type: dos
     120Disk identifier: 0xb88fb0cd
     121
     122Device         Boot Start      End  Sectors  Size Id Type
     123/dev/mmcblk1p1      16384 15171583 15155200  7.2G 83 Linux
     124
     125
     126Disk /dev/sdc: 232.97 GiB, 250148290560 bytes, 488570880 sectors
     127Disk model:  SanDisk 3.2Gen1
     128Units: sectors of 1 * 512 = 512 bytes
     129Sector size (logical/physical): 512 bytes / 512 bytes
     130I/O size (minimum/optimal): 512 bytes / 512 bytes
     131Disklabel type: dos
     132Disk identifier: 0x3083954b
     133
     134Device     Boot Start       End   Sectors  Size Id Type
     135/dev/sdc1          32 488570879 488570848  233G  7 HPFS/NTFS/exFAT
     136root@imx8mq-var-dart:~#
     137
     138
     139Attempt NTFS
     140
     141
     142Reformatted and copied large file back on drive.
     143
     144Inserted in 825
     145
     146dmesg
     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
     157root@imx8mq-var-dart:~# ls /run/media
     158Data256G-sdc1  data-mmcblk0p3  rootfs1-mmcblk0p1  rootfs2-mmcblk0p2
     159root@imx8mq-var-dart:~#
     160root@imx8mq-var-dart:~#
     161root@imx8mq-var-dart:~# ls -l /run/media/Data256G-sdc1/
     162total 5827724
     163dr-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
     166root@imx8mq-var-dart:~# echo "TestXYZ" > /run/media/Data256G-sdc1/testxyz.txt
     167-sh: /run/media/Data256G-sdc1/testxyz.txt: Read-only file system
     168
     169Read NTFS successful, but does not support writing
     170