Creating a bootable USB stick with Centos 5.4

OK, other people have also written about this, but the information seems to be cluttered all over the place in different forums or the CentOS wiki.

The most straightforward way I found to do this is as follows. Credit for this method goes to Neil Aggarwal, who posted it on the centos mailing list.

In case that link stops working someday, it is as simple as:

1. Using fdisk, I created two partitions on the drive:
/dev/sdc1 = 15 MB
/dev/sdc2 = The rest
I marked the first one bootable

2. I used dd to copy the diskboot.img to /dev/sdc1

3. Formatted /dev/sdc2 as ext3 and copied the
iso images there

4. When I boot from the usb drive, I selected hard
drive install and pointed the installer to
/dev/scd2

It worked perfectly!

Thanks, Neil!

2 thoughts on “Creating a bootable USB stick with Centos 5.4

  1. Hi,
    This is nice, but I’m in a situation where I need working (live) bootable USB drive. Something to start up the computer with, and use the CENTOS right away.
    Basically, because I already have another OS installed on the hard disk, and there is no space available for CENTOS. And all what I need is booting the system to update the firmware!!
    DO you suggest any way/tools?
    Thanks,

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>