Attach a CD in linux

Source: Internet
Author: User
In linux, when a CD is mounted to Linux, each physical device is mapped to a file, which is placed under the/dev file (the Directory in linux is also a file, the file mapped to the optical drive is a file named cdrom. the mount command is the basic command for mounting the optical drive, which can be followed by parameters. In...
In linux, when a CD is mounted to Linux, each physical device is mapped to a file, which is placed under the/dev file (the Directory in linux is also a file, the file mapped to the optical drive is a file named cdrom. the mount command is the basic command for mounting the optical drive, which can be followed by parameters. You must select a mount point before mounting the optical drive. we strongly recommend that you do not mount the file directly under, here I mount the file to the cdrom under/mnt/cdrom, which is a new file. The entire process is described as follows: www.2cto.com $: mkdir-p/mnt/cdrom -- Create/mnt/cdrom directory $: mount-t auto/dev/cdrom/mnt/cdrom parameter-V display program version-h display auxiliary message-v shows more information, usually used with-f for debugging. -A hangs all the file systems defined in/etc/fstab. -F is usually used with-a, which generates a route for each mount action. You can speed up mounting when the system needs to mount a large number of NFS file systems. -F is usually used for debugging. It will make the mount not execute the actual action, but simulate the entire process of mounting. It is usually used with-v. -N in general, after mount is mounted, a piece of information will be written into the/etc/mtab. However, you can use this option to cancel this operation if the file system does not exist. -S-r is equal to-o ro-w is equal to-o rw-L. -U mounts the file system with the division serial number. -L and-U must exist in the/proc/partition file to make sense. -T specifies the type of the file system, which is usually not required. Mount automatically selects the correct type. -O async enables non-synchronous mode, and all file read and write operations are performed in non-synchronous mode. -O sync is executed in synchronization mode. -O atime-o noatime when atime is enabled, the system updates the "last call time" of the file each time the file is read 』. When we use the flash file system, we may choose to disable this option to reduce the number of writes. -O auto-o noauto enable/disable the automatic mounting mode. -O defaults uses the default options rw, suid, dev, exec, auto, nouser, and async.-o dev-o nodev-o exec-o noexec to allow execution of the execution file. -O suid-o nosuid allows the execution file to be executed under the root permission. -O user-o nouser can perform the mount/umount action. -O remount re-hangs an existing file system in different ways. For example, a previously read-only system can be re-mounted in the read-write mode. -O ro is mounted in read-only mode. -O rw is mounted in read/write mode. -O loop = the loop mode is used to separate an archive as a hard disk and mount it to the system. The example hangs/dev/hda1 under/mnt. # Mount/dev/hda1/mnt mount/dev/hda1 in read-only mode under/mnt. # Mount-o ro/dev/hda1/mnt
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.