Files
digital-garden-flo/guides/bootable-usb-on-linux.md
T

54 lines
2.3 KiB
Markdown

# Steps on how to Create A Bootable USB on Linux With dd
So first off, start downloading the ISO you need.
I have started downloading Ubuntu 24.04 ISO, because that is what I need on my new machine.
Meanwhile, check the mount points, first without the usb plugged in, then plugin the usb, then you are sure what it is, usually sda or sdb
```bash
# Without USB
lsblk -o NAME,SIZE,FSTYPE,MOUNTPOINTS
# Result
NAME SIZE FSTYPE MOUNTPOINTS
zram0 8G swap [SWAP]
nvme0n1 1,8T
├─nvme0n1p1 600M vfat /boot/efi
├─nvme0n1p2 2G ext4 /boot
└─nvme0n1p3 1,8T crypto_LUKS
└─luks-xxx 1,8T btrfs /home
/
# Then I plug in the USB, and see that it is mounted at sda
lsblk -o NAME,SIZE,FSTYPE,MOUNTPOINTS
NAME SIZE FSTYPE MOUNTPOINTS
sda 29,4G
├─sda1 6,2G ext4
├─sda2 5M vfat
├─sda3 300K
└─sda4 23,2G ext4
zram0 8G swap [SWAP]
nvme0n1 1,8T
├─nvme0n1p1 600M vfat /boot/efi
├─nvme0n1p2 2G ext4 /boot
└─nvme0n1p3 1,8T crypto_LUKS
└─luks-xxx 1,8T btrfs /home
/
```
Now I know we are working with `sda`.
Then I wipe the USB stick, just while the ISO is downloading
```bash
sudo wipefs -a /dev/sda
```
Now my Ubuntu ISO has been downloaded.
Then I'll unmount the usb drive and run dd (I am on my)
```bash
sudo umount /dev/sda* 2>/dev/null
sudo dd if=ubuntu-24.04.5.1-desktop-amd64.iso of=/dev/sda bs=4M conv=fsync status=progress
```
Mmm that is it. Easy peasy.