You might have gathered from the number of responses, but there is no "one right answer" to the question of how to set up your EFI partition. The Guide is taking a conservative approach here, and assuming the least about your pre-existing setup as possible: you may or may not be dual-booting already, so don't delete the partition; and since you might want to quadruple-boot in the future, 1GB is a safe amount for a new partition.
The truth is you need to figure out what your needs are, which is (beyond presenting "sane defaults") the stance of the Guide in general):
If you are making a completely fresh install over the entire drive, then go with deleting the old partition and creating a new one if you want.
If you aren't planning to store the kernel in any form on the EFI partition, only installing bootloaders that can access /boot from a separate partition, then 100 MB is technically enough.
If you plan to copy over the kernel and initrd files to the EFI partition, or are planning to use unified kernel images, then you will want at a minimum 512 MB.
If you have any remotely recent primary drive (i.e., space is plentiful), then just make it 1 GB and never worry about filling it again.
For the record, I use unified kernel images since I'm planning to implement secureboot at some point (been busy lately), and my /efi/EFI/Linux folder takes up 380 MB.
By default, Arch currently uses zstd for initcpio compression, but if you're at all unsure it's worth it, without loss of much but a bit of time, running mkinitcpio -P again anyway.
I agree, unless there's a documented problem with keeping it included then the recommendation should probably be to keep things as per defaults. I have it included still without any issues (although I also haven't had to follow the NVIDIA article since kms was added to the default HOOKS array).
That said, I would like to know if there ARE any issues.
This is the setup I'm using on my desktop PC, with each drive having its own EFI system partition. My mobo also has its own boot loader (separate from the usual boot menu) that I can set to show up on each boot, which then launches the respective Windows and systemd-boot loaders, without having to press a boot menu key each time.
To summarize the ArchWiki: for small amounts of RAM (~512 MB) it's suggested to have 2x as much swap space; "modern amounts" of RAM need "less", but how much is left vague and really depends on your usage.
Where it is recommended to have as much swap space as RAM is for hibernation. You can get away with less in that case but it's not guaranteed to work.
For me, I don't hibernate on my desktop PC, and I'm not going to waste 16 GB of my 256 GB SSD on swap when I don't need to. I have read that at least 1 GB is recommended at minimum as a safeguard for OOM (if the kernel has no swap, it can't even try to get out of OOM), so I went with that. Haven't had any problems yet.
Serious question: do you need to resize your swap? Unless your typical memory usage has increased by more than 4 GB since upgrading, you have the same as if not less need for swap space with more RAM on board.
I personally never fill my RAM on Linux, so I only have a 1 GB swap partition because the Linux kernel is still written to assume you have some kind of swap partition.
You could check out Void Linux, it even has specific rpi-armv6l releases. It's similar to Arch ideologically if not in specific implementation: rolling release, but more of a focus on stability; since it supports musl libc, it has to use runit instead of systemd; no aur, but it has an easily extensible build system not too unlike ABS; things of that nature.
To further add to this: while Ubuntu and Debian made an effort to remove "bashisms" from their scripts before officially adopting dash(1) as /bin/sh, I remember reading that Arch took a decidedly more pragmatic approach, and simply replaced all their shebangs with #!/bin/bash. For instance, bash(1) (and not sh(1)) is a dependency of pacman(8), among many other official Arch projects.
That's who manufactured my 1060 also. Unfortunately I don't know of a way in Linux to turn the light off, however, once you do turn the light off (I used the Windows software) then it will stay off permanently, regardless if you uninstall the Windows software or even delete the Windows partition.
If you have access to any version of Windows supported by the Gigabyte software (in any way you see fit 😉), and perhaps access to a small spare storage drive, then while it's a lot of work that would let you disable the light.
Does EFISTUB allow for editing kernel parameters at boot? Sometimes appending 'single' is all you need to fix a problem.
Of course, allowing the editing at all may not be appropriate for everyone's threat model, but it's not something I'm worried about on my home desktop PC.
About 2), why would you do that? Programs don't take up all that much space, just install everything on the SSD and leave the HDD for a media partition (videos/music/etc.) or something.
And anyway, regardless of your distribution, Pacman only supports installing to one root tree (that is to say, one /usr/ tree and one variable data (/var/) tree). The RootDir and DBPath configuration options are, as noted in pacman.conf(5), used to "install a package on a temporary mounted partition which is "owned" by another system, or for a chroot install." You can try playing around with those if you really want to, but do so at your own peril and don't expect any sympathy.
Also, most Linuces only support your /usr/ partition being on the same physical disk as your root partition (most would even discourage you from separating /usr/ into its own partition, since there is little benefit to that nowadays).
I refuse to give you distribution-specific advice because I don't know jack about Manjaro.
Bash normally sources the first, and only the first, file found in ~/.bash_profile, ~/.bash_login and ~/.profile. It's possible one of the files prior to ~/.profile somehow got created or copied to your directory, overriding your assumed login profile. It's also possible that the previous files already existed, but your bash was being invoked as /bin/sh before and that got changed somehow to /bin/bash, wherein the former case it would only source ~/.profile but in the latter it follows that list.
Saturday. I had previously dual-booted with Windows on a 256 GB SSD (128 GB for each OS), but it was running low on space for games so I moved the Windows install (for gaming) to a new 1TB NVMe and then finally got around to doing a fresh install of Arch on the (entire) SSD. While I could have just expanded the old root to fill the drive, I wanted to make a bunch of changes (partitions, filesystems, use systemd-homed, etc.), and I figured it was easy enough and a good time to start fresh and clean.
This isn't the primary reason, but one secondary reason is for the systemd "Discoverable Partitions Specification", which allows it to mount required partitions without an fstab entry (although this is only intended to be use for appliance-type devices).
Another benefit is that any administrator could look at the partition table and know which partition is for which purpose without seeing the contents or having a label, although this is more useful in IT scenarios.
Thanks, I really appreciate the advice. I suppose I should do a bunch more reading of Linux DNS, and make sure I'm implementing it all properly. Networking is still one of my big IT weak points, but I'm working towards filling in those blanks.
Oops, I meant DNS not HTTP, over TLS. I've read it can leak DNS unencrypted under current implementation, but have not looked into if that's been fixed recently.
I am not clever enough to say that systemd is ultimately good or bad for Linux, so I've decided to just go with the flow and use it where I can1. Since it's already on my system, then if I can use it that's one less piece of redundant software I have to install, and in some ways it makes system maintenance simpler than the classic alternatives.
So far I'm using ~-boot (almost as simple as EFISTUB, easier to maintain), ~-networkd (works great if you just have a simple network setup on a desktop), ~-timesyncd, system and user services/timers, ~-nspawn (by way of aurutils compiling in a chroot), and of course ~-logind and ~-journald.
I will be doing a fresh install of Arch in the near future (for various reasons), and at that point I'd like to start using ~-homed as well.
The one big piece I don't use is ~-resolved, as it doesn't have proper support for "HTTPDNS over TLS"2 yet, or so I've read. I'm using Unbound for that instead.
1 And as a counterbalance to that, I'm running OpenBSD on my laptop. 2 Edit. I've read it can leak DNS unencrypted under current implementation, but have not looked into if that's been fixed recently.
Gentoo is probably one of the most customizable OSes, let alone Linux distros, out there, thanks largely in part to its robust system of USE flags (selecting software features to explicitly include or exclude during compilation) and overlays (largely user-made repos that enhance compatibility for one or another combination of features, e.g. a set of patches to support the Suckless userspace).
There should only be files placed into "${USER}/.{local/share,cache,config}" after $USER runs the programs, as package installation doesn't (and shouldn't) know about individual user directories. They will often place default configuration files into "/etc", however (but should be placing fallback/default configuration files into "/usr/share" instead).
git clone and makepkg are the only ideologically pure tools to use the AUR, but if you're looking for a compromise between laziness and ideology then I suggest aurto, which is built around automating the aurutils suite while implementing a "user trust" system so you're (hopefully) not blindly installing AUR packages. This is what I use.
"Orthogonal design", "the chaining together of simple tools", etc.
You might have gathered from the number of responses, but there is no "one right answer" to the question of how to set up your EFI partition. The Guide is taking a conservative approach here, and assuming the least about your pre-existing setup as possible: you may or may not be dual-booting already, so don't delete the partition; and since you might want to quadruple-boot in the future, 1GB is a safe amount for a new partition.
The truth is you need to figure out what your needs are, which is (beyond presenting "sane defaults") the stance of the Guide in general):
For the record, I use unified kernel images since I'm planning to implement secureboot at some point (been busy lately), and my /efi/EFI/Linux folder takes up 380 MB.
By default, Arch currently uses zstd for initcpio compression, but if you're at all unsure it's worth it, without loss of much but a bit of time, running
mkinitcpio -Pagain anyway.I agree, unless there's a documented problem with keeping it included then the recommendation should probably be to keep things as per defaults. I have it included still without any issues (although I also haven't had to follow the NVIDIA article since kms was added to the default HOOKS array).
That said, I would like to know if there ARE any issues.
This is the setup I'm using on my desktop PC, with each drive having its own EFI system partition. My mobo also has its own boot loader (separate from the usual boot menu) that I can set to show up on each boot, which then launches the respective Windows and systemd-boot loaders, without having to press a boot menu key each time.
To summarize the ArchWiki: for small amounts of RAM (~512 MB) it's suggested to have 2x as much swap space; "modern amounts" of RAM need "less", but how much is left vague and really depends on your usage.
Where it is recommended to have as much swap space as RAM is for hibernation. You can get away with less in that case but it's not guaranteed to work.
For me, I don't hibernate on my desktop PC, and I'm not going to waste 16 GB of my 256 GB SSD on swap when I don't need to. I have read that at least 1 GB is recommended at minimum as a safeguard for OOM (if the kernel has no swap, it can't even try to get out of OOM), so I went with that. Haven't had any problems yet.
Serious question: do you need to resize your swap? Unless your typical memory usage has increased by more than 4 GB since upgrading, you have the same as if not less need for swap space with more RAM on board.
I personally never fill my RAM on Linux, so I only have a 1 GB swap partition because the Linux kernel is still written to assume you have some kind of swap partition.
You could check out Void Linux, it even has specific rpi-armv6l releases. It's similar to Arch ideologically if not in specific implementation: rolling release, but more of a focus on stability; since it supports musl libc, it has to use runit instead of systemd; no aur, but it has an easily extensible build system not too unlike ABS; things of that nature.
My preference would be to switch to OpenBSD honestly, but I have an Nvidia graphics card which plays even less well with it than it does with Linux.
My next choice would be probably CentOS, or maybe Fedora if CentOS started to feel too stale after a while.
To further add to this: while Ubuntu and Debian made an effort to remove "bashisms" from their scripts before officially adopting dash(1) as /bin/sh, I remember reading that Arch took a decidedly more pragmatic approach, and simply replaced all their shebangs with
#!/bin/bash. For instance, bash(1) (and not sh(1)) is a dependency of pacman(8), among many other official Arch projects.and with aurto for trust-based automation. it's the simplest sane way to AUR
That's who manufactured my 1060 also. Unfortunately I don't know of a way in Linux to turn the light off, however, once you do turn the light off (I used the Windows software) then it will stay off permanently, regardless if you uninstall the Windows software or even delete the Windows partition.
If you have access to any version of Windows supported by the Gigabyte software (in any way you see fit 😉), and perhaps access to a small spare storage drive, then while it's a lot of work that would let you disable the light.
Does EFISTUB allow for editing kernel parameters at boot? Sometimes appending 'single' is all you need to fix a problem.
Of course, allowing the editing at all may not be appropriate for everyone's threat model, but it's not something I'm worried about on my home desktop PC.
Yes it is. Like most programs that are a part of the systemd "umbrealla", it is included in systemd.
About 2), why would you do that? Programs don't take up all that much space, just install everything on the SSD and leave the HDD for a media partition (videos/music/etc.) or something.
And anyway, regardless of your distribution, Pacman only supports installing to one root tree (that is to say, one /usr/ tree and one variable data (/var/) tree). The RootDir and DBPath configuration options are, as noted in pacman.conf(5), used to "install a package on a temporary mounted partition which is "owned" by another system, or for a chroot install." You can try playing around with those if you really want to, but do so at your own peril and don't expect any sympathy.
Also, most Linuces only support your /usr/ partition being on the same physical disk as your root partition (most would even discourage you from separating /usr/ into its own partition, since there is little benefit to that nowadays).
I refuse to give you distribution-specific advice because I don't know jack about Manjaro.
Bash normally sources the first, and only the first, file found in ~/.bash_profile, ~/.bash_login and ~/.profile. It's possible one of the files prior to ~/.profile somehow got created or copied to your directory, overriding your assumed login profile. It's also possible that the previous files already existed, but your bash was being invoked as
/bin/shbefore and that got changed somehow to/bin/bash, wherein the former case it would only source ~/.profile but in the latter it follows that list.Saturday. I had previously dual-booted with Windows on a 256 GB SSD (128 GB for each OS), but it was running low on space for games so I moved the Windows install (for gaming) to a new 1TB NVMe and then finally got around to doing a fresh install of Arch on the (entire) SSD. While I could have just expanded the old root to fill the drive, I wanted to make a bunch of changes (partitions, filesystems, use systemd-homed, etc.), and I figured it was easy enough and a good time to start fresh and clean.
My last install was back in the fall of 2017.
This isn't the primary reason, but one secondary reason is for the systemd "Discoverable Partitions Specification", which allows it to mount required partitions without an fstab entry (although this is only intended to be use for appliance-type devices).
Another benefit is that any administrator could look at the partition table and know which partition is for which purpose without seeing the contents or having a label, although this is more useful in IT scenarios.
If a tab mode is the only thing you're critically missing, then tabbed might work to fill in that gap
Thanks, I really appreciate the advice. I suppose I should do a bunch more reading of Linux DNS, and make sure I'm implementing it all properly. Networking is still one of my big IT weak points, but I'm working towards filling in those blanks.
Oops, I meant DNS not HTTP, over TLS. I've read it can leak DNS unencrypted under current implementation, but have not looked into if that's been fixed recently.
I am not clever enough to say that systemd is ultimately good or bad for Linux, so I've decided to just go with the flow and use it where I can1. Since it's already on my system, then if I can use it that's one less piece of redundant software I have to install, and in some ways it makes system maintenance simpler than the classic alternatives.
So far I'm using ~-boot (almost as simple as EFISTUB, easier to maintain), ~-networkd (works great if you just have a simple network setup on a desktop), ~-timesyncd, system and user services/timers, ~-nspawn (by way of aurutils compiling in a chroot), and of course ~-logind and ~-journald.
I will be doing a fresh install of Arch in the near future (for various reasons), and at that point I'd like to start using ~-homed as well.
The one big piece I don't use is ~-resolved, as it doesn't have proper support for "
HTTPDNS over TLS"2 yet, or so I've read. I'm using Unbound for that instead.1 And as a counterbalance to that, I'm running OpenBSD on my laptop.
2 Edit. I've read it can leak DNS unencrypted under current implementation, but have not looked into if that's been fixed recently.
Gentoo is probably one of the most customizable OSes, let alone Linux distros, out there, thanks largely in part to its robust system of USE flags (selecting software features to explicitly include or exclude during compilation) and overlays (largely user-made repos that enhance compatibility for one or another combination of features, e.g. a set of patches to support the Suckless userspace).
There should only be files placed into "${USER}/.{local/share,cache,config}" after $USER runs the programs, as package installation doesn't (and shouldn't) know about individual user directories. They will often place default configuration files into "/etc", however (but should be placing fallback/default configuration files into "/usr/share" instead).
git cloneandmakepkgare the only ideologically pure tools to use the AUR, but if you're looking for a compromise between laziness and ideology then I suggestaurto, which is built around automating theaurutilssuite while implementing a "user trust" system so you're (hopefully) not blindly installing AUR packages. This is what I use."Orthogonal design", "the chaining together of simple tools", etc.
10 applications, 2 libraries, 2 fonts, and 1 "other" (neovim-symlinks).