LINUX mounting peripherals

Source: Internet
Author: User
LINUX mounting peripherals-general Linux technology-Linux technology and application information. For details, refer to the following section. I. Mount USB devices (USB flash drives and mobile hard drives)
1. Before inserting a USB flash drive or hard disk, run the fdisk-l command in the command line window. The system displays the hardware storage devices that can be identified currently;

Sda sda1 sda2
Sdb sdb1 sdb2

2. Insert a USB flash drive or a mobile hard disk and run the fdisk-l command again. The system will display the hardware storage devices that can be identified again. The two outputs are different, some content will be added during the second running, and the system will add the following content on the basis of the original: sdc, etc, indicates that the new USB flash drive or mobile hard drive is attached to the sdc of the system.

3. Use mkdir to create a mount point, for example, to load the device to the/mnt/usb/directory:

# Mkdir/mnt/usb

3. Run the mount command to load the device. If the file format of the device is not specified, the command is as follows:

# Mount/dev/sdc/mnt/usb

Generally, you do not need to specify the file format of the device to be loaded. The system can automatically identify the file format. However, the command for specifying the file format is also provided here:

# Mount-t vfat/dev/sdc/mnt/usb

4. Display and load the device file. Generally, you can view the file directly on your computer and use the "ls/mnt/usb" command.

5. Disconnect the USB flash drive or move the hard disk and run the umount command to prevent data loss. The command is as follows:

# Umount/dev/sdc

Note: Linux uses a combination of letters and numbers to identify hard disk partitions. For example, "hda1" indicates the type of the device where the partition is located, for example, hd refers to the IDE hard disk and sd (refers to the SCSI hard disk). The device where the third letter is located is arranged in the order of a, B, c, and d, for example, if hda is the primary hard drive of IDE 1 port, the primary hard drive of IDE 2 port should be hdc; the partition sequence of the last number on the device, the first four partitions (primary or extended partitions) are represented by numbers 1 to 4. logical partitions start from 5. For example: hda3 indicates the third primary partition or extended partition on the first IDE hard disk.

Ii. attach an optical drive
Similar to the preceding command, the command is as follows:
File Format not specified: mount/dev/cdrom/mnt/cdrom
File Format: mount-t cd9660/dev/cdrom/mnt/cdrom
Related Article

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.