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


Install Linux System Via USB_第1张图片

http://fedoraproject.org/wiki/How_to_create_and_use_Live_USB


Install Linux System Via USB_第2张图片

你可能感兴趣的:(linux,.net,F#)