Open main menu

Wiki-Orange Pi β

Changes

Connect USB storage device test

1,139 bytes added, 15:54, 24 April 2023
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..."
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 output of sdX, it means that the U disk is recognized successfully<br>
{| class="wikitable" style="width:800px;"
|-
|
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<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''sudo mount /dev/sda1 /mnt/'''<br>
orangepi@orangepi:~$ '''ls /mnt/'''<br>
test.txt
|}
The following command can be used to mount the U disk in exfat format on the Linux system<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''sudo apt-get install exfat-utils exfat-fuse'''<br>
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<br>
{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~$ '''df -h | grep "sd"'''<br>
/dev/sda1 29G 208K 29G 1% /mnt
|}