USB install RHEL6.2

1)USB install RHEL6.2
  referencing http://www.syslinux.org/wiki/index.php/SYSLINUX#Creating_a_Bootable_Disk
1@@@@install syslinux in RHEL6.2
@@@download syslinux, choose the newest version.
@@@Note: if you installation failed, maybe you should install Development Tools
@@@Development Library and so on.
[root@station78 syslinux]# ls
syslinux-4.04.tar.bz2
[root@station78 syslinux]# tar -xf syslinux-4.04.tar.bz2
[root@station78 syslinux]# ls
syslinux-4.04  syslinux-4.04.tar.bz2
[root@station78 syslinux]# cd syslinux-4.04
[root@station78 syslinux-4.04]# make && make install

@@@Note: USB is FAT32 filesystem.
@@@install boot loader to /dev/sdb which is USB devices 8G.
[root@station78 Desktop]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg-root   241G   78G  152G  34% /
tmpfs                 3.8G  100K  3.8G   1% /dev/shm
/dev/sda3             194M   35M  149M  19% /boot
/dev/mapper/vg-tmp    7.9G  171M  7.4G   3% /tmp
/dev/mapper/vg-u01     24G  3.2G   20G  14% /u01
/dev/sdb              7.5G  202M  7.3G   3% /media/USB ONE

2@@@@install and config for syslinux.
@@@create boot/syslinux in the /dev/sdb which is USB.
[root@station78 disk]# pwd
/media/disk
[root@station78 disk]# mkdir -p ./boot/syslinux

@@@
@@@install mbr to USB, it would generate ldlinux.sys
[root@station78 syslinux]# syslinux --mbr --active --directory ./boot/syslinux --install /dev/sdb
[root@station78 syslinux]# pwd
/media/USB ONE/boot/syslinux
[root@station78 syslinux]# ls ldlinux.sys
ldlinux.sys

@@@
@@@copy the linux kernel to root directory of USB(boot/syslinux)
[root@station78 syslinux]# pwd
/media/USB ONE/boot/syslinux
[root@station78 syslinux]# ls
images  initrd.img  ldlinux.sys  vmlinuz

@@@config syslinux.cfg
@@@Note: boot/syslinux is the root directory of your little Linux in USB.
[root@station78 syslinux]# pwd
/media/USB ONE/boot/syslinux
[root@station78 syslinux]# ls
ldlinux.sys  syslinux.cfg vmlinuz initrd.img

@@@
@@@add a message to boot/syslinux/ (root directory)
[root@station78 syslinux]# cat boot.msg
Here is boot.msg
#
#
#  -.-
#
[root@station78 syslinux]# pwd
/media/syslinux/boot/syslinux
[root@station78 syslinux]# ls
boot.msg  initrd.img  ldlinux.sys  syslinux.cfg  vmlinuz

@@@
[root@station78 syslinux]# cat syslinux.cfg
DEFAULT rescue
prompt 1
timeout 3600
dispaly boot.msg
LABEL linux
  SAY option "linux" to installation mode
  KERNEL vmlinuz
  APPEND linux load_ramdisk=1 initrd=initrd.img
LABEL rescue
  SAY option "rescue" to rescue mode
  KERNEL vmlinuz
  APPEND linux load_ramdisk=1 initrd=initrd.img rescue

3@@@@practice
After you finish step 1 and 2, you just boot kernel to memory.
If you want to implement install and rescue, you must have a ext4 filesystem partition
to offer the "/images/install.img" and "RHEL6.2_x86_64.iso".

choose the "Hard Devices"




你可能感兴趣的:(Install,RHEL,usb,syslinux)