In this tutorial you will learn how to create a bootable Ubuntu 22.04 USB startup disk. Two methods of bootable Ubuntu 22.04 USB startup disk creation will be shown. To be specific we will be creating a bootable Ubuntu 22.04 USB using any existing Ubuntu Desktop or by using command line on any GNU/Linux distribution.
usb
How to install Ubuntu from USB
If you are ready to install Ubuntu Linux on your computer, the usual way is by putting the Ubuntu files on a USB flash drive and then installing the operating system via USB.
USB token authentication on Linux
This article describes a method how to use a USB memory device as an authentication token to log in into a Linux system instead of traditional password. This can be accomplished by use of Pluggable Authentication Modules ( PAM ) and some sort of USB storage device such as USB memory stick of Mobile phone with SD card attached.
Disable automount on Ubuntu
If you frequently use USB sticks or other USB storage devices, it may become annoying that they are automatically mounted whenever you insert them into your Ubuntu Linux system. This is especially the case with multi-partitioned USB drives.
USB stick encryption using Linux
If you were to ever lose your USB stick, all data stored on it will be lost. More importantly, your USB stick may end up in the hands of some other person, which will have access to your private files, and use that information in any way they please. This is one of many fears of USB stick users. One of the simplest solutions to this dilemma is to keep only non-private information on the USB stick. Obviously, this would defeat a primary purpose for the storage device.
Another solution is to encrypt your USB stick so it will be accessible only to those users who possess the correct password which will fit to decrypt the USB stick’s encryption. This article will deal with the second solution and that is encryption of a USB stick device. Although encrypting an USB stick seems to be the best and easiest solution, it must be said that it also comes with number of disadvantages. The first disadvantage is that decryption of the USB key must be done using a Linux system that has the dm-crypt module installed.
In other words, you cannot use your encrypted USB stick on any Windows machine and UNIX-like system with older kernels. Therefore, to encrypt only a part of the USB stick which holds only private information seems to be a good solution. In this article, we will go through the step by step instructions of encrypting part of a USB device on Linux. Read on to see how it’s done.
In this tutorial you will learn:
- How to install cryptsetup on major Linux distros
- How to partition a USB stick
- How to encrypt a USB stick partition
- How to mount encrypted partition
How to create a Fedora Linux Live bootable USB key
A great feature of many Linux distributions is that you can create a live USB (or CD/DVD) key and boot directly into it. This allows you to try out an operating system, troubleshoot an existing installation, or install Linux onto the system’s hard drive.
Fedora is one of those distributions of Linux that allows us to boot into a usable environment directly from USB. In order to do that, we just need to write the Fedora installation file (.ISO format) to the USB thumb drive.
In this guide, we’ll go over the step by step instructions to create a Fedora bootable USB key via either command line or GUI. Follow along with us to get your USB key setup through Fedora’s Media Writer tool or the ddrescue command utility.
In this tutorial you will learn:
- How to download Fedora and Fedora Media Writer
- How to create Fedora bootable USB with Media Writer (GUI method)
- How to create Fedora bootable USB with ddrescue (command line method)
OS Installation on USB drive with VirtualBox
VirtualBox virtualization software allows you to install any operation system directly to any attached block device such as USB stick/drive etc. This is actually a cool way to create you personalized Live Linux USB stick. This short “howto” describes how it works.
For the sake of this tutorial we will be using block device file name /dev/sdb
to refer to our attached USB drive. First we need to create a raw vmdk
virtual file disk linked to our /dev/sdb
USB drive. As a privileged user execute the below command:
# vboxmanage internalcommands createrawvmdk -filename linux-live.vmdk -rawdisk /dev/sdb
How to shrink USB clone DD file image output
This article we discuss a procedure on how to shrink USB image made by dd
command. Here is the example scenario. You have made four partitions with a total disk space of 3GB:
# sfdisk -l -uM ubuntu_USB.img sfdisk: Disk ubuntu_USB.img: cannot get geometry Disk ubuntu_USB.img: 950 cylinders, 255 heads, 63 sectors/track Units: 1MiB = 1024*1024 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End MiB #blocks Id System ubuntu_USB.img1 1 50 50 51200 b W95 FAT32 ubuntu_USB.img2 51 150 100 102400 b W95 FAT32 ubuntu_USB.img3 * 151 2650 2500 2560000 b W95 FAT32 ubuntu_USB.img4 2651 3000 350 358400 b W95 FAT32
Install Manjaro Architect edition
When you download Manjaro, you can choose from quite a few different desktop environments, such as XFCE, KDE, GNOME, etc. But it’s also possible to forego a desktop environment altogether and install to disk from the command line version of Manjaro, which is known as the Architect edition. This will give the operating system a much closer feel to its ancestor, Arch Linux, which only has a command line installer available. You’ll still get to choose a GUI during the installation, if you’d like.
The main advantage of the Architect edition of Manjaro is that it gives users a lot more control over the installation process. You get to choose the best download mirrors, which drivers to install (free or proprietary), a desktop environment, shell, and more granular control over other options not normally available in the typical installers of some Linux distributions. It’s also a much smaller ISO file, since packages are downloaded from the internet during installation rather than being extracted from the ISO file as they are on GUI editions of Manjaro. This also means you get the latest packages available and your ISO file never becomes outdated.
In this tutorial, we’ll guide you through the process of installing Manjaro Architect edition. This guide assumes that you’ve already obtained the Architect ISO file and created a bootable USB drive or other form of installation media.
In this tutorial you will learn:
- How to install Manjaro Architect edition
How to create a multiboot USB with Ventoy
An USB stick able to store, and let us boot from several Linux distributions images is a very handy tool to have at our disposal. In a previous article we saw how to manually setup and create it from scratch; however, since such operation can quickly become tedious, in this tutorial we will see how to use Ventoy, a tool able to make all the dirty work for us.
In this tutorial you will learn:
- How to download Ventoy
- How to use Ventoy to setup a multiboot USB stick
- How to test the multiboot device without rebooting with Qemu