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!

This entry was posted in centos, linux and tagged , , . Bookmark the permalink.

2 Responses to Creating a bootable USB stick with Centos 5.4

  1. Kinan says:

    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,

  2. kerneljack says:

    Hi Kinan, you can use the CentOS LiveCDs if you wish, I have never tried them myself though. You have a choice now of either CentOS 5 or CentOS 6 LiveCDs. Have a look at the Release Notes below and pick one:

    http://wiki.centos.org/Manuals/ReleaseNotes

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>