U盘安装redhat系列系统
2012-11-02 14:53
302 查看
准备:8G U盘,centos6.2mini系统,centos6.3mini系统,
下载软件:
http://download.gna.org/grub4dos/ http://download.gna.org/grubutil/
下载
grub4dos-0.4.6a-2012-10-02.7z
grubinst-1.1-bin-w32-2008-01-01.zip
解压grub4dos-0.4.6a-2012-10-02.7z 把里面内容都copy到U盘中。
把grubinst-1.1-bin-w32-2008-01-01.zip 解压U盘中为了好看重命名为grubinst
进入grubinst目录,执行grubinst_gui.exe。
如上选择安装,后点退出。
设置menu.lst文件,样例可以在U盘目录下sample文件中拷贝。我设置如下:
find --set-root --ignore-floppies /bootmgr
chainloader /bootmgr
savedefault --wait=2
title find and load CMLDR, the Recovery Console of Windows NT/2K/XP
fallback 3
find --set-root --ignore-floppies /cmldr
chainloader /cmldr
#####################################################################
# write string "cmdcons" to memory 0000:7C03 in 2 steps:
#####################################################################
# step 1. Write 4 chars "cmdc" at 0000:7C03
write 0x7C03 0x63646D63
# step 2. Write 3 chars "ons" and an ending null at 0000:7C07
write 0x7C07 0x00736E6F
savedefault --wait=2
title install Windows
find --set-root /win7/sources/setup.exe
chainloader /win7/bootmgr
title install Linux CentOS62
root (hd0,0)
kernel /CentOS62/vmlinuz repo=hd:/dev/sdb1:/CentOS62
initrd /CentOS62/initrd.img
title install Linux CentOS63
root (hd0,0)
kernel /CentOS63/vmlinuz repo=hd:/dev/sdb1:/CentOS63
initrd /CentOS63/initrd.img
title commandline
commandline
title back to dos
quit
title reboot
reboot
在U盘目录建立centos62,centos63和win7目录,把对应的iso镜像copy进去。
这样一个grub4的启动盘就做好了。
这里主要是menu.lst的设置,centos需要把initrd.img ,images和vmlinuz 先从镜像中解压出到对应目录。
win7是需要把整个镜像都解压到对应目录下的。
最后整个U盘的内容如下:
装系统时U盘启动,选择对应系统install。本文出自 “面对自己” 博客,请务必保留此出处http://angus717.blog.51cto.com/1593644/1048238
下载软件:
http://download.gna.org/grub4dos/ http://download.gna.org/grubutil/
下载
grub4dos-0.4.6a-2012-10-02.7z
grubinst-1.1-bin-w32-2008-01-01.zip
解压grub4dos-0.4.6a-2012-10-02.7z 把里面内容都copy到U盘中。
把grubinst-1.1-bin-w32-2008-01-01.zip 解压U盘中为了好看重命名为grubinst
进入grubinst目录,执行grubinst_gui.exe。
如上选择安装,后点退出。
设置menu.lst文件,样例可以在U盘目录下sample文件中拷贝。我设置如下:
find --set-root --ignore-floppies /bootmgr
chainloader /bootmgr
savedefault --wait=2
title find and load CMLDR, the Recovery Console of Windows NT/2K/XP
fallback 3
find --set-root --ignore-floppies /cmldr
chainloader /cmldr
#####################################################################
# write string "cmdcons" to memory 0000:7C03 in 2 steps:
#####################################################################
# step 1. Write 4 chars "cmdc" at 0000:7C03
write 0x7C03 0x63646D63
# step 2. Write 3 chars "ons" and an ending null at 0000:7C07
write 0x7C07 0x00736E6F
savedefault --wait=2
title install Windows
find --set-root /win7/sources/setup.exe
chainloader /win7/bootmgr
title install Linux CentOS62
root (hd0,0)
kernel /CentOS62/vmlinuz repo=hd:/dev/sdb1:/CentOS62
initrd /CentOS62/initrd.img
title install Linux CentOS63
root (hd0,0)
kernel /CentOS63/vmlinuz repo=hd:/dev/sdb1:/CentOS63
initrd /CentOS63/initrd.img
title commandline
commandline
title back to dos
quit
title reboot
reboot
在U盘目录建立centos62,centos63和win7目录,把对应的iso镜像copy进去。
这样一个grub4的启动盘就做好了。
这里主要是menu.lst的设置,centos需要把initrd.img ,images和vmlinuz 先从镜像中解压出到对应目录。
win7是需要把整个镜像都解压到对应目录下的。
最后整个U盘的内容如下:
装系统时U盘启动,选择对应系统install。本文出自 “面对自己” 博客,请务必保留此出处http://angus717.blog.51cto.com/1593644/1048238
相关文章推荐
- IBM X系列笔记本通过U盘安装系统方法全攻略
- 【电脑维修系列】虚拟机VMware10.0 从U盘启动安装系统 方法
- Redhat系列linux系统安装,并使用xshell工具进行远程连接
- U盘装系统系列一—-安装老毛桃U盘启动制作工具
- U盘装系统系列三—-ghost系统安装教程
- XenServer 6.5实战系列之十三:图形界面安装Linux Redhat系统
- XenServer 6.5实战系列之十三:图形界面安装Linux Redhat系统
- 64位Win7分割50G空间U盘安装ubuntu双系统
- 安装Win7系统后只能通过U盘从硬盘启动才能进入系统的故障原因及解决方法
- U盘安装CentOS 7解决方案 (fat系统文件4g限制)
- 告别光盘U盘安装系统,pxe祝你马到成功
- 如何用U盘为苹果电脑安装windows系统
- U盘安装MacBook系统
- 怎样把Ubuntu Linux系统安装到u盘
- RedHat Enterprise Linux 5.5 系统下使用rpm安装gcc(32位)
- 从此甩掉光驱 U盘安装系统最详攻略
- 新装centos步骤,u盘安装大于4G系统解决方案
- CentOs6 grub安装系统时候被安装到U盘里的修复方法
- U盘PE系统下安装WIN2003和WINXP的方法(非GHOST版)
- 用U盘安装Linux系统的简单方法