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 create a Red Hat 7.0 installation USB disk (for Centos 7 oracle Linux 7)

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

When we install the latest Red Hat 7.0 and Centos 7.0 and Oracle Linux 7.0, we generally use CDs to install them. When the server does not have an optical drive, we often need to write directly to the USB flash drive through dd, which is not very flexible. To augment the previous USB flash drive (see: How to make a universal multi-system USB flash drive), I specifically added the latest version of Red Hat series 7.0, which also works with Centos 7.0 and Oracle Linux 7.0. Let's take a look at the production steps below.

Tool preparation:

SYSLINUX #latest version is 6.03

Add Master Profile:

Please refer to how to make a universal multi-system installation USB flash drive V (making the main configuration file)

And how to make a universal multi-system installation USB flash drive six (Linux-related configuration)

Add to/boot/config/linux.cfg

label redhat70x64menu label Install Redhat Enterprise Server 7.0 64Bitkernel /boot/syslinux/vesamenu.c32append /boot/linux/rh7064/isolinux.cfg /boot/config/mainmenu.cfg

Copy files:

Copy the contents of isolinux directory and p_w_picpaths directory in ISO to the corresponding directory of USB flash drive. I have/boot/linux/rh7064 here.

Modify the/boot/linux/rh7064/isolinux.cfg file

default linuxtimeout 600display /boot/linux/rh7064/boot.msg# Clear the screen when exiting the menu, instead of leaving the menu displayed.# For vesamenu, this means the graphical background is still displayed without# the menu itself for as long as the screen remains in graphics mode.menu clearmenu background /boot/linux/rh7064/splash.pngmenu title Red Hat Enterprise Linux 7.0menu vshift 8menu rows 18menu margin 8#menu hiddenmenu helpmsgrow 15menu tabmsgrow 13# Border Areamenu color border * #00000000 #00000000 none# Selected itemmenu color sel 0 #ffffffff #00000000 none# Title barmenu color title 0 #ff7ba3d0 #00000000 none# Press [Tab] messagemenu color tabmsg 0 #ff3a6496 #00000000 none# Unselected menu itemmenu color unsel 0 #84b8ffff #00000000 none# Selected hotkeymenu color hotsel 0 #84b8ffff #00000000 none# Unselected hotkeymenu color hotkey 0 #ffffffff #00000000 none# Help textmenu color help 0 #ffffffff #00000000 none# A scrollbar of some type? Not sure.menu color scrollbar 0 #ffffffff #ff355594 none# Timeout msgmenu color timeout 0 #ffffffff #00000000 nonemenu color timeout_msg 0 #ffffffff #00000000 none# Command prompt textmenu color cmdmark 0 #84b8ffff #00000000 nonemenu color cmdline 0 #ffffffff #00000000 none# Do not display the actual menu unless the user presses a key. All that is displayed is a timeout message.menu tabmsg Press Tab for full configuration options on menu items.menu separator # insert an empty linemenu separator # insert an empty linelabel linux menu label ^Install Red Hat Enterprise Linux 7.0 kernel /boot/linux/rh7064/vmlinuz append initrd=/boot/linux/rh7064/initrd.img repo=hd:LABEL=OEMDRV:/boot/linux/rh7064 quiet #changed to iso path specified via repo label check menu label Test this ^media & install Red Hat Enterprise Linux 7.0# menu default kernel /boot/linux/rh7064/vmlinuz append initrd=/boot/linux/rh7064/initrd.img repo=hd:LABEL=OEMDRV:/boot/linux/rh7064 rd.live.check quiet #changed to iso path specified via repo menu separator # insert an empty line# utilities submenu begin ^Troubleshooting menu title Troubleshooting vesa label menu indent count 5 menu label Install Red Hat Enterprise Linux 7.0 in ^basic graphics mode text help Try this option out if you're having trouble installing Red Hat Enterprise Linux 7.0. endtext kernel /boot/linux/rh7064/vmlinuz append initrd=/boot/linux/rh7064/initrd.img repo=hd:LABEL=OEMDRV:/boot/linux/rh7064 xdriver=vesa nomodeset quietlabel rescue menu indent count 5 menu label ^Rescue a Red Hat Enterprise Linux system text help If the system will not boot, this lets you access files and edit config files to try to get it booting again. endtext kernel /boot/linux/rh7064/vmlinuz append initrd=/boot/linux/rh7064/initrd.img repo=hd:LABEL=OEMDRV:/boot/linux/rh7064 rescue quietlabel memtest menu label Run a ^memory test text help If your system is having issues, a problem with your system's memory may be the cause. Use this utility to see if the memory is working correctly. endtext kernel /boot/linux/rh7064/memtestmenu separator # insert an empty linelabel local menu label Boot from ^local drive localboot 0xffffmenu separator # insert an empty linemenu separator # insert an empty linelabel returntomain menu label Return to ^main menu menu exitmenu end

Note: Please refer to the previous series of articles for the specific meaning of parameters.

In fact, Red Hat 7's ISO is similar to the previous 6.x, but with a special treatment. added

inst.stage2=hd:LABEL=RHEL-7.0\x20Server.x86_64

Labels. inst.stage2 is the path that specifies install.img. If not specified, Anaconda looks up the path given by the local, inst.repo, or repo or method parameters. In addition, the new version 7.0 no longer recommends using method parameters, instead of repo or inst.repo parameters. So, we just replace inst.stage2 with repo or inst.repo. Finally, I wish you all success.

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

Database

Wechat

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

12
Report