How to create a bootable CentOS USB stick

In this article, you will learn about how to create a bootable CentOS USB stick? How to use the dd command?

In this tutorial, we will create a bootable USB of CentOS 8 from the Linux system terminal. So, you must have a USB stick minimum of 8 GB recommended. And you have a system that running Linux OS. It can be any Distro.

The command I’m running with root user if you are not a root user, then you can use sudo before every command. In this process, we are going to use the dd command to make the bootable flash drive.

If you have CentOS 8 ISO image, then it’s okay; otherwise, you can download the CentOS 8 ISO image from the CentOS website. You can get the link below.

Centos 8 download page

Step 1: Plug-in the USB drive (Flash drive, Pendrive, USB stick)

Step 2: Finding the name of the USB drive

You have to find out the name of your USB drive. So, we are going to use the lsblk command to find out the name.

lsblk

For my USB drive, it’s /dev/sdc1 but it can be different for you. As a result, you can see in the above picture.

Step 3: Checking the USB stick mount point

Check that if your USB stick has been mounted or not. If it is not mounted, follow step 4, or if it is attached, then first unmount it with below command.

umount /dev/sdc1

Step 4: Flashing the image into the USB stick

Now we are going to flash the image into the USB stick. So, We are going to use the dd command to flash the image.

dd bs=4M if=/home/sahil/CentOS-8-x86_64-1905-dvd1.iso of=/dev/sdc status=progress oflag=sync

Here, I have put the iso image in drive /home/sahil/ with the name CentOS-8-x86_64-1905-dvd1.iso but you have to change it as per your iso image location. And the location of my USB stick is /dev/sdc.

Also, you will get a progress bar while it is flashing into the USB stick. It can take time, depends on the iso image. As per result, you can see the below picture.

bootable usb stick

Conclusion

In this tutorial, you learned how to make a bootable USB stick from a Linux computer. I hope you understand, but if you have any questions, you can ask in the comment section.

Leave a Reply

Your email address will not be published.