Detailed description of CD image files mounted in Linux

Source: Internet
Author: User

With the emergence of many operating systems, people's choices are also increasing. As problems also emerge, Linux is an excellent open-source operating system that can run on various computer systems, ranging from huge to small, with the increasingly mature and stable Linux system and its unique advantages of open source code, Linux has been widely used in the world. Next we will discuss how to mount a CD image file in Linux. I hope you will learn how to mount Linux.

Mount command)
First, we will introduce how to use the mount command. The mount command has many parameters. Here we will focus on what we will use today.
Command Format:
Mount [-t vfstype] [-o options] device dir
Where:

1.-t vfstype specifies the type of the file system, which is usually not required. Mount automatically selects the correct type. Common types include:
CD or CD image: iso9660
DOS fat16 File System: msdos
Windows 9x fat32 File System: vfat
Windows NT ntfs file system: ntfs
Mount Windows File network sharing: smbfs
Network Sharing for UNIX (Linux) files: nfs

2.-o options is used to describe the mounting method of a device or file. Common parameters include:
Loop: used to connect a file to the system as a hard disk partition.
Ro: mounting a device in read-only mode
Rw: mounting a device in read/write mode
Iocharset: Specifies the character set used to access the file system

3. the device to be mounted.

4. mount point of the dir device on the system ).

Attach a CD image file
Thanks to the huge advances in disk technology in recent years, new computer systems are equipped with large-capacity disk systems. In Windows, many people are used to making software and materials into disc image files and using virtual optical drives. This has many advantages: 1. It reduces the wear and tear of the optical drive; 2. It is not a problem that the hard disk capacity is huge to store dozens of disc image files, and it is very convenient to use as needed; iii. Hard Disk reading speed is much higher than the disk reading speed, and the CPU usage is greatly reduced. In fact, it is more convenient to create and use a CD image in a Linux system than in a Windows system. You do not have to borrow any third-party software package.

1. Create a CD image file from the CD. Put the CD in the optical drive and execute the following command.
# Cp/dev/cdrom/home/sunky/mydisk. iso or
# Dd if =/dev/cdrom of =/home/sunky/mydisk. iso
Note: You can execute any of the above commands to make the current CD in the optical drive into a CD image file/home/sunky/mydisk. iso

2. Make the files and directories into a CD image file and execute the following command.
# Mkisofs-r-J-V mydisk-o/home/sunky/mydisk. iso/home/sunky/mydir
Note: This command will make all the directories and files under the/home/sunky/mydir Directory into a CD image file/home/sunky/mydisk. iso, and the disc volume is marked as mydisk.

3. mount the disk image file)
# Mkdir/mnt/vcdrom
Note: create a directory for mount point)
# Mount-o loop-t iso9660/home/sunky/mydisk. iso/mnt/vcdrom
Note: You can use/mnt/vcdrom to access all files in the disk image file mydisk. iso.

I hope this article provides you with the knowledge you want. You have learned how to mount a CD image file in Linux.

  1. Analysis on Suse Linux under vm
  2. Preschool guidance: SUSE Linux
  3. Abbreviations in SUSE Linux
  4. Operation Manual: Install the RDAC driver in SUSE
  5. Your Chameleon: Open Suse

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.