How to create a Red Hat 7.0 installation USB drive (for CentOS 7,oracle Linux 7)

Source: Internet
Author: User

When we install the latest Red Hat 7.0 and CentOS 7.0 and Oracle Linux 7.0, we typically use a CD-ROM to install it. When the server does not have an optical drive, we often need to use the DD Direct write USB drive to achieve, less flexible. In order to expand my previous USB drive system how to make a universal multi-system installation USB flash drive, specifically added the Red Hat series system of the latest version of 7.0. The same applies to CentOS 7.0 and Oracle Linux 7.0. Here's a look at the production steps.

Tool Preparation:

SYSLINUX #最新版是6.03

To add a master configuration file :

Please refer to how to make a universal multi-system installation U disk five (make master configuration file)

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

Add in/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 Isolinux directory and the images directory contents of the ISO to the corresponding directory of the USB stick. I'm a/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    #改为通过repo指定iso路径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  #改为通过repo指定iso路径menu  separator # insert an empty line# utilities  submenumenu begin ^Troubleshooting  menu title Troubleshootinglabel  Vesa  menu indent count 5  menu label install red hat  enterprise linux 7.0 in ^basic graphics mode  text helptry  this option out if you ' re having trouble installingred 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 helpif the  system will not boot, this lets you access filesand 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 helpif your system is  Having issues, a problem with yoursystem ' s memory may be the  cause. use this utility tosee if the memory is working  correctly.  endtext&Nbsp; 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

In fact, the Red Hat 7 ISO and the previous 6.x similar, just after a special treatment. Added a

Inst.stage2=hd:label=rhel-7.0\x20server.x86_64

Label. Inst.stage2 is the path of the specified install.img. If not specified, the Anaconda will be looked up from the path given by the local, Inst.repo, or repo or method parameters. And the new version of 7.0 has not recommended the use of method parameters, instead of method is the repo or Inst.repo parameters. So we just have to replace inst.stage2 with repo or Inst.repo. Finally, I wish you all success.

This article is from the "dream come true" blog, please be sure to keep this source http://zhile.blog.51cto.com/9599674/1580049

How to create a Red Hat 7.0 installation USB drive (for CentOS 7,oracle Linux 7)

Related Article

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.