Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1654417
  • 博文数量: 82
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 0
  • 用 户 组: 普通用户
  • 注册时间: 2017-12-09 12:58
文章分类

全部博文(82)

文章存档

2011年(7)

2010年(3)

2009年(11)

2008年(4)

2007年(57)

我的朋友

分类: LINUX

2009-10-13 21:43:18

今天财务耨大姐要我帮她重新安装linux系统,机器没有光驱,没有USB啥都没有,只能上网,上火啊!!想想办法吧!!我去下载了redhat FC7.iso。
 
简单思考了一下想到个办法
1 建立一个分区  (例如:我的是/dev/hda2, 并且挂载到/Install/)
2 把现在RHEL中的/boot/中的vmlinz和initrd 拷贝到/Install/
3 把我们的*.iso 安装文件拷贝大/Install/下
4 设置grub.conf
vi /boot/grub/grub.conf
 
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/hda5
#          initrd /initrd-version.img
#boot=/dev/hda
default=1 (原来是0 改变成1)
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-8.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-8.el5 ro root=LABEL=/
        initrd /initrd-2.6.18-8.el5.img
 
title Red Hat FC install 
        root (hd0,1)
        kernel (hd0,1)/vmlinuz (这里的(hd0,1)是/dev/hda2 就是/Install/)
        initrd (hd0,1)/initrd.img  (这里的(hd0,1)是/dev/hda2 就是/Install/)
为什么要这么做,不言而喻,因为linux内核识别分区是以0代表第一位。
 
OK !!!
 
reboot
 
一路回车,果然成功了!! 熟悉的welcome to RedHat !!之后安装方法一样,只是在选择安装方式的时候要选择Hard 硬盘安装。最后一切正常,
 

 
 
 
阅读(755) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~