2024-05-29
Identify the usb drive with the lsblk
command:
lsblk
Ensure the USB drive is unmounted and using vfat:
sudo umount /dev/sdX1
sudo mkfs.vfat -F 32 /dev/sdX
You can use the archlinux tutorial from here, or keep following the instructions below (up to you). Arch wiki
Find the name of the USB drive:
ls -l /dev/disk/by-id/usb-*
NOTE: Do not pick any of the names with part-X
as suffix. Select only the
"main" one that is not a partition.
sudo dd if=path/to/your.iso of=/dev/sdX1 bs=4M status=progress
sudo dd bs=4M if=path/to/archlinux-version-x86_64.iso of=/dev/disk/by-id/usb-My_flash_drive conv=fsync oflag=direct status=progress
# Notes:
# if = The input file.
# of = The output file.
# bs = sets the block size to 4 megabytes.
# status = shows the operation progress.
Run sync
to ensure all data is written to the USB drive.
sync
In a thinkpad, you can press F12 during device startup to go to the boot menu.
You can also try pressing Esc
if your boot mode is set to "quick" in the
BIOS.
If your computer is running windows you can also:
Settings
app, and search for Windows Update
.Advanced Options
.Recovery
.Advanced startup
and then Restart now
.Troubleshoot
.Advanced options
.UEFI Firmware Settings
and click Restart
.You'll need internet connection. If using wifi, run:
iwctl
# list device names
[iwd] device list
# turn on (if not on already)
[iwd] device name set-property Powered on
[iwd] adapter adapter set-property Powered on
# scan networks (this won't output anything)
[iwd] station name scan
# see available networks
[iwd] station name get-networks
# connect to a network
[iwd] station name connect SSID
Finally run archinstall
.
archinstall
Notes: 0. Remove your USB disk to not interfere with lsbk during install.
us
keyboard layout and locale to avoid dmenu errors./home
.