💾 Archived View for darknesscode.xyz › notes › bootable-linux-usb-drive.gmi captured on 2023-11-04 at 11:31:56. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2021-12-05)
-=-=-=-=-=-=-
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
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?
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.
----------
----------
© DarknessCode