#Arch manual installation support
1608 messages · Page 2 of 2 (latest)
Nah I just copied a format
Ok.
Make sure you setup the partitions like that
mkfs.fat -F32 /dev/nvme0n1p1
cryptsetup luksFormat /dev/nvme0n1p2
cryptsetup open /dev/nvme0n1p2 cryptroot
mkfs.btrfs /dev/mapper/cryptroot
cryptsetup luksFormat /dev/nvme0n1p4
cryptsetup open /dev/nvme0n1p4 crypthome
mkfs.btrfs /dev/mapper/crypthome
mkswap /dev/nvme0n1p3
swapon /dev/nvme0n1p3
mount -o noatime,compress=zstd,space_cache=v2 /dev/mapper/cryptroot /mnt
btrfs subvolume create /mnt/@
btrfs subvolume create /mnt/@snapshots
umount /mnt
mount -o noatime,compress=zstd,space_cache=v2,subvol=@ /dev/mapper/cryptroot /mnt
mkdir -p /mnt/{boot,home}
mount -o noatime,compress=zstd,space_cache=v2 /dev/mapper/crypthome /mnt/home
btrfs subvolume create /mnt/home/@home
umount /mnt/home
mount -o noatime,compress=zstd,space_cache=v2,subvol=@home /dev/mapper/crypthome /mnt/home
mount /dev/nvme0n1p1 /mnt/boot
lsblk /dev/nvme0n1
Send me a screenshot
Give me all the packages
genfstab -U /mnt >> /mnt/etc/fstab
Throw in chromium as well
Smooth sailing now fluks should be happy
So in the future, if I fuvk up like that I just have to reset my machine every time?
No
Done
You wont be doing anything on this scale of breakability
hopefully
And if so def gonna experiment on VMS
cat /mnt/etc/fstab verify it
Seems good
Yes please
Ok srysry
Where are you from
India, but kinda lived most of my live in USA lol
I'll fill out the time zone info
Where would you like the timezone
Yea
Sorry should've said that frm the statt
Start*
Ohh yah we still in chroot btw
So uh take that into account
ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
hwclock --systohc
We need to be
Yeah sorry
nano /etc/locale.gen
Uncomment en_US.UTF-8 UTF-8
Remove the # in front of it
locale-gen
echo "LANG=en_US.UTF-8" > /etc/locale.conf
echo "arch" > /etc/hostname
Systohc is an unrecognized option
Is it just 1 dash or r u sure that it's 2
It should be two separate commands my fault
How do I grab nano
pacman -S nano
Done
then arch-chroot /mnt
exit
Yeh then it works
Done
Still not found
Works now
Ok so nano /etc/locale.gen
uncomment en_US.UTF-8 UTF-8
You can go I'm making sure everything is spot on
Once done lmk
locale-gen
echo "LANG=en_US.UTF-8" > /etc/locale.conf
Yes ctrl+x y enter
echo "myarch" > /etc/hostname
nano /etc/hosts
My arch is whatever name I want or?
Yes
::1 localhost
127.0.1.1 myarch.localdomain myarch```
passwd Sets the root password
pacman -S cryptsetup btrfs-progs
nano /etc/mkinitcpio.conf
Later
We are almost done
Run em baby
Insidde /etc/mkinitcpio.conf look for HOOKS=
Match it to this
HOOKS=(base udev autodetect modconf kms keyboard keymap consolefont block encrypt filesystems btrfs fsck)
It's taking forever to download
Yeah we will rank your mirrors out of the iso
There's no hooks that match exactly that
It's missing encrypt
Yeah make yours match it
Ohh, all the hooks?
Holdon there's like 5 hooks and I have no copy pastr
All good
We are about finished
Do you have a bootloader in mind or you don't care?
Grub
Also that right?
Can I save it, safely
Looks good
Ok just ran this
What's happening
Errors
Ohh fuck
Fuck I did encyrpt instead of encrypt
Uhh
I may or may not have ran the other command already
D:
Ohh I was about to lose it if I had to redo it
Ye
Nope we still good
I use GRUB or systemd-boot
Grub it is!
GRUB is nice
Installed
Now what
So what did we just do
Mkinitcpio
Now we are going to configure it for btrfs
K
Creates your initial ramdisk environment
Ok find GRUB_CMDLINE_LINUX_DEFAULT
Found it
Uuid?
and run blkid /dev/nmve1n1p2
Yeah unique id for partition incase disks swap identifiers again
It's 0
I need the UUID
GRUB_CMDLINE_LINUX_DEFAULT="quiet cryptdevice=UUID=ff1e8357-6eee-4d19-97ad-af315692b812:cryptroot root=/dev/mapper/cryptroot rw rootflags=subvol=@" Confirm before you match the lines
UncommentGRUB_ENABLE_CRYPTODISK=y
Space after quiet?
Uncomment before or after
K
mount | grep /boot
Done
It return something?
Ok thats ok
We just need to add it. I was going for systemd-boot but GRUB is fine
umount /dev/nvme0n1p1
or umount /boot
ok mkdir -p /efi
Done
mount /dev/nvme0n1p1 /efi
Yeah thats fine.
Returned nothing
Yes that's why you didn't get a return just thinking if we really need to exit
Fuck it exit
Lets double check
mount | grep -E '/mnt|/efi|/home'
Should return 3 entries
nvme0n1p1 cryptroot crypthome
Screenshot
So how do I fix that...
Wanna just try and boot it?
It's 1:30 am and I still have hw to do
Ohh wait
I Could try unmounting
And then reassigning the /mnt
cat /mnt/etc/crypttab
cat /mnt/etc/fstab
Idk how the hell we ended up with two root mount points
Fk...
You didn't accidently send one with / and /@
It's ok we can fix it
Just don't what the fuck happened there
So like
How
Dude
Wanna just wing the boot
See what happens
Or we can try n fix this
blkid /dev/mapper/cryptroot /dev/nvme0n1p1 /dev/mapper/crypthome /dev/nvme0n1p3 /dev/nvme0n1p4
Ok now we need to confirm UUIDs
Huh
cat /etc/crypttab
Alrighty then, let's fix this up
How
nano /etc/crypttab
K
# See crypttab(5) for details.
# NOTE: Do not list your root (/) partition here, it must be set up beforehand by the initramfs (/etc/mkinitcpio.conf).
# <device> <UUID> <key file> <options>
cryptfs UUID=539a5556-5b33-4b68-8a53-98da4f222b1f9 /etc/mypassword2 swap_cipher=aes-cbc-essiv:sha256,swap_size=256```
Is what is should look like
Uhh doesn't look like that at all
There's a whole name column
@waxen osprey so do I delete all of that?
Let me check the requirements for name real quick
# See crypttab(5) for details.
# NOTE: Do not list your root (/) partition here, it must be set up beforehand by the initramfs (/etc/mkinitcpio.conf).
# <name> <device> <password> <options>
cryptfs UUID=539a5556-5b33-4b68-8a53-98da4f222b1f9 /dev/urandom swap,cipher=aes-cbc-essiv:sha256,size=256```
Now after that cat /etc/fstab
Are those supposed to be in hashtags
Yeah this is actually kinda scuffed atm, the dual / root subdirectories fucked us at generating fstab
Jolly
It's ok I can fix it
Just gotta alot to type
Ok so we may need to revisit the crypttab
But let's do fstab first
# See fstab(5) for details.
# <file system> <dir> <type> <options> <dump> <pass>
UUID=9c1e5ec-bf33-4fbd-8891-cd2efabe1aab / btrf rw,noatime,compress=zstd:3,ssd,space_cache=v2,subvolid=5,subvol=/ 0 0
UUID=9c1e5ec-bf33-4fbd-8891-cd2efabe1aab /home btrf rw,noatime,compress=zstd:3,ssd,space_cache=v2,subvolid=256,subvol=/@home 0 0
UUID=0187-E33C /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/mapper/cryptfs none swap defaults 0 0````
Make it look just like that,
Here's the corrected crypttab ```# Configuration for encrypted block devices.
See crypttab(5) for details.
NOTE: Do not list your root (/) partition here, it must be set up beforehand by the initramfs (/etc/mkinitcpio.conf).
<name> <device> <password> <options>
cryptfs UUID=539a5556-5b33-4b68-8a53-98da4f222b1f9 /dev/urandom swap,cipher=aes-cbc-essiv:sha256,size=256```
Make sure everything is on the correct line, don't get thrown off by word wrap
U sure no hashtag?
This is actual hell to type
Confirm our hooks
I know I just did it off a screenshot lmao
You can type it or reboot and start over
Entirely up to you
:D
Doesn't this have 1 too many arguments
I'm on phone so I can't really get the spacing right
Nvm
You got it?
Yes
@waxen osprey
So
Just to clarify
The first argument
On the left
Has a hashtag
Right?
On both the files
Nope
Damn
Remove the # in front of each entry
Nope but the rest looks good
Ok let's check mkinitcpio
nano /etc/mkinitcpio.conf
Double check the HOOKS and FILES
FILES should have /etc/password1
Has 1
Huh
The HOOKS are wrong
Lmao
Is there a way to copy paste?
Can u retype the hooks pls
HOOKS=(base udev autodetect modconf kms keyboard keymap consolefont block encrypt filesystems btrfs fsck)
pacman -Syu linux
Holy shit.
😭
How do I enter it
Ok now pacman -Syu linux
Already done
Run it again
Yep
grub-install --target=x86_64-efi --efi-directory=/boot /dev/nvme0n1
Ahh fuck
Lots of missing firmware
Nope no errors
It finished tho
Ok
grub-mkconfig -o /boot/grub/grub.cfg
Now I know you made that bitch an EFI partition
The type
Not mounted
You may need to update fstab, it says
arch-chroot /mnt
K
And then prayls /boot/EFI/GRUB
NO ERRORA
WE aint out of the woods yet g
Thank god.
succ...esss?
SUCCESS!!!
What did you do to make it work 😭
Also is arch on my ssd now, officially
Yeah it's on there let's hope our fstab is good
ls /boot/vmlinuz-linux /boot/initramfs-linux.img /boot/initramfs-linux-fallback.img
Confirm all exist
Yep
Returned nothing
No errors
But no results either
@waxen osprey . So, if I reboot now and boot into my ssd... Will it boot
Ok
cp /mnt/etc/fstab /mnt/etc/fstab.backup
What does that do
pacstrap -K /mnt btrfs-progs nano networkmanager
Ohh btw did we ever do snapshots on this installation
I see
Yes, root and home
Done
genfstab -U /mnt >> /mnt/etc/fstab
Returned nothing
After that```arch-chroot /mnt
Yep
passwd
Set root password
systemctl enable NetworkManager
Enable this so we don't take any chances.
exit
umount -R /mnt
swapoff -a
reboot
Now what
Oh ok
HOOOOO
With an Arch Linux entry
I just copied and somewhat understood the concept
Ohh fk
It booted but
Ohh
Wait
Well you did a pretty advanced setup for your first time.
It's just taking centuries to boot
Rly?
Ohh no
Were those not the correct uuids
Unless I typed em wrong
I should've cross checked
Any way to unfuck it up now?
Cause like I know how to do it now and I can just scroll through this form to reinstall it
Yeah boot back into live environment
How do I reboot
Alt + Ctrl + Del or reboot
Wait live environments?
Like on the SSD?
Nah usb
Fresh reinstall?
do blkid
K
just cat it and send another one
Cat isn't working on etc fstab
Ohh
There's just nothing there
Istg I wrote the files
I'm not being gaslit by this software
cryptsetup luksOpen /dev/nvme0n1p2 cryptroot
mount -o subvol=/ /dev/mapper/cryptroot /mnt
```mkdir -p /mnt/home````
mount -o subvol=/@home /dev/mapper/cryptroot /mnt/home
mkdir -p /mnt/boot
mount /dev/nvme0n1p1 /mnt/boot
genfstab -U /mnt > /mnt/etc/fstab
Mnt home no such file or dir
mkdir?
Double check your typing
It's like 3am, u mind if we continue this tomorrow? At this pace we aren't gonna make much progress @waxen osprey
Don't mind at all
I'll see u tomorrow, gn. Hopefully it's done tomorrow
Yessir
Lemme send u a friend req
Yeah totally
Ty, gn
Gn bud