Difference between revisions of "Connect USB storage device test"
(Created page with "1) First insert the U disk or USB mobile hard disk into the USB interface of the Orange Pi development board<br><br> 2) Execute the following command, if you can see the outpu...") |
|||
Line 4: | Line 4: | ||
|- | |- | ||
| | | | ||
− | orangepi@orangepi:~$ '''cat /proc/partitions | grep "sd*"''' | + | orangepi@orangepi:~$ '''cat /proc/partitions | grep "sd*"'''<br> |
+ | <span style="margin-right: 20px;">'''major''' </span><span style="margin-right: 30px;">'''minor'''</span><span style="margin-right: 30px;">'''#blocks'''</span><span style="margin-right: 45px;">'''name'''</span><br> | ||
+ | :<span style="margin-right: 50px;">8</span><span style="margin-right: 40px;">0</span><span style="margin-right: 20px;">30044160</span>'''<span style="color:#FF0000">sda</span>'''<br> | ||
+ | :<span style="margin-right: 50px;">8</span><span style="margin-right: 40px;">1</span><span style="margin-right: 20px;">30043119</span>'''<span style="color:#FF0000">sda1</span>'''<br> | ||
|} | |} | ||
3) Use the mount command to mount the U disk to /mnt, and then you can view the files in the U disk<br> | 3) Use the mount command to mount the U disk to /mnt, and then you can view the files in the U disk<br> |
Revision as of 20:47, 24 April 2023
1) First insert the U disk or USB mobile hard disk into the USB interface of the Orange Pi development board
2) Execute the following command, if you can see the output of sdX, it means that the U disk is recognized successfully
orangepi@orangepi:~$ cat /proc/partitions | grep "sd*"
|
3) Use the mount command to mount the U disk to /mnt, and then you can view the files in the U disk
orangepi@orangepi:~$ sudo mount /dev/sda1 /mnt/ orangepi@orangepi:~$ ls /mnt/ |
The following command can be used to mount the U disk in exfat format on the Linux system
orangepi@orangepi:~$ sudo apt-get install exfat-utils exfat-fuse orangepi@orangepi:~$ sudo mount -t exfat /dev/sda1 /mnt/ |
4) After mounting, you can view the capacity usage and mount point of the U disk through the df -h command
orangepi@orangepi:~$ df -h | grep "sd" |