Install Linux System Via USB

2011/01/13

RHEL6出来了,升级了硬盘到500G,在原有RHEL5的基础上通过USB安装RHEL6到新硬盘上。

首先制作USB启动的安装盘。

安装系统

通过U盘登录系统

编辑备份grub.conf

重新安装系统grub

拷贝备份的grub.conf到/boot/grub/下

 

 

insert USB and do not mount it.
assume USB: /dev/sdb

#fdisk /dev/sdb
delete all partitions
create new FAT16 partition
#mkfs.vfat /dev/sdb1
#mount /dev/sdb1 /mnt/usb
#grub-install –root-directory=/mnt/usb /dev/sdb1
#grub
#grub>root (hd1,0)    ;set boot root, hd1 is USB
#grub>setup (hd1)    ;install grub MBR info into USB
#grub>quit

mount new.iso /mnt/iso
cp /mnt/iso/initrd.img /mnt/usb/boot/
cp /mnt/iso/vmlinuz /mnt/usb/boot/

cp new.iso /mnt/usb/

reboot with USB to install system
after instllation of new system
restart PC with USB
#vi /boot/grub/grub.conf
change hd1 to hd0. hd1 is harddisk of PC and hd0 is USB.
#cp /boot/grub/grub.conf /grub.conf.bak

#cp /boot/grub/splash.xmp.gz /splash.xmp.gz.bak

reinstall grub for PC as following cmd:
#rm -f /boot/grub/*
#grub-install --root-directory=/ /dev/sda1    ;sda1 is the / partition of PC
more /boot/grub/device.map
(fd0)    /dev/fd0
(hd0)    /dev/sda
cp /grub.conf.bak /boot/grub/grub.conf
cp /splash.xmp.gz.bak /boot/grub/splash.xmp.gz


reboot PC

Game Over

 

 

 

 

 

 

 

 http://unetbootin.sourceforge.net/#other

 


 

 

 

 

 

 

 

 

 

http://fedoraproject.org/wiki/How_to_create_and_use_Live_USB

 


 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值