Linux USB flash drive, SD card mount and Uninstall

Source: Internet
Author: User

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
    1. MMC0: new High speed SDHC card at address 1234
    2. mmcblk0:mmc0:1234 sa08g 7.21 GiB
    3. 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
    1. disk /dev/mmcblk0: 7746 mb, 7746879488  bytes  
    2. 214 heads, 40 sectors/track, 1767 cylinders  
    3. units = cylinders of 8560 * 512 = 4382720  bytes  
    4.   
    5.          device boot      start          end      blocks  id system  
    6. /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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.