如何创建一个红帽7.0安装U盘(适用于Centos 7,Oracle Linux 7)

我们在安装最新的红帽7.0和Centos 7.0以及Oracle Linux 7.0的时候,一般是使用光盘来安装。当服务器没有光驱的时候,我们往往需要通过dd直写U盘来实现,比较不灵活。为了扩充我之前的U盘系统 如何制作一个通用的多系统安装U盘 ,特别添加了红帽系列系统的最新版 7.0。同样也适用于Centos 7.0和Oracle Linux 7.0。下面来看一下制作步骤。

工具准备:

SYSLINUX   #最新版是6.03

添加主配置文件

请参考 如何制作一个通用的多系统安装U盘五(制作主配置文件)

以及   如何制作一个通用的多系统安装U盘六(Linux相关配置)

在/boot/config/linux.cfg 中添加

label redhat70x64
menu label Install Redhat Enterprise Server 7.0 64Bit
kernel /boot/syslinux/vesamenu.c32
append /boot/linux/rh7064/isolinux.cfg /boot/config/mainmenu.cfg

拷贝文件:

拷贝ISO中的isolinux目录和images目录内容到U盘相应目录。我这里是/boot/linux/rh7064。

修改/boot/linux/rh7064/isolinux.cfg文件

default linux
timeout 600

display /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 clear
menu background /boot/linux/rh7064/splash.png
menu title Red Hat Enterprise Linux 7.0
menu vshift 8
menu rows 18
menu margin 8
#menu hidden
menu helpmsgrow 15
menu tabmsgrow 13

# Border Area
menu color border * #00000000 #00000000 none

# Selected item
menu color sel 0 #ffffffff #00000000 none

# Title bar
menu color title 0 #ff7ba3d0 #00000000 none

# Press [Tab] message
menu color tabmsg 0 #ff3a6496 #00000000 none

# Unselected menu item
menu color unsel 0 #84b8ffff #00000000 none

# Selected hotkey
menu color hotsel 0 #84b8ffff #00000000 none

# Unselected hotkey
menu color hotkey 0 #ffffffff #00000000 none

# Help text
menu color help 0 #ffffffff #00000000 none

# A scrollbar of some type? Not sure.
menu color scrollbar 0 #ffffffff #ff355594 none

# Timeout msg
menu color timeout 0 #ffffffff #00000000 none
menu color timeout_msg 0 #ffffffff #00000000 none

# Command prompt text
menu color cmdmark 0 #84b8ffff #00000000 none
menu 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 line
menu separator # insert an empty line

label 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 submenu
menu begin ^Troubleshooting
  menu title Troubleshooting

label vesa
  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 quiet

label 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 quiet

label 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/memtest

menu separator # insert an empty line

label local
  menu label Boot from ^local drive
  localboot 0xffff

menu separator # insert an empty line
menu separator # insert an empty line

label returntomain
  menu label Return to ^main menu
  menu exit

menu end

其实,红帽7的ISO和之前的6.x相似,只是经过了一个特殊的处理。添加了

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

标签。inst.stage2是指定 install.img 的路径的。如果没有指定的话,Anaconda会从本地、inst.repo或repo或method参数给出的路径来查找。而且新版的7.0已经不推荐使用method参数了,代替method的是repo或inst.repo参数。所以,我们只要用repo或inst.repo来取代inst.stage2就可以了。最后,预祝大家都能够成功。

时间: 2024-08-11 07:44:30

如何创建一个红帽7.0安装U盘(适用于Centos 7,Oracle Linux 7)的相关文章

eclipse 在Servers窗口创建一个Tomcat 6.0 Server失败

web项目部署到tomcat除了用eclipse插件,eclipse也有一个Servers窗口来部署. 问题背景:Servers窗口,我之前创建过一个Tomcat v6.0 Server,后来我把自动生成的工程Servers删了,又把eclipse中tomcat路径配置改了一下(因为我用配置文件server.xml部署了). 问题出现了,现在我向重新建一个tomcat 6.0 server,会发现根本建立不了,如下图. 但是我发现其他tomct 7.0 server,5.0 server总之我之

Delphi使用普通类对象创建接受window消息(使用Classes.AllocateHWnd为对象创建一个尺寸为0的窗口,从而有了Handle)good

在delphi中,有时候我们希望对象可以接收windows消息,怎么办呢?因为要接收windows消息起码要有windows Handle,难道要建立的一个可见窗口?那样似乎太差强人意了.delphi提供了一个函数Classes.AllocateHWnd.分析AllocateHWND发现delphi CreateWindowEx一个尺寸为0的窗口,窗口是生成了,Handle也有了,但窗口的消息要处理吧,否则怎么说让对象接收Windows消息呢,但我们都知道类函数和Windows消息处理函数是不一

ASP.NET Core 1.0 安装并发布到Centos 7.2 使用jexus 5.8.2

安装运行环境 sudoyuminstall libunwind libicu 下载.net core https://www.microsoft.com/net/download 下载完后上传文件 安装步骤https://www.microsoft.com/net/core#centos 安装如下 sudo mkdir -p /opt/dotnet && sudo tar zxf dotnet-centos-x64.1.0.0.tar.gz -C /opt/dotnet sudo ln -

Centos7下Mysql8.0安装手册 以及 一些坑点总结

MySQL 8 正式版 8.0.11 已发布,官方表示 MySQL 8 要比 MySQL 5.7 快 2 倍,还带来了大量的改进和更快的性能! 一.  Mysql8.0版本相比之前版本的一些特性 1) 默认编码utf8默认编码使用utf8mb4, utf8mb4编码是utf8编码的超集,兼容utf8,并且能存储4字节的表情字符历史,MySQL数据库的 "utf8"并不是真正概念里的 UTF-8.MySQL中的"utf8"编码只支持最大3字节每字符.真正的大家正在使用

ROS学习随笔二(创建一个简单的ROS package)

本人在学习过程中,参见了如下几个博客及网站: ROS操作官网:http://wiki.ros.org/ROS/Tutorials 博客:http://blog.sina.com.cn/s/articlelist_1712413141_7_1.html 以及:http://blog.csdn.net/column/details/ros-explore.html 在创建package之前,需要先创建一个工作空间,本人安装的ROS版本是Fuerte. 1.Creating a ROS WorkSpa

最新版Oracle Linux 6.8系统的安装

资源准备 访问Oracle官网http://www.oracle.com下载最新版Oracle Linux 6版本平台的系统6.8. 下载-服务器和存储-Linux与Oracle VM 登录一个已有的Oracle账号或免费注册一个新账号登录. 在搜索框键入关键字"oracle linux" 在出现的备选列表里拉到最下面,可看到所有Oracle Linux的发行版本,点击本次需要下载的Oracle Linux 6.8版本. 点击选择平台-选64位-选择 完成选定后继续 确定下载的版本后继

Oracle linux 6.3 安装11g R2 RAC on vbox

1 安装系统 Virtual box 4.3 Oracle linux 6.3 Oracle 11g r2 Make sure "Adapter 1" is enabled, set to "Bridged Adapter", then click on the "Adapter 2" tab. Make sure "Adapter 2" is enabled, set to "Bridged Adapter&quo

hostname 的更改 Oracle Linux 6.5 && RHEL 7.0

Example:将bogon 改为 adelababy Oracle Linux 6.5  [[email protected] ~]# hostname bogon [[email protected] ~]# hostname adelababy [[email protected] ~]# hostname adelababy [[email protected] ~]# vim /etc/sysconfig/network NETWORKING=yes HOSTNAME=adelabab

菜鸟自学红帽存储——RHSS3.0安装及学习环境搭建

菜鸟在这里献丑了,我是0基础学习的linux,现在已经半年了,现在正在学红帽的存储管理,学习资料就是官方文档了,这个在官网可以下到,再加上论坛的一些资料,然后我就开始在这里卖萌了. 红帽的存储还是有一定的优势的,可扩展性好,采用scale-out模式,容量不够了直接加brick就行了,管理也很方便,入手也很快,所以我就开始自学了,当然我是一边自学一边贴博文,难免会有错误,还请各位大神路过给点意见. 红帽存储最新的是Red Hat Storage Server 3,系统的版本最新的已经是RHEL6