Category: Linux Terminal

Added: 3rd of September 2019

Viewed: 1332 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

Kill multiple processes using the pkill command in Linux

Posted: 5th of January 2021

Views: 722

Linux Terminal

Display free memory using the terminal in Linux

Posted: 17th of December 2020

Views: 675

Linux Terminal

Using mlocate to find files by name, extension using the terminal in Linux

Posted: 27th of November 2020

Views: 595

Linux Terminal

Capture screenshots of websites using cutycapt in different formats using the terminal in Ubuntu and Ubuntu based distributions

Posted: 15th of November 2020

Views: 832

Linux Terminal

Display a calendar in the terminal

Posted: 6th of November 2020

Views: 748

Linux Terminal

Create a simple cronjob in Linux

Posted: 20th of October 2020

Views: 858

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: 805

Linux Terminal

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

Posted: 3rd of August 2020

Views: 1218

Linux Terminal

List files in a directory using the ls command

Posted: 22nd of July 2020

Views: 842

Linux Terminal

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

Posted: 13th of November 2019

Views: 1488