YouTube Icon

Code Playground.

How to Create Bootable Ubuntu 18.04 USB Stick on Linux

CFG

How to Create Bootable Ubuntu 18.04 USB Stick on Linux

In this instructional exercise, we will tell you the best way to make a bootable Ubuntu USB stick from the Linux terminal. You can utilize this USB stick for sure and try out or introduce Ubuntu on any PC that supports booting from USB. 

Prerequisites

A 4GB or bigger USB stick drive 

PC running any Linux dispersion 

Ubuntu ISO record. Visit the Ubuntu downloads page where you can discover download joins for Ubuntu Desktop, Ubuntu Server and different Ubuntu flavors. In all likelihood you will need to download the most recent Ubuntu LST Desktop adaptation. 

Creating Bootable Ubuntu 18.04 USB Stick on Linux

While there are various GUI instruments that permits you to streak ISO pictures to USB drives, in this instructional exercise, we will make a bootable ubuntu 18.04 USB stick utilizing the dd order. 

Making Bootable Ubuntu 18.04 USB Stick on Linux is a speedy and simple cycle, simply follow the means itemized underneath. 

Start by embeddings the USB streak crash into the USB port. 

Discover the name of your USB drive with the lsblk order: 

lsblk

The yield will resemble this: 

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda           8:0    0 465.8G  0 disk 
??sda1        8:1    0 465.8G  0 part /data
sdx           8:16   1   7.5G  0 disk 
??sdx1        8:17   1   7.5G  0 part /run/media/linuxize/Kingston
nvme0n1     259:0    0 232.9G  0 disk 
??nvme0n1p1 259:1    0   512M  0 part /boot
??nvme0n1p2 259:2    0    16G  0 part [SWAP]
??nvme0n1p3 259:3    0 216.4G  0 part /

As should be obvious from the yield over, the USB gadget is/dev/sdx yet this may fluctuate on your framework. 

Most Linux circulations will naturally mount USB streak drive when embedded. Prior to blazing the picture ensure the USB gadget isn't mounted. To do so utilize the umount order followed by either the index where it has been mounted (mount point) or the gadget name: 

sudo umount /dev/sdx1

The last advance is to streak the Ubuntu ISO picture to the USB drive. Ensure you supplant/dev/sdx with your drive and don't annex the segment number. Likewise, supplant/way/to/ubuntu-18.04.2-work area amd64.iso with the way to the ISO record. In the event that you downloaded the record utilizing an internet browser, at that point it should be put away in the Downloads organizer situated in your client account. 

sudo dd bs=4M if=/path/to/ubuntu-18.04.2-desktop-amd64.iso of=/dev/sdx status=progress oflag=sync

The order will show an advancement bar while blazing the picture. 

The cycle may take a few minutes, contingent upon the size of the ISO record and the USB stick speed. When finished you will see something like underneath: 

458+1 records in
458+1 records out
1921843200 bytes (1.9 GB, 1.8 GiB) copied, 147.006 s, 13 MB/s

There's nothing more to it! You have a bootable Ubuntu on your USB stick. 

Conclusion

You have figured out how to make a bootable Ubuntu USB stick from the Linux terminal. 

In the event that you hit an issue or have criticism, leave a remark underneath.




CFG