I decided to get a dedicated server for my project and passion of the moment (more on that later, maybe). As a result, I wanted to set up a CentOS installation so that I could work out all the bugs before uploading. Unfortunately, it turns out that getting CentOS working on a USB drive is not as easy as, say, Ubuntu or Slax, and it took some googling before I got it to work.
mkinitrd --with-usb --preload=ehci-hcd --preload=usb-storage --preload=scsi_mod --preload=sd_mod ./usbinitrd-X.X.XX-X.XXXX_LLL X.X.XX-X.XXXX_LLL
.
The right X.X.XX-X.XXXX_LLL codes can be seen under /lib/modules,
just choose the appropriate one.[2]Voila! CentOS goodness on an external USB drive.
[1]If your drive isn’t automatically mounted (or the wrong one is
mounted), do a mkdir /mnt/usb; mount /dev/sda1 /mnt/usb
, substituting
the appropriate device for /dev/sda1. [2]See this forum thread for more
details
[3]Simon’s guide to USB booting is the canonical guide for
RH
Comments are moderated whenever I remember that I have a blog.