{"id":5090,"date":"2025-12-10T17:17:43","date_gmt":"2025-12-10T17:17:43","guid":{"rendered":"https:\/\/commandlinux.com\/?p=5090"},"modified":"2025-12-10T17:25:17","modified_gmt":"2025-12-10T17:25:17","slug":"arch-linux-install-guide","status":"publish","type":"post","link":"https:\/\/commandlinux.com\/arch-linux\/arch-linux-install-guide\/","title":{"rendered":"How To Install Arch Linux"},"content":{"rendered":"\n<style>\n\nh2 {\n  margin-top: 2em;\n  border-bottom: 1px solid #ddd;\n  padding-bottom: 0.3em;\n}\n\nh3 {\n  margin-top: 1.5em;\n}\n\ncode {\n  font-family: \"SF Mono\", Consolas, \"Liberation Mono\", Menlo, monospace;\n  background: #f5f5f5;\n  padding: 2px 6px;\n  border-radius: 3px;\n  font-size: 0.9em;\n}\n\npre {\n  background: #f5f5f5;\n  padding: 15px;\n  border-radius: 5px;\n  overflow-x: auto;\n  font-family: \"SF Mono\", Consolas, \"Liberation Mono\", Menlo, monospace;\n  font-size: 0.9em;\n}\n\n.note, .warning, .tip {\n  padding: 15px;\n  margin: 15px 0;\n  border-radius: 5px;\n  border-left: 4px solid;\n}\n\n.note {\n  background: #e7f3ff;\n  border-color: #2196F3;\n}\n\n.warning {\n  background: #fff3e0;\n  border-color: #ff5722;\n}\n\n.tip {\n  background: #e8f5e9;\n  border-color: #4caf50;\n}\n\ntable {\n  width: 100%;\n  border-collapse: collapse;\n  margin: 15px 0;\n}\n\nth, td {\n  padding: 10px;\n  border: 1px solid #ddd;\n  text-align: left;\n}\n\nth {\n  background: #f5f5f5;\n}\n\n.faq-section {\n  margin-top: 2em;\n}\n\n.faq-item {\n  border-bottom: 1px solid #ddd;\n  margin-bottom: 0;\n}\n\n.faq-item input[type=\"checkbox\"] {\n  display: none;\n}\n\n.faq-item label {\n  display: block;\n  cursor: pointer;\n  padding: 15px 0;\n}\n\n.faq-item label h3 {\n  margin: 0;\n  font-size: 1em;\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n}\n\n.faq-item label h3::after {\n  content: \"+\";\n  font-size: 1.2em;\n}\n\n.faq-item input:checked + label h3::after {\n  content: \"\u2212\";\n}\n\n.faq-answer {\n  max-height: 0;\n  overflow: hidden;\n  transition: max-height 0.3s ease;\n}\n\n.faq-item input:checked ~ .faq-answer {\n  max-height: 200px;\n  padding-bottom: 15px;\n}\n<\/style>\n\n<p>Arch Linux provides a minimal base system for complete customization. This guide covers manual installation on UEFI and legacy BIOS systems.<\/p>\n\n<p>Requirements: x86_64 machine, 512 MB RAM minimum, 2 GB disk space, active internet connection, 2 GB USB drive.<\/p>\n\n<div class=\"warning\">\n  <strong>Warning:<\/strong> This process erases all data on the target disk. Back up important files before proceeding.\n<\/div>\n\n<h2>Step 1: Download the Arch Linux ISO<\/h2>\n\n<p>Download the latest ISO from <code>archlinux.org\/download<\/code>. Verify the signature using the provided PGP file to ensure integrity.<\/p>\n\n<h2>Step 2: Create a Live USB for Arch Linux Install<\/h2>\n\n<p>Write the ISO to a USB drive. On Linux, use the <code>dd<\/code> command:<\/p>\n\n<pre>$ dd bs=4M if=\/path\/to\/archlinux.iso of=\/dev\/sdX status=progress conv=fsync<\/pre>\n\n<p>Replace <code>\/dev\/sdX<\/code> with your USB device identifier. Use <code>lsblk<\/code> to identify the correct device.<\/p>\n\n<div class=\"tip\">\n  <strong>Tip:<\/strong> Etcher provides a graphical alternative for Windows and Linux users.\n<\/div>\n\n<h2>Step 3: Boot from the Live USB<\/h2>\n\n<p>Insert the USB and restart the system. Press F2, F10, or F12 during boot to access the boot menu. Select the USB drive.<\/p>\n\n<div class=\"note\">\n  <strong>Note:<\/strong> Disable Secure Boot in BIOS settings if the system fails to boot from USB.\n<\/div>\n\n<p>Select &#8220;Arch Linux install medium&#8221; and press Enter. The system boots to a root shell.<\/p>\n\n<h3>Set Keyboard Layout<\/h3>\n\n<p>The default layout is US. List available layouts:<\/p>\n\n<pre>$ ls \/usr\/share\/kbd\/keymaps\/**\/*.map.gz<\/pre>\n\n<p>Load a different layout:<\/p>\n\n<pre>$ loadkeys de-latin1<\/pre>\n\n<h2>Step 4: Partition the Disk for Arch Linux<\/h2>\n\n<p>List available disks:<\/p>\n\n<pre>$ fdisk -l<\/pre>\n\n<p>Open the target disk in fdisk:<\/p>\n\n<pre>$ fdisk \/dev\/sda<\/pre>\n\n<p>Delete existing partitions with <code>d<\/code>. Create new partitions with <code>n<\/code>.<\/p>\n\n<h3>UEFI Partition Scheme<\/h3>\n\n<p>Create an EFI system partition (512 MB) and a root partition. Change the EFI partition type to &#8220;EFI System&#8221; using <code>t<\/code> and selecting type 1.<\/p>\n\n<h3>Legacy BIOS Partition Scheme<\/h3>\n\n<p>Create a single root partition using the full disk space.<\/p>\n\n<p>Write changes with <code>w<\/code>.<\/p>\n\n<h2>Step 5: Create Filesystems<\/h2>\n\n<h3>For UEFI Systems<\/h3>\n\n<pre>$ mkfs.fat -F32 \/dev\/sda1\n$ mkfs.ext4 \/dev\/sda2<\/pre>\n\n<h3>For Legacy BIOS Systems<\/h3>\n\n<pre>$ mkfs.ext4 \/dev\/sda1<\/pre>\n\n<h2>Step 6: Connect to WiFi<\/h2>\n\n<p>Launch the wireless configuration utility:<\/p>\n\n<pre>$ iwctl<\/pre>\n\n<p>List wireless devices:<\/p>\n\n<pre>device list<\/pre>\n\n<p>Scan and connect:<\/p>\n\n<pre>station wlan0 scan\nstation wlan0 get-networks\nstation wlan0 connect \"NetworkName\"<\/pre>\n\n<p>Exit with Ctrl+D. Verify connectivity:<\/p>\n\n<pre>$ ping -c 3 archlinux.org<\/pre>\n\n<h2>Step 7: Configure Mirrors<\/h2>\n\n<p>Sync the package database:<\/p>\n\n<pre>$ pacman -Syy<\/pre>\n\n<p>Install reflector:<\/p>\n\n<pre>$ pacman -S reflector<\/pre>\n\n<p>Update the mirror list:<\/p>\n\n<pre>$ reflector -c US -f 12 -l 10 -n 12 --save \/etc\/pacman.d\/mirrorlist<\/pre>\n\n<h2>Step 8: Install Arch Linux Base System<\/h2>\n\n<p>Mount the root partition:<\/p>\n\n<pre>$ mount \/dev\/sda2 \/mnt<\/pre>\n\n<p>For legacy BIOS, use <code>\/dev\/sda1<\/code> instead.<\/p>\n\n<p>Install base packages:<\/p>\n\n<pre>$ pacstrap \/mnt base linux linux-firmware nano<\/pre>\n\n<h2>Step 9: Configure the Arch Linux System<\/h2>\n\n<p>Generate the fstab file:<\/p>\n\n<pre>$ genfstab -U \/mnt >> \/mnt\/etc\/fstab<\/pre>\n\n<p>Enter the new system:<\/p>\n\n<pre>$ arch-chroot \/mnt<\/pre>\n\n<h3>Set Timezone<\/h3>\n\n<pre>$ timedatectl set-timezone Region\/City<\/pre>\n\n<h3>Set Locale<\/h3>\n\n<p>Edit <code>\/etc\/locale.gen<\/code> and uncomment your locale. Generate it:<\/p>\n\n<pre>$ locale-gen\n$ echo LANG=en_US.UTF-8 > \/etc\/locale.conf<\/pre>\n\n<h3>Set Hostname<\/h3>\n\n<pre>$ echo myhostname > \/etc\/hostname<\/pre>\n\n<h3>Set Root Password<\/h3>\n\n<pre>$ passwd<\/pre>\n\n<h2>Step 10: Install the GRUB Bootloader<\/h2>\n\n<h3>For UEFI Systems<\/h3>\n\n<pre>$ pacman -S grub efibootmgr\n$ mkdir \/boot\/efi\n$ mount \/dev\/sda1 \/boot\/efi\n$ grub-install --target=x86_64-efi --efi-directory=\/boot\/efi --bootloader-id=GRUB\n$ grub-mkconfig -o \/boot\/grub\/grub.cfg<\/pre>\n\n<h3>For Legacy BIOS Systems<\/h3>\n\n<pre>$ pacman -S grub\n$ grub-install \/dev\/sda\n$ grub-mkconfig -o \/boot\/grub\/grub.cfg<\/pre>\n\n<h2>Step 11: Create a User Account<\/h2>\n\n<p>Install sudo:<\/p>\n\n<pre>$ pacman -S sudo<\/pre>\n\n<p>Create a user:<\/p>\n\n<pre>$ useradd -m username\n$ passwd username\n$ usermod -aG wheel,audio,video,storage username<\/pre>\n\n<p>Edit sudoers to enable wheel group:<\/p>\n\n<pre>$ EDITOR=nano visudo<\/pre>\n\n<p>Uncomment the line containing <code>%wheel ALL=(ALL) ALL<\/code>.<\/p>\n\n<h2>Step 12: Install a Desktop Environment<\/h2>\n\n<p>Install Xorg and NetworkManager:<\/p>\n\n<pre>$ pacman -S xorg networkmanager<\/pre>\n\n<p>Install GNOME:<\/p>\n\n<pre>$ pacman -S gnome<\/pre>\n\n<p>Enable services:<\/p>\n\n<pre>$ systemctl enable gdm\n$ systemctl enable NetworkManager<\/pre>\n\n<p>Exit chroot, unmount, and reboot:<\/p>\n\n<pre>$ exit\n$ umount -R \/mnt\n$ reboot<\/pre>\n\n<p>Remove the USB drive when prompted. The GRUB bootloader loads, and GNOME displays the login screen.<\/p>\n\n<div class=\"faq-section\">\n  <h2>FAQs<\/h2>\n\n  <div class=\"faq-item\">\n    <input type=\"checkbox\" id=\"faq1\">\n    <label for=\"faq1\"><h3>What are the minimum requirements for an Arch Linux install?<\/h3><\/label>\n    <div class=\"faq-answer\">\n      <p>Arch Linux requires an x86_64 processor, 512 MB RAM, 2 GB disk space, and an internet connection during installation.<\/p>\n    <\/div>\n  <\/div>\n\n  <div class=\"faq-item\">\n    <input type=\"checkbox\" id=\"faq2\">\n    <label for=\"faq2\"><h3>How do I check if my system uses UEFI or BIOS?<\/h3><\/label>\n    <div class=\"faq-answer\">\n      <p>Run <code>ls \/sys\/firmware\/efi\/efivars<\/code> in the live environment. If the directory exists, the system uses UEFI.<\/p>\n    <\/div>\n  <\/div>\n\n  <div class=\"faq-item\">\n    <input type=\"checkbox\" id=\"faq3\">\n    <label for=\"faq3\"><h3>Can I dual-boot Arch Linux with Windows?<\/h3><\/label>\n    <div class=\"faq-answer\">\n      <p>Yes. Create separate partitions for Arch and preserve the existing Windows EFI partition. GRUB detects Windows automatically.<\/p>\n    <\/div>\n  <\/div>\n\n  <div class=\"faq-item\">\n    <input type=\"checkbox\" id=\"faq4\">\n    <label for=\"faq4\"><h3>Why does the Arch Linux install fail to download packages?<\/h3><\/label>\n    <div class=\"faq-answer\">\n      <p>Slow or failed downloads result from outdated mirrors. Use reflector to update the mirror list with faster servers.<\/p>\n    <\/div>\n  <\/div>\n\n  <div class=\"faq-item\">\n    <input type=\"checkbox\" id=\"faq5\">\n    <label for=\"faq5\"><h3>Is there an easier way to complete an Arch Linux install?<\/h3><\/label>\n    <div class=\"faq-answer\">\n      <p>Run <code>archinstall<\/code> in the live environment for a guided menu-based installer that automates partition and configuration steps.<\/p>\n    <\/div>\n  <\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Arch Linux provides a minimal base system for complete customization. This guide covers manual installation on UEFI and legacy BIOS systems. Requirements: x86_64 machine, 512 MB RAM minimum, 2 GB disk space, active internet connection, 2 GB USB drive. Warning: This process erases all data on the target disk. Back up important files before proceeding.<\/p>\n","protected":false},"author":1,"featured_media":5091,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[47],"tags":[],"class_list":["post-5090","post","type-post","status-publish","format-standard","has-post-thumbnail","category-arch-linux"],"_links":{"self":[{"href":"https:\/\/commandlinux.com\/wp-json\/wp\/v2\/posts\/5090","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/commandlinux.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/commandlinux.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/commandlinux.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/commandlinux.com\/wp-json\/wp\/v2\/comments?post=5090"}],"version-history":[{"count":3,"href":"https:\/\/commandlinux.com\/wp-json\/wp\/v2\/posts\/5090\/revisions"}],"predecessor-version":[{"id":5099,"href":"https:\/\/commandlinux.com\/wp-json\/wp\/v2\/posts\/5090\/revisions\/5099"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/commandlinux.com\/wp-json\/wp\/v2\/media\/5091"}],"wp:attachment":[{"href":"https:\/\/commandlinux.com\/wp-json\/wp\/v2\/media?parent=5090"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/commandlinux.com\/wp-json\/wp\/v2\/categories?post=5090"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/commandlinux.com\/wp-json\/wp\/v2\/tags?post=5090"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}