CentOS 10: How to create boot flash drive

CentOS

Today I changed some hard disks in one of my home servers, and I decided to reinstall CentOS to the latest version to clean-up the system a bit. For this, I created a boot flash drive and this post exactly about this.

Previously, I used some GUI tools, such as Rufus or Unetbootin, but now CentOS does not recommend their use:

Instead, we need to use the built-in dd Linux utility.

The process is straightforward:

Go to the download page and download the ISO DVD to your PC.

After that, find your USB stick mount point, for example, with lsblk

Here you can see that my USB is /dev/sdf

You can also check the same via any partition tool, eg KDE Partition Manager


After that, you just need to run the next command, which will copy everything from the ISO image to the flash drive. Pay attention to specifying your device mount point (in my case, it’s /dev/sdf). Keep in mind that this operation will override all the data at the destination, so it makes sense to double-check it.

The process will take time. The copying speed depends on your USB stick and USB port. For example, I did this on a USB 2.0 port, so it took time.

At the end, you will see some statistical information from dd

Now, you can mount your USB stick and check the contents

The partition tool will show the next

Pay attention to the “boot” flag being set.

That’s all, now you’re ready to use the boot stick! Just insert it into your PC, reboot it, select the boot source via the BIOS, and proceed with OS installation.

You May Also Like

About the Author: vo