How to create an Ubuntu Live USB drive using command-line

The terminal way of doing things is always a great way to execute your tasks efficiently and faster as it does not consume much system resources.

Do you know that you can create an Ubuntu Live USB from your terminal? If you are a command-line geek who loves to do everything using the terminal and don’t like installing a third-party app for creating a live USB drive, you have landed in the correct place!

Previously, we have shown you how to create an Ubuntu Live USB GUI way. In today’s tutorial, we are going to show you how to create an Ubuntu Live USB via the terminal.

The terminal way of doing things is always a great way to execute your tasks efficiently and faster as it does not consume much system resources. Hence it is an excellent alternative for GUI based applications.

Create an Ubuntu Live USB using Terminal

Step 1. First things first, we need to download the Ubuntu ISO. Open your favorite web browser.

Step 2. From the official Ubuntu website, download Ubuntu. In this guide, we will download Ubuntu Desktop 18.04.

Download Ubuntu Desktop

Download Ubuntu From The Official Website
Download Ubuntu From The Official Website

Step 3. Save your Ubuntu ISO.

Save Your Ubuntu Download File
Save Your Ubuntu Download File

Step 4. Next, launch the terminal.

Open Your Terminal
Open Your Terminal

Step 5. Plug in a blank USB flash drive of at least 4GB capacity.

Step 6. Get your USB drive name using the following command.

df

Get Your USB Drive Name
Get Your USB Drive Name

As you can see in the above screenshot, the USB drive, in my case, is the last entry. The USB drive name is “/dev/sdb1,” and it is mounted on “/media/hendadel/UBUNTULIVE.”

Step 7. Before writing data to the USB drive, you will need to make sure that it is unmounted. If the USB drive is automatically mounted, then use one of the next commands to unmount it.

The first method, you can unmount the USB drive using the device name as following:

sudo umount /dev/sdb1

Unmount The USB Drive
Unmount the USB Drive

The second method, you can unmount the USB drive using the path where the USB is mounted to as following:

sudo umount /media/hendadel/UBUNTULIVE

Step 8. Now make sure that the USB drive is unmounted using the following command.

df

USB Drive Unmounted Successfully
USB Drive Unmounted Successfully

Step 9. Enter the following command to create a bootable Ubuntu Live USB. Make sure to replace the path of the download ISO image with your download path in the below command:

sudo dd bs=4M if=/home/hendadel/Desktop/UBUNTU\ ISO/ubuntu-18.04.1-desktop-amd64.iso of=/dev/sdb1 status=progress oflag=sync

Write The Ubuntu ISO To USB Drive
Write The Ubuntu ISO To USB Drive

Pay attention to the progress in the terminal.

Step 10. When the writing process finishes successfully, you should get a message like the below one.

Ubuntu Live USB Created Successfully
Ubuntu Live USB Created Successfully

Step 11. Now let’s check if the USB drive is mounted.

df

The Ubuntu Live USB Mounted Automatically
The Ubuntu Live USB Mounted Automatically

As you can see in the above screenshot, the USB drive is mounted, and its name is changed.

Step 12. To make sure the Ubuntu ISO is written successfully, let’s check the content of the USB drive.

ls /media/hendadel/Ubuntu\ 18.04.1\ LTS\ amd64/

The Ubuntu Live USB Content
The Ubuntu Live USB Content

That’s all about creating a bootable Ubuntu Live USB drive using your terminal.

Hend Adel
Hi! I'm Hend Adel, a freelancer technical geek with successful experience in Database, Linux and many other IT fields. I help to build solutions to suit business needs and creating streamlined processes. I love Linux and I'm here to share my skills via FOSS Linux! Thanks for reading my article.

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here

STAY CONNECTED

23,538FansLike
365FollowersFollow
16SubscribersSubscribe

LATEST ARTICLES

How to install CouchPotato on Ubuntu

Downloading movies and copying them over to your home server can get frustrating, especially if you are doing it daily! What if you have an option to download videos automatically, quickly, and above all with excellent quality. CouchPotato allows you to download movies easily once they are available and released automatically.

Top 20 Rsync Examples in Linux

The Rsync (remote sync) command is a Linux/Unix utility used to synchronize and copy files and directories either locally or remotely. Most Linux geeks use Rsync to mirror, backup or migrate data across folders, across disks and networks. One notable feature with the Rsync command is that it uses the "delta transfer algorithm."

Setting up NFS Server on Ubuntu Server

We have put together a detailed step-by-step tutorial that will guide you on how to install and set up NFS Server on Ubuntu so you too can start sharing data with other client systems. It is divided into sections, the first part discussing how to set up the host server and the second part showing you how to set up the client-side. For this tutorial, we will be using Ubuntu 20.04 LTS.

Crontab in Linux Explained With Examples

Crontab is the Linux equivalent of the Window's Task Scheduler. It can help you set up a task to run automatically at a regular...

The 10 Best Linux Server Distros For Home And Businesses

By the year 2020, it is estimated that there are close to 600 Linux distributions in the market. It includes both servers and Desktop versions; therefore, if you are looking for lightweight Linux distribution for your old PC or a reliable desktop version for employees in your organization, you may be overwhelmed with the number of choices for finding one for your use.

How to list the installed Packages on Ubuntu

It is only natural to start installing more and more software on your Ubuntu PC once you start using it. Similarly, it is also natural to lose track of the different packages that you have installed on your system. Eventually, you may be overwhelmed with the number of packages in your system and with the ones you hardly used.

MUST READ

Linux is growing faster than ever. As per the latest report, there is a drop in the Windows 10 market share for the first time, and Linux's market share has improved to 2.87% this month. Most of the features in the list were rolled out in the Pop OS 20.04. Let's a detailed look into the new features, how to upgrade, and a ride through video.
Elementary OS 5.1 Hera has received a point release with a handful of new features and bug fixes, and we will be reviewing the significant changes in this article. For those new to elementary OS, this Ubuntu-based Linux distribution uses their inhouse built Pantheon desktop environment and AppCenter.

5 Things to do when your Linux system GUI freezes

All operating systems freeze at some point and, Linux distributions are no exceptions. In this post, we are going to look at five methods you can apply to your frozen system before thinking of plugging out the power cable or holding down the power button to power off the PC.

5 Best Download Managers for Linux

We often need to download large files that can go corrupt due to various reasons such as slow internet or interrupted download. Using a broken downloaded file is not something one wants. Download managers make sure that the downloaded file maintains its integrity and also presents you with the ability to pause and resume downloads, provided the server supports it. When you are downloading a massive file, it's recommended to use a download manager.

What is FOSS, and how does it differ from Freeware

The rise of the Linux operating system, in all its various distributions, over the past few decades has catapulted the popularity of Free or Open Source Software (FOSS). Let's guide you in understanding what is FOSS, how it differs from freeware and is Linux a FOSS.

5 ways to send emails using the command-line in Linux

Did you master using the command-line in Linux? There is no limit to what one can do via the Linux Terminal. One of such things we are going to discuss today are methods of sending an email using the command-line.