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

How to mount the ISO image of U disk and CD in RHEL system

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

Share

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

How to mount the ISO image of U disk and CD in RHEL (Redhat) system? in order to solve this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.

Mount the USB disk

1. Switch to root user, basic login user permissions are insufficient (critical)

The code is as follows:

Su root

Enter the correct password

two。 Enter the / sbin/ directory and execute

The code is as follows:

. / fdisk-l

Command, view all the current disk information, and list the information of the local hard disk and USB disk respectively

For example, my USB flash drive ID information is / dev/sdc1

The fdisk command on my machine can not be executed anywhere. You must change to the / sbin/ directory and execute it with the root user to get the correct effect.

3. Set up an attached folder

The code is as follows:

Mkdir / mnt/usb

/ mnt/ folder usually places external access disks, such as CD-ROM drive, floppy drive, etc.

4. Perform hooking

The code is as follows:

Mount / dev/sdc1 / mnt/usb

Note that at present, RedHat does not go through external auxiliary tools, and can only be attached to the FAT32 format USB disk. Although NTFS can be seen in the fdisk command, it cannot be connected successfully, so it needs to be completed with the help of ntf-3g and other auxiliary tools.

After the connection is successful, you can cut to the / mnt/usb directory to view the contents of the USB disk file.

Mount the ISO image file

The first step

Confirm the path of the ISO image file

The code is as follows:

[root@wanghualang ~] # cd / ISO

[root@wanghualang ISO] # ls

Linux7.iso

Step two

Create a new path to mount the ISO image and execute the mount command

The code is as follows:

[root@wanghualang ~] # mkdir / Linux-CD

[root@wanghualang] # mount-o loop-t iso9660 / ISO/linux7.iso / Linux-CD

Mount: / dev/loop0

Write protection, which will be mounted as read-only

Step three

Go to the directory where you just used to mount ISO to see if the mount is successful.

The code is as follows:

[root@wanghualang Linux-CD] # cd / Linux-CD

[root@wanghualang Linux-CD] # ls-l

Total dosage 812

Dr-xr-xr-x. 4 root root 2048 May 7 2014 addons

Dr-xr-xr-x. 3 root root 2048 May 7 2014 EFI

-Rafael, Rafe, Rafael. 1 root root 8266 April 4 2014 EULA

-Rafael, Rafe, Rafael. 1 root root 18092 March 6 2012 GPL

Dr-xr-xr-x. 3 root root 2048 May 7 2014 images

Dr-xr-xr-x. 2 root root 2048 May 7 2014 isolinux

Dr-xr-xr-x. 2 root root 2048 May 7 2014 LiveOS

-Rafael, Rafe, Rafael. 1 root root 108 May 7 2014 media.repo

Dr-xr-xr-x. 2 root root 774144 May 7 2014 Packages

Dr-xr-xr-x. 24 root root 6144 May 7 2014 release-notes

Dr-xr-xr-x. 2 root root 4096 May 7 2014 repodata

-Rafael, Rafe, Rafael. 1 root root 3375 April 1 2014 RPM-GPG-KEY-redhat-beta

-Rafael, Rafe, Rafael. 1 root root 3211 April 1 2014 RPM-GPG-KEY-redhat-release

-Rafael, Rafe, Rafael. 1 root root 1568 May 7 2014 TRANS.TBL

Commonly used software packages are stored in the Packages folder, and after installation, it is easy to install the required software or dependent packages.

The answer to the question about how to mount the ISO image of U disk and CD in the RHEL (Redhat) system is shared here. I hope the above content can be of some help to everyone. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.

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