Installing On USB Flash Drive

Home » CentOS » Installing On USB Flash Drive
CentOS 3 Comments

Is it possible to install CentOS on a USB Flash Drive. Have boot sector, / and /boot on USB drive then put /home, etc on a software raid array of the physical drives.

Thought there used to be motherboards with SDHC slots that you could use to boot off.

3 thoughts on - Installing On USB Flash Drive

  • I have a couple of machines that run entirely off USB drives with mdraid so I’d say it’s possible, barring any unusual hardware compatibility issues.

    However, note that there might be an issue with anaconda and big USB
    storage. The boot partition anaconda creates will not boot past grub. I needed to manually create the partition to start on sector 63 for grub to see it. Happens on my 16GB sticks but not on small 1GB sticks.

  • I’m doing exactly this on a trial basis with production servers. So far, it’s working great. Some tips:

    1) Flash drives are less reliable than HDDs. Software RAID1 is the way to go.
    A) Use two different makes of USB drives so that you have different failure characteristics. If either fails, replace it immediately. You can set it up so that if a thumb drive fails, you can yank it and set up its replacement without downtime. Practice this and document how you did it.
    B) When you replace the failed USB drive and set it up, you can manually remove it from the raid array and test it without causing downtime to verify that grub, etc. are set up properly on a different
    (offline) machine. Do this.
    C) Write speed is important! USB drives have an incredibly diverse range of performance. Don’t cripple yourself trying to save $5.

    2) Flash drives typically have weak write endurance. Think of write capacity like a disposable salt shaker.