Monday, June 15, 2009

Installing Fedora from a USB pendrive

I had to install Fedora 10 on a PC without floppy disk and DVD/CD-ROM. The only choice is to boot from USB-HD which is supported by the BIOS. Here is the process, step by step:

1. Install the livecd tools on a Linux PC:

# yum install livcecd-tools

2. Download the DVD iso image of the Fedora distribution that must be installed on the target system. Pay attention to chooses the correct architecture (i686 or x86_64).

3. Loop-mount the ISO image to a temporary directory:

# mkdir /mnt/tmp
# mount -o loop /mnt/tmp

4. Insert the USB drive and make sure it is not mounted. Then , run the script that creates a live (bootable) CD:

# livecd-iso-to-disk --reset-mbr /mnt/tmp/images/boot.iso /dev/sdb1

5. Mount the USB drive and copy the installer and the ISO image to the USB drive:

# mkdir /media/usbdisk/images
# cp /mnt/tmp/images/install.img /media/usbdisk/images
# cp Fedora-10-i386.iso /media/usbdisk/

6. Unmount the USB drive, and insert it on the target system. The Anaconda installer must show up shortly after power-up. Select Install Media from "Hard drive" and proceed as in a normal DVD installation.

No comments: