Should the contents on the Installation guide be reorganized?
I'd like to propose another way to organize the contents in the famous Arch Linux installation guide from the Arch wiki. I don't think the actual organization is bad, however I think it could be better.
Original:
1 Pre-installation
1.1 Verify signature
1.2 Boot the live environment
1.3 Set the keyboard layout
1.4 Verify the boot mode
1.5 Connect to the internet
1.6 Update the system clock
1.7 Partition the disks
1.7.1 Example layouts
1.8 Format the partitions
1.9 Mount the file systems
2 Installation
2.1 Select the mirrors
2.2 Install essential packages
3 Configure the system
3.1 Fstab
3.2 Chroot
3.3 Time zone
3.4 Localization
3.5 Network configuration
3.6 Initramfs
3.7 Root password
3.8 Boot loader
4 Reboot
5 Post-installation
Proposition:
1 Pre-installation
1.1 Verify signature
1.2 Boot the live environment
1.3 Set the keyboard layout
1.4 Verify the boot mode
1.5 Connect to the internet
1.6 Update the system clock
2 Installation
2.1 Partition the disks
2.1.1 Example layouts
2.2 Format the partitions
2.3 Mount the file systems
2.4 Select the mirrors
2.5 Install essential packages
2.6 Fstab
2.7 Chroot
2.8 Boot loader
2.9 Initramfs
2.10 Reboot
3 Configure the system
3.1 Time zone
3.2 Localization
3.3 Network configuration
3.4 Root password
3.5 Users management
4 Post-installation
Changes explained:
- I moved ·Partition the disks·, ·Format the partitions· and ·Mount the file systems· to |Installation| because I consider the Pre-installation as a moment to check if everything is ok in your PC before making any change in it.
- I moved ·Fstab· to |Installation| because even if the installation technically ends when the system is installed, and indeed it is installed at this point, the user is not able to enter the new system without a fstab. So I don't consider you are finished with the installation until you generate an fstab.
- I moved ·Chroot· and ·Boot loader· to |Installation| for similar reasons to Fstab section. I think you need to have a boot loader working in order to enter your recently installed system. And the best way to do it is installing it from the inside using chroot.
- I moved ·Reboot· to |Installation| just after Boot loader because at this point you can reboot your computer if you want, and everything will work fine. Configuration is something you can do after checking everything with the installation step works fine. But also it should suggest that all the configuration can be done inside chroot, before exiting it and rebooting.
Edit: Seems like some configuration actions are required or recommended before rebooting, like Initramfs or Root password. I will move them to before rebooting.
- I added ·Users management· to |Configure the system| because I consider this section really important for the new user and should not be delegated to Post-installation guides and pages. Here, the wiki should explain how to create a new user, set its password and give sudo permissions to it.
Also, I'd like to add to Post-installations section a few tips about what to search when you visit the General Recommendations and List of Applications pages, which are huge and maybe people don't really know what is missing in their system (Fonts, terminal emulator, drivers, microcode, ntfs-3g, udisks2, etc.).
Thoughts? Don't be hard on me plz
Edited 16 Mar 2020. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 126 · 100% up
- Kind
- Text
- ID
- fjon1j
47 comments
Maybe I'm the minority, but I actually prefer the current ordering over your proposed revision. I'm certainly not a fan of configure being after reboot. I realize it can be done that way, but rebooting should take you to a basic system that's ready to go, not one that still needs a bunch of configuration just to reach a minimum usable state in my opinion.
I also don't think it's the order that gives people trouble. Put it in any order you want, I really don't think it will matter. The problem is people either skim read and miss things, don't know what something means and don't want to follow the link and read another wiki page, or just read command blocks and run everything without any explanations. Otherwise, the wiki works fine and I know several people that managed an install first time in contrast to your experience. I'm certainly in that group as well.
The first and third problems are user issues and there's nothing the wiki can do to fix that. The 2nd is a byproduct of the fact that things have gotten more complicated and there are a ton of options. Unless Arch wants to take the stance of having a recommended basic set of tools (grub, wicd, etc), it really can't be simplified much more. Perhaps some clarity could be added to a few sections, but I really don't think any of it is going to change much.
You should probably add your concerns/suggestion to the discussion section of the install wiki page too where the wiki team is more likely to see it and get feedback from them.
I tend to agree. The only installation hurdles I had (and still have) are to do with running an encrypted setup. Those sections, along with their other linked wiki pages, need a helluva lot of work to make them more approachable to beginners.
The order itself always felt perfectly logical to me.
I do find the encrypted stuff could use some work as well. I know the wiki team has a crazy long todo list, and I personally lack the expertise with encryption to look at it too, but I'm hoping it gets cleaned up eventually as encryption is getting more and more common.
I've been using the Arch way to teach myself linux by diving head first into it as a total n00b, and have reinstalled across different machines via UEFI and BIOS methods multiple times, and of course made plenty of small mistakes along the way...
That said, now I've pretty much got the installation guide memorized at this point... but the one thing I almost ALWAYS got messed up was the order in which to mount the newly created partitions.
Often times, I would
mkdir /mnt/bootand mount the boot partition BEFORE my root partition and GRUB would inevitably not make it's configuration file correctly. Looking at the guide again, it's clear to me that they do not do it in that order, but I never knew any better thinking it didn't matter whether or not you mounted root before boot.It sounds pretty clear to me personally.
I think this goes back to the first part of my argument: a lot of problems occur because people skim. I feel like if you had taken the time to carefully read that you would've seen it's saying to do root first. Would you agree? But if you think it's worth clarifying that, go ahead and make a wiki account and contribute. Maybe it'll save someone else some trouble.
I have 25 years of linux / un*x experience and I still find myself wanting a higher level guide or cheat sheet when installing a new arch system.
Though, it's usually something like, "how the hell did I get the fonts to not be so ugly last time" only to discover that the previous method I used is no longer available and I have to work something else out. Or, oh, they renamed the compositor or aur tool I was using...again.
The install guide is great reference material, but not very practically minded whether you're a noob or something else. Linux has always been kind of a mess. Hopefully the current paradigms with systemd, ip and other tools stay put for a long while.
While someone's on this I think the disk partition section could be further elaborated, it's really confusing all this boot/efi/uefi(also called efi) partitions, maybe more examples there could increase the number of people successfully installing Arch.
Yep. Its also super important to get right if you want to run any kind of encrypted setup, and as a newbie it was suuuuuper confusing, even with a bunch of experience partitioning other non-linux/unix systems.
I think the wiki page on partitioning could use cleaning up and elaborating more than changing that section of the install guide.
Agreed. Disk partitioning is hardest part of the guide. Too many links all over the place. Imo there should be directly written an example of most common setup, a modern uefi system, and links for people who want something else
Totally agree
I'd always mess this up by mounting my boot partition before my root partition thinking it didn't matter.
Also, formatting the EFI partition to FAT32 should probably be on that page. I bet most beginners wouldn't follow that link because they either didn't see it or they are just reading the command blocks.
Why would this
Be after reboot? Localization and time zone don't hurt to do it before rebooting, and without configuring network and initramfs you may end up with a borked system after reboot.
Edit: also, root password after rebooting?
The thing is people should know they can do all the configuration inside chroot or after rebooting. But if you tell them after the Configure the system section, almost at the end of the guide when they already configured everything, is kinda useless. That's why I put it earlier. But I can also put it twice, one suggestion pre-config and the other post-config.
Edit: Btw, I do all the configuration after rebooting and checking the installation is okay since the day I spent 20 minutes configuring it and when I wanted to reboot, grub failed.
I can see your reasoning, but as someone who visits the Arch forums regularly, there's like at least a post every week about a new user who missed configuring their network and now "can't install packages" or "can't resolve hostname" or whatever. Network configuration needs to be before rebooting for those first-time users. Otherwise you can leave yourself in a state where you end up having to go back to the live environment anyway to install necessary packages.
Initramfs has to be pre reboot, or the system might not boot. Probably best to do root password before you reboot too.
Initramfs done. But root password is really necessary before rebooting?
It's a very good idea to do before rebooting just in case you need it. And it takes 2 seconds to do.
This all seems sane.
EDIT: I say that, and then a bunch of valid criticisms are made by others that I totally missed when I was reviewing it. It's been way too long since I've done a fresh Arch install...
Ty, I really love Arch wiki. But I know nobody who could install Arch for the first time only with it, even though everything is there.
That's why I think the installation guide could be better structured.
I was able to when I first started using Arch, but that was many years ago, and the installation guide has been heavily modified many times since then. UEFI, SSDs, Systemd, netctl, and quite a bit of modern filesystem behavior is all new since then. I think GPT might also be new since then. It doesn't surprise me that the Installation guide is in need of a refresh.
I will second /u/raist356's comment about the root password and the initramfs, though. That stuff should probably go between 2.8 and 2.9.
Took me 3 installations at first to figure it out so I agree
I'm thinking "Boot the live environment" should be the start of a new section. I don't think it fits with "Verify signature."
It should be something like:
I still don't know why they removed the user management section.
Yeah, I wish this would go back into the guide
I think
Bootloadershould be placed beforefstabbecause it runs before root partition is remounted.I have never installed/confgiured a bootloader before fstab. Not saying it's not possible, but certainly isn't necessary.
How is that possible? Can you chroot without fstab? Or do you want to set the boot loader before chrooting? That's kinda complicated.
/etc/fstabis for the next boot, it won't stop me fromarch-chroot-ing, I have already mounted partitions manually.When
/etc/fstabis missing it can still boot, I thought the worst case is an emergency shell, but I've just tried with GRUB and EFISTUB, they lead me to the login screen without error, look like they already know which one is root partition.Not installing a bootloader is a much harder problem though. Even in emergency shell I can still mount root partition to
new_rootmanually, but without a bootloader, I'm out of hope, the only choice now is plug the flash drive in and redo the installation.> Can you chroot without fstab?
Yes
> Or do you want to set the boot loader before chrooting? That's kinda complicated.
Why? Its mostly the same, whether you do it in chroot or not.
e.g.
bootctl install --esp /mnt/bootTo answer your question, in my humble opinion, yes.
idk about moving partitioning/formatting to installation.
it isn't a necessary step for installation - it is necessary to have them but doesn't that make it a 'checklist' item anyway?
also it's already commented on, but the reboot placement, it doesnt make sense.
Okay, if you already have the partitions it's just a checklist item as you say, but once you make disk's partitions you can't (easily) go back or cancel, and you must continue with the installation.
It's very different from fixing your internet connection and system's clock.
i'm not sure how that is true...
regardless, i'm also not sure why that would make it inappropriate for 'pre-installation'.
seems odd to me, but not to others i guess.