Gangmax Blog

自由之思想,独立之精神

How to Write an Iso File to a Bootable USB Device Using Dd Command

| Comments

Previously I used ”unetbootin” to do such thing. However today I find it doesn’t work since my USB drive doesn’t show up in the “USB Drive” dropdown list. So I want to find a Linux command which can do the same thing. I find this and here is how to do it.

1
2
3
4
5
6
7
# 1. Check the USB drive device name. In my case it's "/dev/sdc",
# which will be used below.
df -Th
# 2. Umount the USB drive.
umount /media/auser/SANDISK
# 3. Write the iso file to the USB drive.
sudo dd if=ubuntu-mate-18.04.2-desktop-amd64-gpd-pocket.iso of=/dev/sdc bs=8M status=progress

Done. Very simple, right?

Here is the command to format a USB drive after the installation is over and you want to use it as a normal USB drive(from here):

1
2
3
4
5
sudo umount /dev/sdc1
sudo mkfs.ntfs /dev/sdc1
# Or:
sudo mkfs.vfat /dev/sdc1
sudo mkfs.ext4 /dev/sdc1

Comments