How to create a bootable USB drive from CentOS using dd command

Download the .iso image that you want to use. In this case I use the ubuntu image:

ubuntu-20.04.2.0-desktop-amd64.iso

Put your empty usb drive and run the lsscsi command to check his path(in this example /dev/sdb) :

# lsscsi
[0:0:0:0]    disk    ATA      SanDisk X400 2.5 0012  /dev/sda 
[4:0:0:0]    disk    Kingston DataTraveler 2.0 1.00  /dev/sdb 

Now let the magic work : (don’t forget change the user)

# dd status=progress bs=1M if=/home/user/Desktop/ubuntu-20.04.2.0-desktop-amd64.iso of=/dev/sdb
2714763264 bytes (2.7 GB, 2.5 GiB) copied, 5 s, 543 MB/s 
2743+1 records in
2743+1 records out
2877227008 bytes (2.9 GB, 2.7 GiB) copied, 5.29241 s, 544 MB/s

# sync

😉

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *