USB stick loading and unloading under the minimum Linux system

Source: Internet
Author: User

USB Stick Mount Command
When the USB stick is inserted, the boot message will be displayed, and the device named SDA1 sda:sda1 the USB flash drive.
Dev Device directory has a SDA1 device file, this device file is the USB stick we inserted, we attach this device file to the Linux system/mnt/udisk1 this directory, so that we can access the/mnt/udisk1 directory to read and write USB flash drive, Mount with mount command
[Email protected]/]# Mount/dev/sda1/mnt/udisk1
Simplified notation for mntud1, same function as Mount/dev/sda1/mnt/udisk1
[Email protected]/]# MNTUD1
Go to the/mnt/udisk1 directory to view the contents of the USB flash drive, if the content is the same as the contents of the USB flash drive, the USB stick mounted successfully
[Email protected]/]# Ls/mnt/udisk1


Cancel USB Stick Mount command
Cancel the mount with the Umount command, plus the directory to cancel the Mount/mnt/udisk1
[Email protected]/]# Umount/mnt/udisk1
Check the/mnt/udisk1 directory to see if there is no content, then the cancellation of the USB stick mounted successfully
[Email protected]/]# Ls/mnt/udisk1
Note: The above/udisk1 directory can be any of the/nfs,/SD,/udisk1,/udisk2,/UDISK3,/udisk4 subdirectories in the/mnt directory, in order to facilitate the identification and non-transmission of conflicts with other memory, it is best to use/ Directory of Udisk Identities


SD Card Mount command
When the SD card is inserted, the boot information is displayed, and the device named MMCBLK0:P1 SD card is called P1.
Dev Device directory has a MMCBLK0P1 device file, this device file is the SD card we inserted, we attach this device file to the Linux system/mnt/sd this directory, so that we can access the/MNT/SD directory to read and write the SD card, Mount with mount command
[Email protected]/]# MOUNT/DEV/MMCBLK0P1/MNT/SD
Simplified notation for MNTSD, same function as MOUNT/DEV/MMCBLK0P1/MNT/SD
[Email protected]/]# MNTSD
Go to the/MNT/SD directory to view the contents of the SD card, if the content is the same as the contents of the SD card, the SD card is mounted successfully
[Email protected]/]# LS/MNT/SD


Cancel SD Card Mount command
Cancel the mount with the Umount command, plus the directory to cancel the Mount/mnt/sd
[Email protected]/]# UMOUNT/MNT/SD
Check the/MNT/SD directory to see that there is no content, then cancel the SD card mount success
[Email protected]/]# LS/MNT/SD
Note: The above/SD directory can be any of the/nfs,/SD,/udisk1,/udisk2,/UDISK3 and/udisk4 subdirectories in the/mnt directory, preferably using a/sd-identified directory in order to facilitate identification and non-transmission of conflicts with other storage

USB stick loading and unloading under the minimum Linux system

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.