create a bootable USB pen drive for linux installation

Share your expert knowledge and show off your skills.
Post Reply
kashif
Naib Subedar
Posts: 305
Joined: Wed Oct 15, 2003 2:44 am
Location: Okara

create a bootable USB pen drive for linux installation

Post by kashif »

To configure a USB flash/pen drive perform the following steps:

1. Format the USB flash drive as one FAT partition.

#mkdosfs /dev/

2. 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.
3. Rename isolinux.cfg to syslinux.cfg.
4. Copy /RedHat/images/pxeboot/initrd.img from the first installation CD to the USB flash drive.
5. 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.cfg

6. Make the USB flash drive bootable. Be sure to UNMOUNT the USB flash device.

#umount /dev/
#syslinux /dev/

7. Install GRUB on the USB flash drive.

#mount /dev/ /path/to/local/USB/mount
#grub-install --root-directory=/path/to/local/USB/mount /dev/

8. 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/grub

9. Create the grub.conf file. Below is a sample grub.conf:

default=0
timeout=5
root (hd1,0)
title
kernel /vmlinuz
initrd /initrd.img

10. Copy or confirm the created grub.conf file is on the /boot/grub/ directory of the USB flash drive.


visit the link

http://kbase.redhat.com/faq/FAQ_42_11806.shtm
**********************************************

As-Salaatu was-Salaamu Alaika Ya Sayyidi Ya Rasool ALLAH

**********************************************
Post Reply