Skip to content

Install guide is terrible, what happened to the beginners guide?

This is probably the 6 or 7th time I've built arch, I'm running it on the laptop I'm on now with LUKS secure boot and everything. I'm definitely not linux dumb. However, I'm trying to setup arch on my ryzen desktop and I'm having a terrible time. The install guide has definitely regressed...the beginners guide is gone. I'm having a bunch of trouble getting UEFI to boot...

116 points90 comments
Open on Reddit
About this post
Posted
Archived
Score
116 · 100% up
Kind
Text
ID
7at151

Author

11
posts
44
comments
5
media
View profile

92 comments

I used arch a few years ago, then stopped for a couple of years and returned to it this August. And I have to say that even though the documentation is now much richer than it used to be, the installation guide become almost unusable, when it used to be really good. It used to have a linear installation guide, and if you needed something specific, you’d have to find the wiki page for that, read it and deviate from the “base” installation. Now, the installation forks into a million options, and you have to read about crap that is irrelevant to you until you find your way through it.

85 points

Yes, this exactly. There should be a default "path":

  • 100% disk utilization with a boot partition
  • GPT
  • ext4
  • UEFI
  • systemd-boot
  • done

I'm logging everything I'm doing to set up my machine now. I'm already way past where I got stuck earlier and even deviated to include LUKS, but I basically couldn't follow the install guide. I literally just used my laptop /etc/ and /boot/ as a template.

38 points

It used to be like that a few years ago, not the exact list you made, but a linear set of defaults. Then if you wanted something different, it was up to you. Now even to set up the network, you don’t get a default but rather a page that describes every possible option, thus forcing you to read about all of the different ways you’re not going to manage your network.

24 points

The standard set of instructions should be functional on the largest possible number of target machines, so I'm not sure UEFI would be best. I've only seen a very small number of devices that require UEFI, but I've seen countless that don't support it. Grub would be a better choice, imo. Also, you can configure grub to boot the same system via bios or UEFI, and with not too much extra work. Perhaps that should be the default for those who are not sure what they need.

9 points

Yep.

No seriously, people would keep complaining about how the "default" "path" didn't exactly fit their preferences, so they now get to pick their poison. Looks like Linux is about choice after all, at least in Arch. (inb4 systemd)

3 points

Mate, I did extensive research (comparing the two for about 20 minutes) and the new installation guide is basically the same. The maybe cut two minor things (apart from cutting all the bullshit that was not needed there). I already used it twice and found it just as easy as before, even with my T470 which is my first UEFI based computer.

If anything, Linux doesn't really like RYZEN atm

8 points

Ryzen works perfectly fine on Linux for me

12 points

It works but I wouldn't call it perfectly. Linux kernel still lacks some support when it comes to power management.

1 points

That would be a huge bummer...

A lot of the links dealing with bootloader stuff wasn't working for me, or it would just go back to the regular installation guide.

Specifically I was looking for the exact commands to mount the boot esp, I thought I was maybe missing something there.

1 points

it's anarchy (former arch anywhere) for me since a while, ... it's basically straight vanilla arch (not like antergos)

8 points

Yeah, not sure how this new release is going to go as Anarchy so I made sure to backup the ISO in a few places because it really does provide a good installer for vanilla Arch.

2 points

It provides an installer, an unsigned repo and someone else's personal configs. So no, it's not "vanilla" - exactly the reason why they changed their name to not include "Arch".

1 points
  1. What is your partition table? Make sure it's gpt
  2. How did you generate the PARTUUID? Did you use the correct blkid command?
7 points
  1. Yep definitely gpt, haven't used mbr in a while
  2. blkid -s PARTUUID -o value /dev/nvme0n1p1
3 points

It should be:

blkid -s PARTUUID -o value /dev/nvme0n1p2

You want the PARTUUID of your root partition, not your boot partition.

14 points

I see no problem with it. It has everything you need with plenty of links to guide you through adding more if you want. I think it's a great installation guide and it's only that, an installation guide.

5 points

I definitely agree that there should be an installation guide thats pretty much what it is, but getting rid of the beginners guide (even though i don't consider myself a beginner) just makes the process so much faster.

Also, the installation guide has somethings highlighted as code blocks and not others, you have to read everything to make sure you don't screw up, the code blocks should be a down and dirty here are example commands for everything you need to get up and running. It shouldn't be a walkthrough, but it should be clear.

2 points

you have to read everything to make sure you don't screw up

...which is exactly the point. People who can't be bothered to read should look at a different distribution.

0 points
unknown author14 hidden

Deleted before we saved it.

4 points

Seriously, thanks, I'm merging yours into mine where appropriate. Never knew about jshon I thought that was a typo but googled it just in case, thats awesome.

How do you like sddm over gdm? I'd like to go with something lighter, but I know gdm works.

2 points

You should renew your eyeglass prescription since the thing that was linked is a carbon copy of what we have now. Oh wait, the name is different. Sorry, that changes everything.

0 points

Nice thanks, this is my setup script so far:

# MY ARCH INSTALL GUIDE
# Change /dev/nvme**** to whatever drive/partitons you want
# This basically gets you to a GUI login
parted
# rm * # dunno if * will work but, delete all partitions
# mkpart ESP fat32 1MiB 513MiB
# set 1 boot on
# mkpart primary ext4 513MiB 50%
# quit
cryptsetup -y -v luksFormat /dev/nvme0n1p2 # setup encrypted container, set container password
cryptsetup open /dev/nvme0n1p2 cryptroot # "mount" the encrypted container
mkfs.ext4 /dev/mapper/cryptroot # make an ext4 filesystem in the encrypted container
mount /dev/mapper/cryptroot /mnt # mount your open container
mkdir /mnt/boot
mount /dev/nvme0n1p1 /mnt/boot # mount boot partition inside /mnt
echo `Server = https://mirrors.kernel.org/archlinux/$repo/os/$arch` > /etc/pacman.d/mirrorlist
pacstrap /mnt base
genfstab -U /mnt >> /mnt/etc/fstab
cat /mnt/etc/fstab #Does it look sane?
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
hwclock --systohc
echo `en_US.UTF-8 UTF-8` > /etc/locale.gen
locale-gen
echo `LANG=en_US.UTF-8` > /etc/locale.conf
echo `XXXXXXX` > /etc/hostname
passwd # set root password
useradd -m -g users -G wheel -s /usr/bin/zsh USER
passwd USER
bootctl --path=/boot install
nano /etc/mkinitcpio.conf
# MODULES="ext4 dm_crypt"
# HOOKS="base systemd autodetect modconf keyboard block sd-encrypt filesystems fsck"
nano /boot/loader/loader.conf
# default 0Arch
# timeout 5
# editor 0
nano /boot/loader/entries/0Arch.conf
# title Arch Normal Boot
# linux /vmlinuz-linux
# initrd /initramfs-linux.img
# options rw luks.uuid=<OUTPUTOF`cryptsetup luksUUID /dev/nvme0n1p2`> luks.name=<OUTPUTOF`cryptsetup luksUUID /dev/nvme0n1p2`>=cryptroot root=/dev/mapper/cryptroot luks.options=discard disable_mode=1
mkinitcpio -p linux
exit
umount -R /mnt
reboot

	# If you need to troubleshoot reboot using the live image then follow this to get setup
	cryptsetup open /dev/nvme0n1p2 cryptroot
	mount /dev/mapper/cryptroot /mnt
	mount /dev/nvme0n1p1 /mnt/boot
	arch-chroot /mnt

# After booting successfully and logging in as root
systemctl enable dhcpcd.service
systemctl start dhcpcd.service
ip addr # check and make sure you got an ip, might take a second
ping google # make sure you gots interwebs
pacman -S gdm gnome i3 sway terminator xterm zsh
systemctl enable gdm.service
systemctl start gdm.service
2 points

is it possible to put everything on one line and then just paste for a complete installation? Up until the reboot stage atleast.

command1 && command2 && command3 etc
1 points

Then it's working! The old guide let too many people that shouldn't have installed Arch actually be successful with it!

Nah, kidding. It's the same, it just links to other info instead of repeating it. It's easier to use rather than having to scroll through huge amounts of unneeded text to get to the bits you need.

4 points

Huh? You need through scroll through more text since you have to go into more individual pages, so you have to scroll through each and figure out what's the bits you actually need.

2 points

You joke, but if you read the official forums I think that was one of the 'unoffcial' reasons for it.

1 points

Just a wild Idea. Why not try rEFInd? It's fast and has easy one-file config on the contrary to grub2...

3 points

What’s your exact problem? I hope you used systemd-boot? It’s literally the easiest boot Manager there is. Wiki article about it is great also. Use it!!

2 points

I've been trying to use systemd-boot, I'm half tempted to go grub though... (Sorry this took a bit to retype)

I'm getting failure to mount /boot (error code 32 which is just failure to mount) after I go through the install and reboot.

  • ls /sys/firmware/efi/efivars Yep lots of stuff

  • ping archlinux.org yep got internets

  • timedatectl set-ntp true yep time is all good

  • fdisk -l

    • /dev/nvme0n1p1 512M EFI System
    • /dev/nvme0n1p2 232G Linux Filesystem
  • parted /dev/nvme0n1 print

    • 1 1049kb 538MB 537MB fat32 boot,esp
    • 2 538MB 256GB 256GB ext4
  • cat fstab

    • my root - UUID=my long UUID / ext4 rw,relatime,data=ordered 0 1
    • my boot - UUID=bootsUUID /boot vfat rw,relatime,fmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
  • pacstrap /mnt base base-devel

  • genfstab -U /mnt >> /mnt/etc/fstab

    • This is the only place where I think things could be wrong, am I on the right track? Maybe it isn't generating the UUIDs for my nvme drive correctly?!
    • ls /dev/nvme*:
      • /dev/nvme0 /dev/nvme0n1 /dev/nvme0n1p1 /dev/nvme0n1p2 p1 is my boot, p2 is my root
  • When in chroot I manually mounted my boot partition to /mnt/boot, then chrooted

  • setup hostname/locale/keyboard all that kinda stuff is good to go

  • mkinitcpio - only thing I changed was I added systemd to the hooks

  • bootctl --path=/boot install

  • /boot/loader/loader.conf:

      default arch
      timeout 2
      editor 0
    
  • /boot/loader/entries/arch.conf:

      title Arch
      linux /vmlinuz-linux
      initrd /initramfs-linux.img
      options root=PARTUUID=LONGASSUUIDTOMYROOT rw
    
  • umount /mnt/boot && umount /mnt && reboot

  • remove USB, start loading kernel....boot error.

  • Drops into emergency mode, do systemctl status boot.mount error code 32

1 points

Why are you using PARTUUID? PARTUUID and UUID is not the same

ls -l /dev/disk/by-uuid vs ls -l /dev/disk/by-partuuid

4 points

I see the same issue over and over again where users try to use grub on UEFI and have a difficult time. The only reason they choose grub is because when they reading the wiki entry on bootloaders, grub has all the boxes ticked green. This is is very misleading when all they really need is systemd-boot or efistub.

I completely agree there should be a typical setup or recommended choices or best practices. Something to streamline the installation without having to do 3 days of research from the wiki.

I wouldn't even be opposed to an optional ncurses installation setup tool to walk you through the installation process.

2 points

I remember when I started using Arch in 2014 it took me way over 3 days because I had to wade through all the irrelevant trash in then's Beginners' guide. Because warnings on 1995 routers are that relevant, right.

I commented on the "typical setup" above in the thread. The optional ncurses installation setup already exists in the form of Archboot.

2 points

Yeah exactly. There have been install tools in the past but those go out of date so fast, it would be hard to keep in updated. But a hiking isn't that hard.

1 points

Believe it or not, wikiHow has one of the best guides for UEFI. I sent it to my friend as a joke, but it worked perfectly for him.

2 points

I don't even need to look it up to know it adds [archlinuxfr] and runs pacman -Sy on every possible occasion.

1 points

On the 5 or 6 times I've installed Arch I've always used Swapnil's guide. Basic, but does the job for me: http://www.consumeit.io/always-updated-arch-linux-tutorial/30411

2 points

Pure trash. Some of the more obvious examples:

ln -s /usr/share/zoneinfo/Zone/SubZone > /etc/localtime

Redirecting a symbolic link, really?

grub-mkconfig -o boot/grub/grub.cfg

Looks like someone didn't understand how to replace "esp" in the wiki article.

pacman -Sy

Quick-road to breakage.

Once in awhile you need to optimize pacman:

Hasn't been needed for years.

How to use Yaourt

No comment required.

pacman -S xf86-input-synaptics

Has been replaced with libinput for a long time now.

...

Not even mentioning the idle rants of the author that are boring at best and completely misleading at worst. But don't worry, it's a common theme amongst "installation" "guides" you find around the internet.

2 points

Yeah, I just did an install and it took a few attempts to get booting. dm-crypt, root as a btrfs subvolume, EFI stub. Juggling the UUIDs was a pain.

1 points

Do you have a guide on the steps you followed? I'm trying to get EFI to work with dm-crypt and btrfs but having trouble. Which bootloader did you end up using for EFI?

1 points

I used EFI stub. /boot is the fat32 EFI partition.

This guided me through dm-crypt + btrfs subvolumes: https://wiki.archlinux.org/index.php/Dm-crypt/Encrypting_an_entire_system#Btrfs_subvolumes_with_swap

Then with EFI stub, this worked for me:

uuid=$(blkid -o value /dev/sda2 | head -n1)
rootuuid=$(blkid -o value /dev/mapper/cryptroot | head -n2 | tail -n1)
efibootmgr -d /dev/sda -p 1 -c -g -L "Arch Linux" -l /vmlinuz-linux -u "cryptdevice=UUID=${uuid}:cryptroot:allow-discards root=UUID=${rootuuid} rootflags=subvol=root rw initrd=/initramfs-linux.img"
1 points
unknown author1 hidden

Deleted before we saved it.

-1 points

Yeah I've checked that out, there is a bit missing as far as working links and stuff like that. I think I'm just going to make a log of everything I run with comments and save it for next time.

3 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.