PanGuBoard DevelopmentKit

The PanGu development board provides a stackable USB Host interface (J6) with two USB ports. Can connect various USB devices. Here, a USB storage device is taken as an example. When the USB storage device is inserted into a USB port, the system will prompt that a USB device is found, and it also shows that the device name of the current device in the Linux system is sda. And the device has a partition, the corresponding device is sda1.

usb 1-1.1: new high-speed USB device number 4 using ci_hdrc
usb-storage 1-1.1:1.0: USB Mass Storage device detected
scsi host1: usb-storage 1-1.1:1.0
scsi 1:0:0:0: Direct-Access     SanDisk  Ultra Fit        1.00 PQ: 0 ANSI: 6
sd 1:0:0:0: [sda] 60062500 512-byte logical blocks: (30.7 GB/28.6 GiB)
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
random: nonblocking pool is initialized
 sda: sda1
sd 1:0:0:0: [sda] Attached SCSI removable disk
FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

After the USB disk is detected, you need to manually mount the USB device to the "/ mnt" directory. Use the mount command to view the corresponding mount directory.

# mount /dev/sda1 /mnt

You can read and write files to the / mnt directory. After the operation is complete, you can use the umount command to unmount the device and then unplug it.

# umount /mnt