Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of mounting CD in Linux system

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "how to mount a CD under the Linux system". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Generally speaking, Linux systems run on the command line interface, so how to access the contents of the CD under the command line interface? The following editor will teach you how to mount the CD to the Linux file system and access it.

1. Find the full pathname of the CD. On the command line, enter: ls-l / dev | grep cdrom.

2. You can see that the name of the CD is: cdrom1. Then execute on the command line: mount / dev/cdrom1 / mnt/. This will mount the CD to the / mnt directory. Then we can access the CD by visiting / mnt.

For example, we need to copy a rpm package from the CD. First type: cd / mnt on the command line. Then enter ll. It lists all the contents of the CD.

4. Enter the Packages directory and type: cd Packages on the command line. Then enter: ls-l | grep mysql. Find the rpm package we want to copy out.

5. Enter: cp mysql-5.1.66-2.el6_3.x86_64.rpm / opt/soft on the command line. Copy the package mysql-5.1.66-2.el6_3.x86_64.rpm to the / opt/soft directory. Enter: cd / opt/soft on the command line. And then ll. You can see that the file has been copied.

6. After using it, remember to uninstall the CD. Enter: umount / mnt on the command line. Then enter the / mnt directory and you will not see the contents of the disc, indicating that it has been successfully uninstalled.

This is the end of the content of "how to mount a CD under the Linux system". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report