Category: Linux Terminal

Added: 3rd of September 2019

Viewed: 282 times

Copy .iso image to USB flash drive using dd command in Linux using the terminal

If you are intending on installing a new Linux distribution on your system, you will need to download the .iso file and write this to a USB flash drive. There are various applications that allow you to do this in Linux, but another way is to use the dd command in the terminal.

The first thing to do is plug in your USB flash drive and get the path to your USB flash drive. Enter the following command.

sudo fdisk -l


Mine is listed as /dev/sdb 7.5 GiB which is my PATRIOT flash drive.

Using the command sudo fisk -l to list drives in terminal

Next we need to enter the following command to write to the .iso file to the USB flash drive.
My download .iso file can be found in my Downoloads directory. We are writing this to /dev/sdb which is the Flash drive.
sudo dd if=Downloads/xubuntu-whatever.iso of=/dev/sdb bs=1M status=progress


The bs command specifies the block size, in this case we set it to 1M (1 Megabyte). The default size is set to 512bytes.
status=progress is self explanatory, it shows you how much data is being written to the drive.

After writing the .iso file to your USB flash drive, you need to reboot your machine enter bios mode and set the boot order priority to your USB flash drive. After saving the setting and rebooting your machine, your new Linux distribution will then boot in to live mode.

For further information on .iso images please visit wikipedia https://en.wikipedia.org/wiki/ISO_image

Other Tips & Tutorials

Linux Terminal

Create a new folder and file using the mkdir and touch commands using the terminal in Linux

Posted: 16th of August 2020

Views: 137

Linux Terminal

Convert a PDF document to text or html using pdftotext, pdftohtml in Linux using the terminal

Posted: 3rd of August 2020

Views: 168

Linux Terminal

List files in a directory using the ls command

Posted: 22nd of July 2020

Views: 168

Linux Terminal

How to access HP Linux Imaging and Printing System set up on Ubuntu using the terminal

Posted: 13th of November 2019

Views: 497

Linux Terminal

Where are the log files located in Linux

Posted: 16th of October 2019

Views: 563

Linux Terminal

Oracle VirtualBox, Unable to insert virtual optical disk

Posted: 11th of October 2019

Views: 1900

Linux Terminal

Oracle VirtualBox only displaying 32-bit version(s), when setting up new Virtual Machine on Linux

Posted: 11th of October 2019

Views: 657

Linux Terminal

The Linux uptime command

Posted: 3rd of October 2019

Views: 699

Linux Terminal

Using GParted in Linux to format a hard drive, flash drive, SD Card

Posted: 17th of September 2019

Views: 1024

Linux Terminal

Copy .iso image to USB flash drive using dd command in Linux using the terminal

Posted: 3rd of September 2019

Views: 282