Use the optical drive and USB flash drive is0 to load the optical drive in Linux.

Source: Internet
Author: User

(1)Before using the optical drive, Mount: # Mount/dev/CDROM/mnt/CDROM, and then you can read the content of the disc in the/mnt/CDROM directory;
(2)When you want to exit the CD, you must use the umout command. Otherwise, the CD drive will remain deadlocked: # umount/mnt/CDROM. You can also exit the CD directly: # eject

Load ISO files

Mount-o loop ISO file name destination directory

For example: # Mount-o loop/mnt/wind/FC4-i386-disc1.iso/mnt/temp/

I. Loading USB flash drives in Linux

How to load (excellent) USB flash drives in Linux

 

Step 1: Log On As the root user
First load the USB Module modprobe USB-storage
Use fdisk-L to check disk devices
Assume that the USB flash drive is SDA.
Step 2: confirm that the folder/USB has been created under the directory/mnt. If not, enter the command mkdir/mnt/USB.
Step 3: load the U disk with the following command:

How to load (excellent) USB flash drives in Linux

 

Step 1: Log On As the root user
First load the USB Module modprobe USB-storage
Use fdisk-L to check the USB flash drive device.
Assume that the USB flash drive is sda1.

Step 2: confirm that the folder/USB has been created under the directory/mnt. If not, enter the command: Md/mnt/USB
After the operation is successful, proceed to the next step.

Step 3: load the U disk with the following command:
Mount-T vfat/dev/SDA/mnt/usb_disk
After success, you can use the U disk, and the file is under the directory/mnt/USB.

Step 4: uninstall the USB flash drive
After using the USB flash drive, you must first press the USB flash drive to unmount the USB flash drive.
Command: umount/mnt/USB

 

Ii. Linux Mount User Guide

In Linux, if you want to use a storage device (Mo, hard disk, optical drive, and so on), you must first mount it. When the storage device is mounted, it can be accessed as a directory. Mount a device and run the mount command.

When using the mount command, you must first know at least three types of information:

1. What is the file system type of the object to be mounted? (File system type)

2. What is the device name of the object to be mounted? (/Dev /????)

3. Which Directory should I mount the device?

1. Types of file systems supported by the system

For the first point, the user can execute

CAT/proc/filesystems

To obtain the Supported file system types on the machine. If the system does not support the file system type you want to mount the device to, you may need to re-compile the kernel to enable it to support this type of file. For details about how to compile the kernel, refer to the related section of linuxaid on-line training.Article.

Common file systems include:

Win95/98 common FAT 32 File System: vfat

File System for Win NT: NTFS

File System for os2: HPFs

File System for Linux: ext2

Optical Disk File System: iso9660

Although vfat is a FAT 32 system, it is actually compatible with the file system type of fat 16.

2. Determine the device name

In Linux, the device names are usually in/dev. These device names are named in a regular manner. We can find the device names in the form of "push.

For example, the/dev/hda1 ide device. HD refers to hard disk, SD refers to SCSI device, and FD refers to Floppy device (or floppy disk ?). A Represents the first device. Generally, the IDE interface can be connected to four ide devices (for example, four hard disks ). So the methods to identify the IDE Hard Disk are as follows:

Yes: hda, HDB, HDC, HDD. In addition, "1" in hda1 represents the first hard disk partition of hda.

(Partition), hda2 represents the second partition of hda, and so on.

In addition, you can directly check the/var/log/messages file, in which you can find the device code identified by the system after the computer is started.

3. Search for hanging contacts

Finally, we have to decide where to connect the device. First, check whether your computer has an empty/mnt directory? This directory is used as a mount point directory. We recommend that you create multiple directories in/mnt:/mnt/CDROM,/mnt/floppy,/mnt/Mo, and so on as dedicated mount points for the directory.

For example, if you want to mount the following five devices, the command may be executed (assuming that all these are Linux ext2 systems. If win XX is used, change ext2 to vfat ):

1. Floppy Disk ==> Mount-T ext2/dev/fd0/mnt/floppy

2. Mo ==> Mount-T ext2/dev/SDA/mnt/Mo

3. CDROM ==> Mount-T ext2/dev/HDC/mnt/CDROM

4. scsi CDROM ==> Mount-T iso9660/dev/sdb/mnt/CDROM

5. scsi CDR ==> Mount-T iso9660/dev/SDC/mnt/scdr

This is a hypothesis. If your device name is different from this one, modify it on your own.

Note the following:

1. Run PWD to check whether the current directory is at the Mount point. If the current directory is at the Mount point, Mount (or umount) will not succeed (Device Busy will be displayed ).

2. the syntax for detaching a device is umount directory name, such as umount/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.