-- Leo's gemini proxy

-- Connecting to darknesscode.xyz:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini;lang=en-US

Create A Bootable Linux USB Drive


Short tutorial to create a bootable Linux usb drive, maybe not to often we need to create a bootable ubs to install/re-install our system.


Here are some gui options


balenaEtcher

UNetbootin


Those two options are the only ones I've tried before. But i will pick up etcher is simple and easy to use.


But we like to use the terminal, right?


Using the terminal


Question, Why the terminal?


Answer, 'cause is simple, fast and we don't need to install another program in our computer


We need to now which is the name of our ubs and also know is the usb mounted, for that run


lsblk

You will an output like 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/void/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 /

Lest say that our usb is sdx, and is mounted, we need to umount it firs


sudo umount /dev/sdx1

Now, the usb is unmounted we can run the command to flash our usb


sudo dd bs=4M if=/path/to/void-live-x86_64-20210218.iso of=/dev/sdx status=progress oflag=sync

This will show the progress of the flashing process


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

This can take some time to flash the usb, it depend of the size of the ios file, the speed write of the ubs.


----------


Home

Linux

Notes

MicroLog


----------


© DarknessCode

-- Response ended

-- Page fetched on Wed May 22 02:41:55 2024