I use ARCH btw
(→AND IF YOU FAIL...) |
|||
Line 78: | Line 78: | ||
# See fstab(5) for details. | # See fstab(5) for details. | ||
− | # <file system> <dir> <type> <options> <dump> <pass> | + | # <file system> <dir> <type> <options> <dump> <pass> |
# /dev/sda6 | # /dev/sda6 | ||
− | UUID=38472571-3738-42e4-9561-47facca89d00 / btrfs rw,relatime,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/ 0 0 | + | UUID=38472571-3738-42e4-9561-47facca89d00 '''/''' btrfs rw,relatime,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/ 0 0 |
# /dev/sda7 | # /dev/sda7 | ||
− | UUID=05d5954f-f948-4d21-9813-aa687a8d4cf4 /home btrfs rw,relatime,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/ 0 0 | + | UUID=05d5954f-f948-4d21-9813-aa687a8d4cf4 '''/home''' btrfs rw,relatime,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/ 0 0 |
# /dev/sda2 LABEL=SYSTEM | # /dev/sda2 LABEL=SYSTEM | ||
− | UUID=B651-2AC6 /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2 | + | UUID=B651-2AC6 /boot'''/efi''' vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2 |
# /dev/sda8 | # /dev/sda8 | ||
− | UUID=3845f812-ba5d-4113-8dbe-635448119669 none swap defaults 0 0 | + | UUID=3845f812-ba5d-4113-8dbe-635448119669 none '''swap''' defaults 0 0 |
Revision as of 18:29, 26 November 2023
Following the guide is mostly ok ; A word on something I completely forgot about :
When you use a graphical installer, it will both assist in creating / deleting / reorganizing partitions, then at formatting them or not, then in assigning their roles as "root", "home", or "swap" and so on ; I never realized those where completely independent actions, and that you can partition or not, format or not, and, assign partitions with fstab later on independently.
Frightening, or hilarious, side note : I know I installed my last system without running the fstab generation, and the system build itself out of the /mnt/ ; /mnt/home and /mnt/swap partitions from the live system without being told what to do o_Ô ...I just jumped the line between pacstrap and chroot...
Contents |
Yes, but
- No need to partition if there's no need to! (esp EFI) You'll run into a permissions nightmare on your /home, but that's better than loosing data :
When the /home partition is mounted to /mnt/home at 'pacstrap' time, just chmod -r 777 the entire contents of the previous /home folder ; when you make your new user, be sure to give it another name.
- Only format your system / partition (or root partition) with makefs.<type of filesystem>.
- It's ok to mount the EFI partition to /boot/efi and not simply /boot so as to not fill that small partition with everything in /boot, especially numerous kernels
On my fresh install, the EFI partition is 260MB which is a factory default - and my /boot partition is already 268MB ; ergo, it wouldn't fit, with just 4 kernels + the windows stub
Default install through pacstrap needs a lot more stuff, you'll probably want
- base-devel linux-lts os-prober pacman-contrib
- grep rsync nano tar git iwd - snapper ?
- gdm gnome networkmamager gedit - or any of your login manager and desktop environment of choice
- bluez bluez-utils usbutils
- firefox vlc smplayer gimp
When you chroot in, it's normal for os-prober to not see the M$ partition, even if it is mounted ; you should re-run it, and re-run grub-mkconfig, when you did reboot into the actual, fresh system.
don't forget to enable some systemd services, duh
- gdm.service
- NetworkManager.service
- bluetooth.service
with
systemctl enable <name of unit>.service
If you are already in your graphic environment and instead need it to be enabled and start immediately (like for network), run
systemctl enable --now <name of unit>.service
And make a basic user
Then create a basic user with
useradd -m <name of user>
Add it to sudoers with
EDITOR=nano visudo
Now you can reboot. Have you installed some network software? Have you enabled a graphic shell ? That's the core needs for a functional, fresh install to be tuned further as needed.
Set up aur or install flatpak for dropbox and ungoogled-chromium ; add python-gpgme for dropbox.
Good luck with btrfs, and snapper, and snap-pac, and grub-btrfs, and don't forget to hack mkinitcpio as described.
AND IF YOU FAIL...
Just re-do the whole install thing ; it is better to loose 20 minutes re-doing it than spending 20 days fixing it
For reference, and in memoriam of failing to remember one of the basics of building a Linux system, my current fstab (mysteriously auto-generated somehow) :
# Static information about the filesystems. # See fstab(5) for details. # <file system> <dir> <type> <options> <dump> <pass> # /dev/sda6 UUID=38472571-3738-42e4-9561-47facca89d00 / btrfs rw,relatime,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/ 0 0 # /dev/sda7 UUID=05d5954f-f948-4d21-9813-aa687a8d4cf4 /home btrfs rw,relatime,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/ 0 0 # /dev/sda2 LABEL=SYSTEM UUID=B651-2AC6 /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2 # /dev/sda8 UUID=3845f812-ba5d-4113-8dbe-635448119669 none swap defaults 0 0