Rotten mud: Use of centos6.5 CD and ISO image files

Source: Internet
Author: User

This article is first published in the dark world.

I have been learning centos for a while. System Images and CDs are widely used. This article will introduce the usage of CDs and image files from a practical perspective.

Because of the inconvenience related to physical machines, we will conduct this experiment on Vmware workation. First, place the disc in the optical drive, as shown below:

650) This. width = 650; "Title =" clip_image001 "style =" border-right-width: 0px; Background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; padding-Right: 0px; border-top-width: 0px; "Border =" 0 "alt =" clip_image001 "src =" http://img1.51cto.com/attachment/201409/17/526870_1410934041nO5E.png "width =" 741 "Height =" 384 "/>

The image file I am using is the vmtools toolkit, which is less than 600 mb in size. Therefore, it should exist in the form of CDROM in centos. Log on to the system and mount the device. As follows:

Mount-O ro/dev/CDROM/Media/

650) This. width = 650; "Title =" clip_image002 "style =" border-right-width: 0px; Background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; padding-Right: 0px; border-top-width: 0px; "Border =" 0 "alt =" clip_image002 "src =" http://img1.51cto.com/attachment/201409/17/526870_14109340422pdt.png "width =" 739 "Height =" 269 "/>

Note that the-O Ro parameter in this command means to mount the/dev/CDROM device to the/Media Directory in read-only mode.

For more information about how to use the mount command, see the help documentation. As follows:

Mount-help

Man Mount

650) This. width = 650; "Title =" clip_image003 "style =" border-right-width: 0px; Background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; padding-Right: 0px; border-top-width: 0px; "Border =" 0 "alt =" clip_image003 "src =" http://img1.51cto.com/attachment/201409/17/526870_1410934042ilCi.png "width =" 675 "Height =" 473 "/>

650) This. width = 650; "Title =" clip_image004 "style =" border-right-width: 0px; Background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; padding-Right: 0px; border-top-width: 0px; "Border =" 0 "alt =" clip_image004 "src =" http://img1.51cto.com/attachment/201409/17/526870_1410934043Cf2g.png "width =" 655 "Height =" 401 "/>

Run the DF and mount commands to view the mount:

650) This. width = 650; "Title =" clip_image005 "style =" border-right-width: 0px; Background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; padding-Right: 0px; border-top-width: 0px; "Border =" 0 "alt =" clip_image005 "src =" http://img1.51cto.com/attachment/201409/17/526870_1410934043L49H.png "width =" 729 "Height =" 431 "/>

I just mounted the CD. Now, if we want to change the CD. You need to unmount the disk first, and then bring up the disc, as shown below:

Umount/Media/

Eject

650) This. width = 650; "Title =" clip_image006 "style =" border-right-width: 0px; Background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; padding-Right: 0px; border-top-width: 0px; "Border =" 0 "alt =" clip_image006 "src =" http://img1.51cto.com/attachment/201409/17/526870_1410934043B1pI.png "width =" 585 "Height =" 173 "/>

The above is a CD. If we use a DVD, mount it as follows:

Mount-O ro/dev/DVD/Media/

650) This. width = 650; "Title =" clip_image007 "style =" border-right-width: 0px; Background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; padding-Right: 0px; border-top-width: 0px; "Border =" 0 "alt =" clip_image007 "src =" http://img1.51cto.com/attachment/201409/17/526870_1410934044Xscf.png "width =" 744 "Height =" 337 "/>

650) This. width = 650; "Title =" clip_image008 "style =" border-right-width: 0px; Background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; padding-Right: 0px; border-top-width: 0px; "Border =" 0 "alt =" clip_image008 "src =" http://img1.51cto.com/attachment/201409/17/526870_1410934044aHbn.png "width =" 693 "Height =" 362 "/>

The command used to pop up a DVD disc is the same as that of the CD disc, and the eject is also used.

The above is the use of the CD in centos. To be honest, the chances of using the CD are relatively small, and the most used is the ISO image file.

Next, we will start to configure how to use image files in centos. First, we will download or upload the image files to the centos system. As follows:

650) This. width = 650; "Title =" clip_image009 "style =" border-right-width: 0px; Background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; padding-Right: 0px; border-top-width: 0px; "Border =" 0 "alt =" clip_image009 "src =" http://img1.51cto.com/attachment/201409/17/526870_1410934045l3ZM.png "width =" 720 "Height =" 204 "/>

Run the following command to mount the file:

Mount-o loop/ISO/CentOS-6.5-i386-minimal.iso/Media/

650) This. width = 650; "Title =" clip_image010 "style =" border-right-width: 0px; Background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; padding-Right: 0px; border-top-width: 0px; "Border =" 0 "alt =" clip_image010 "src =" http://img1.51cto.com/attachment/201409/17/526870_1410934045yXIf.png "width =" 704 "Height =" 358 "/>

Note the-o loop parameter in this command, which means to mount the/ISO/CentOS-6.5-i386-minimal.iso file as a virtual device to the/media directory.

If you do not want to use this image file, you can use umount to uninstall it.

This article introduces the use of Cd and ISO image files. In fact, as long as the CD and ISO image files are mounted, we can perform related operations like directories.

This article from the "muddy world" blog, please be sure to keep this source http://ilanni.blog.51cto.com/526870/1554185

Rotten mud: Use of centos6.5 CD and ISO image files

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.