1. Manually mount/unmount the USB drive, SD card
For ARM Linux, the first time you use a USB flash drive or SD, this file directory is not directly accessible, we need to mount it, and then the next use can be directly used. Through the online search data, now the U disk in the Liunx under the method of recording down;
Step1: Insert SD card, if can recognize SD card, will print out some information
[CPP]View PlainCopy
- MMC0: new High speed SDHC card at address 1234
- mmcblk0:mmc0:1234 sa08g 7.21 GiB
- Mmcblk0:p1
Step2: Check the device name assigned to SD card by SD card system;
Enter the following command to view: $ fdisk-l/dev/mmcblk0
[CPP]View PlainCopy
- disk /dev/mmcblk0: 7746 mb, 7746879488 bytes
- 214 heads, 40 sectors/track, 1767 cylinders
- units = cylinders of 8560 * 512 = 4382720 bytes
-
- device boot start end blocks id system
- /dev/ mmcblk0p1 1 1768 7561216 b win95 fat32
Indicates that the USB drive device is named Mmcblk0, and in the/dev/directory, the next one is mounted.
Step3: Create a new mount directory
$ mkdir/path/udisk/
So in the future this directory is the SD card mount directory, the files in this directory will be the SD card file name
STEP4: Mount the SD card.
Execute command: $ mount-t vfat/dev/mmcblk0p1/udisk
STEP5: Enter the SD card directory to view the data on the SD card
$ cd/path/udisk
$ ls-l/* Displays data from the USB drive directory */
Reference: http://blog.csdn.net/leo115/article/details/7697886
STEP6: Uninstalling the USB drive
$ umount/home/user/udisk//* View the data in the USB drive directory '/home/user/udisk/' directory */
2. Auto mount/unload USB drive, SD card automatically mount with Shell script. 3.U disk, SD card partition
Linux USB flash drive, SD card mount and Uninstall