Difference between revisions of "Connect USB storage device test"
Line 27: | Line 27: | ||
| | | | ||
orangepi@orangepi:~$ '''df -h | grep "sd"'''<br> | orangepi@orangepi:~$ '''df -h | grep "sd"'''<br> | ||
− | /dev/sda1 29G 208K 29G 1% /mnt | + | <span style="margin-right: 60px;">/dev/sda1</span><span style="margin-right: 30px;">29G</span><span style="margin-right: 30px;">208K</span><span style="margin-right: 30px;">29G</span><span style="margin-right: 30px;">1% /mnt</span> |
|} | |} |
Latest revision as of 20:48, 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" |