How do I create a bootable USB pen drive for installation?
Posted On Tuesday, June 16, 2009 at at 2:39 PM by OwnerThe server I need to install Red Hat Enterprise Linux on does not have a floppy drive or CD-rom drive, but it has a USB port. What are the steps to configure a USB pen drive to boot and install Red Hat Enterprise Linux?
To configure a USB flash/pen drive perform the following steps:
Format the USB flash drive as one FAT partition.
#mkdosfs /dev/Copy the contents of /RedHat/isolinux/ from the first installation CD to the USB flash drive. NOTE: isolinux.bin, boot.cat and TRANS.TBL can be removed or deleted.
Rename isolinux.cfg to syslinux.cfg.
Copy /RedHat/images/pxeboot/initrd.img from the first installation CD to the USB flash drive.
OPTIONAL: To configure any boot settings, edit the syslinux.cfg on the USB flash drive. For example to configure the installation to use a kickstart file shared over NFS,specify the following:
#linux ks=nfs:://ks.cfgMake the USB flash drive bootable. Be sure to UNMOUNT the USB flash device.
#umount /dev/
#syslinux /dev/Install GRUB on the USB flash drive.
#mount /dev/ /path/to/local/USB/mount
#grub-install --root-directory=/path/to/local/USB/mount /dev/Verify that the USB flash drive has a /boot/grub directory. If it does not, create the directory manually.
#cd /path/to/USB/local/mount
#mkdir -p /boot/grubCreate the grub.conf file. Below is a sample grub.conf:
default=0
timeout=5
root (hd1,0)
title
kernel /vmlinuz
initrd /initrd.imgCopy or confirm the created grub.conf file is on the /boot/grub/ directory of the USB flash drive.
This makes the USB drive bootable.
Article from http://kbase.redhat.com/faq/docs/DOC-10553