#/sbin/init not found...

656 messages · Page 1 of 1 (latest)

hexed isle
#

I have two disks: nvme0n1 and nvme1n1. I was planning on using Logical Volume Manager? 2 and someone else told be BTRFS was better, so I looked into it, and sure enough, it looked better for my use-case. I created the btrfs file systems for each partition pair (/nvme0n1p3 and /nvme1n1p3) and 4. Now, I am trying to get to the next step of installation, in which I mount my partitions / volumes and then install the necessary linux packages.

fringe vale
#

Hi, what setup are you trying to achieve? Do you want to put everything (/, /home) in one partition as subvolumes then use the 2nd partition just for storage or split them etc / in one partition and /home in the other partition? Are you also planning to use btrfs snapshots? Have a look in https://wiki.archlinux.org/title/Btrfs .

Within a btrfs partition, you can create subvolumes to put traditional Linux partitions (etc /, /home) https://wiki.archlinux.org/title/Btrfs#Subvolumes .

Usual setup on a single btrfs partition is to create subvolumes for / and /home so that you can snapshot / without including /home data. You usually mount the btrfs partition to /mnt then create subvolumes in /mnt etc btrfs su cr /mnt/@home && mkdir -p /mnt/home. You then umount /mnt and mount root subvol then other subvol with the folder path etc mount -o compress=zstd,subvol=@home /dev/nvme0n1p2 /mnt/home/. After mounting all subvolumes you would mount esp (mount --mkdir /dev/efi_system_partition /mnt/efi) then continue with your arch install.

By bindings do you mean mount options? See https://man.archlinux.org/man/btrfs.5#MOUNT_OPTIONS

ESP setup is independent of btrfs and is the same process for all filesystems (just need to mount esp and install bootloader to it in chroot).

Also in order to boot into a btrfs root subvolume, you need to use this kernel parameter rootflags=subvol=/path/to/subvolume (this step is commonly missed) https://wiki.archlinux.org/title/Btrfs#Mounting_subvolume_as_root

hexed isle
#

I don't really care about subvolumes or snapping unless they help me achieve making two partitions into one

#

also please ping me when you have a response so I know to check here

fringe vale
#

@hexed isle sorry I'm not familair with mutli-disk setups but I believe it should be pretty much the same process where you just treat the 2 disks as partitions (can mount / to a partition disk 1, /home to a partition disk 2). Grub/systemd-boot/uki can all boot into /boot in btrfs so you don't really need a separate /boot partition. Also on btrfs a swapfile is generally recommend to be used over a swap partition. If you're not planning to use subvolumes I think you just need mount the path without subvol etc mount -o compress=zstd /dev/nvme0n1p1 /mnt/home/. If you want to evenly split data across 2 disks (treat 2 disks as a single btrfs partition), have a look into raid 0 ( I'm not familiar with it) https://wiki.archlinux.org/title/Btrfs#Multi-device_file_system

hexed isle
#

how am i supposed to limit the RAM a swap file takes up?

fringe vale
#

you can use swap partition, swapfile is just more flexiable (can resize easier)

fringe vale
#

are you planning to use swap for hibernation? If you don't need hibernation you could try using zram instead if your ram is not too little

hexed isle
solid granite
#

to hibernate i think you have to use a swap partition

#

you set the kernel parameter resume=UUID=<UUID of swap partition>

#

Not sure what you mean by "bindings". If you mean what gets mounted where, that's managed in /etc/fstab.
You mount BTRFS partitions like any other filesystem. mount /dev/<partition> <mountpoint>; if you want to mount a specific subvolume on that partition, then you pass it as a mount option. You can use the subvolume ID, path, or both. example: mount /dev/<partition> <mountpoint> -o subvol=my-subvol (if the subvolume is called my-subvol)
The ESP has to be FAT32. There's no way around that.

#

@hexed isle

hexed isle
solid granite
#

ah, so a multi-device filesystem?

hexed isle
#

yes

#

thats what i am trying to achieve

#

i have 2 disks with 1 root, 1 home, and 1 swap partition each, and i want each root and home to be treated as one respectively

hexed isle
solid granite
#

Yeah, give me a moment, I'm lagging balls running out of ram building chromium on Gentoo 😂

#

I know how to do this

#

i'm assuming they are currently separate file systems

#

and you want to join them together

hexed isle
#

alright im gonna run lsblk

#

and send you exactly what i see

solid granite
#

alr

hexed isle
#

for the root and home points

solid granite
#

oh

#

okay so you should have a mult-device file system

#

if you do lsblk -f

#

you should see that both of those partitions have the same UUID

hexed isle
#

they do

solid granite
#

okay

hexed isle
#

they do have the same uuid

#

good?

solid granite
#

yeah

hexed isle
#

alright

solid granite
#

do you have that file system mounted anywhere

hexed isle
#

no

solid granite
#

can you mount it somewhere

#

so we can see what type of RAID it's doing

#

sudo btrfs device usage <mountpoint>

#

it should show info for both disks

#

for example, i have 2 500 GB hard drives in RAID0 (striping, no redundancy)

$ sudo btrfs device usage /media/hdd_root
/dev/sdb1, ID: 1
   Device size:           465.76GiB
   Device slack:              0.00B
   Data,RAID0/2:          444.75GiB
   Metadata,RAID10/2:      21.00GiB
   System,RAID10/2:         8.00MiB
   Unallocated:             1.00MiB

/dev/sdc1, ID: 2
   Device size:           465.76GiB
   Device slack:              0.00B
   Data,RAID0/2:          444.75GiB
   Metadata,RAID10/2:      21.00GiB
   System,RAID10/2:         8.00MiB
   Unallocated:             1.00MiB
#

the metadata and system info part of the filesystem is striped and mirrored but the data is only striped

#

if it's not already in the RAID mode that you want, you can change it

hexed isle
solid granite
#

no, mounting any of them mounts the whole file system

#

it will automatically figure it out

#

lsblk will only show one partition as being mounted to that mount point, but that is normal

$ lsblk -f
NAME    FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
...                                                                       
sdb                                                                            
└─sdb1  btrfs              df02f1c1-fe1d-4e2a-939d-4a8bfb4c9ed0   42.8G    94% /media/storage
                                                                               /media/hdd_root
sdc                                                                            
└─sdc1  btrfs              df02f1c1-fe1d-4e2a-939d-4a8bfb4c9ed0                
sdd                                                                            
...
hexed isle
#

ok good i mounted it and it showed both partitions

solid granite
#

okay

#

are you putting them together because you want redundancy, because you want speed, or because you just want one big block of storage instead of 2?

hexed isle
#

i just want them to function as one

#

2x the storage

solid granite
#

okay

hexed isle
#

1 TB is not enough

hexed isle
#

/dev/nvme0n1p3, ID: 1
Data,single: 8.00MiB

/dev/nvme1n1p3, ID: 2
(doesnt have the data thing at all)

everything else matches up with yours aside from the storage space differing from 440 something GiB to 600 GiB

#

man im so mad rn that was so counterintuitive i didnt know I had already done it for the most part

#

i thought there was a separate device kinda like when you use mdadm

solid granite
#
sudo btrfs balance start -dconvert=raid0 -mconvert=raid10 <mountpoint>

this will change your disks to RAID0 (striping, no redunancy, combined capacity, extra speed)
depending on how much data you have stored, it might take a while because this will reallocate everything

hexed isle
solid granite
#

it should be fast then

hexed isle
#

i dont wanna boot into arch until im 100% sure i got the core components done since i dont wanna fuck up

#

i learned my lesson after using archinstall that you should do things your way

solid granite
#

you can see if it's done with btrfs balance status <mountpoint>

hexed isle
#

are all mountpoints predefined?

#

what are all the mountpoints i know /mnt and /home are some

solid granite
#

wherever you mounted it

hexed isle
#

no i know but if i type in /mount /dev/nvme0n1p3 /regdufhiotgdfj it errors

solid granite
#

partitions are either manually mounted by you, or automatically mounted at boot at spots defined in /etc/fstab

hexed isle
#

ohhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

#

makes sense

solid granite
hexed isle
#

ok

solid granite
#

if you make that directory then it would work

hexed isle
#

that way it knows what to mount

solid granite
#

arch comes with a tool to generate it automatically based on what you have mounted manually during installation (genfstab)

#

that's part of the installation guide

hexed isle
#

i know

#

but how does it detect what my root is

solid granite
#

it sees what you have mounted at /mnt

hexed isle
#

my root is / and my home is /home, my efi is /boot

#

and my swap is /swap

solid granite
#

you don't mount swap

#

unless you mean /swap is a swapfile

hexed isle
#

well yeah i know

#

i have a swap partition cause i prefer it that way i used the mkswap

solid granite
#

yeah

#

if you did swapon then genfstab will see that swap partition and add it to the fstab for you as well

solid granite
#

it just makes it a bit safer in the event of disk damage

#

highly unlikely that it would ever save your ass, but it just writes metadata to both drives

#

you can do raid0 if you want, but it doesn't cost much space and should have no performance impact

hexed isle
#

😐

solid granite
hexed isle
#

what is dconvert and what is mconvert

solid granite
#

converting the data and metadata into the specified raid levels

#

see man btrfs balance

hexed isle
#

ALRIGHT IT WORKED

#

the Data thing is now on both

solid granite
#

cool

hexed isle
#

however it is set to 2GiB

#

which makes no sense

solid granite
#

that is the amount of data currently stored

#

i think

#

well it allocates space in advance

hexed isle
#

not like i give a shit about the extra 2GiB

solid granite
#

you will probably want to edit the fstab after generating it to enable things like automatic TRIM/DISCARD and/or compression

#

i use compress-force=zstd and discard=async

hexed isle
#

hold on im just removing this random ass artifact left behind by mdadm back when i was fiddling with that it will take me another 30 sec

#

ok so i dont know how i managed to do this

#

but nvme0n1p1 and nvme1n1p1 are both synced via raid

#

not btrfs

solid granite
#

you should disable that

hexed isle
#

ok so context i was working on trying to use lvm and was told btrfs was better so i switched to that and the arch wiki was weird and told me to made two separate esp parts and then make a volume out of them

solid granite
#

because that's likely to corrupt what btrfs is doing

hexed isle
#

do i just delete 1

solid granite
#

i'm surprised it hasn't broken it already lol

hexed isle
#

i dont need both

solid granite
#

i have no idea how mdadm works

hexed isle
solid granite
#

you only need 1 esp

hexed isle
#

the fact that this btrfs even works is awesome

#

alright im rebooting

solid granite
#

why

#

are you done with the installation?

hexed isle
#

uh idk it said something weird

solid granite
#

oh you're just restarting the iso

hexed isle
#

im not in it yet

solid granite
#

have you made subvolumes for root and home

hexed isle
#

i need to do that?

#

thats necessary?

solid granite
#

it's not required

#

however

#

if you ever want to mess with snapshots

#

you will want to have subvolumes

hexed isle
#

im still confused about the whole snapshot things

#

i have a basic idea of what they are

#

but i dont quite understand them

solid granite
#

so when you make a snapshot of a subvolume

#

you are just marking a point in time, and the data that existed then won't get deleted

#

there is a concept called Copy-on-Write

#

you make copies of things, but the actual data only exists in one place on your drives

#

you just have two pointers to it

hexed isle
#

yeah i've heard about that

solid granite
#

if you take a snapshot

#

and then delete files from what you took the snapshot of

#

or modify them

#

that data doesn't get deleted

#

it just gets marked as deleted in the subvolume

#

but still accessible through the snapshot

#

only once no subvolumes or snapshots reference a piece of data, does the data actually get deleted

hexed isle
#

could i do that later?

#

or does it HAVE to be now

solid granite
#

it's painful to do it later

#

but it can be done

hexed isle
#

when i make these subvolumes do these become new devices?

solid granite
#

no

#

subvolumes are kinda like folders

#

except it's possible to mount them like they're devices

#

with the subvol= mount option

#

but if you just mount the device by itself without a subvol parameter

#

you can see all the subvolumes on it as directories

#

and access them like directories

#

and subvols can be nested in other subvols just like directories

hexed isle
solid granite
#

yeah, so for example if you had subvolumes @ and @home for root and home, you would mount it like

mount /dev/nvme0n1p1 /mnt      -o subvol=@
mount /dev/nvme0n1p1 /mnt/home -o subvol=@home
#

but if you just did mount /dev/nvme0n1p1 /mnt and looked inside /mnt, you would see @ and @home as directories

#

the @ is just a common naming scheme for subvolumes, they can be named anything though

hexed isle
#

alright how do i create a subvolu,e

solid granite
#
mount /dev/nvme0n1p1 /mnt    # mount the root subvolume (meaning without a subvol= parameter)
cd /mnt
btrfs subvolume create @
btrfs subvolume create @home
hexed isle
solid granite
#

if it's already mounted then you can skip the mount

hexed isle
#

are swap partitions supposed to be fat32

#

or did i fuck something up

solid granite
#

swap partitions are just swap

#

your esp should be fat32

#

it's easy to fix if they're messed up

hexed isle
solid granite
#
$ lsblk -f
NAME    FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                            
├─sda1  vfat   FAT32       F586-E5F2                             255.7M     0% /efi
└─sda2  btrfs              277c70af-ffb7-437b-8e90-37d37dda1052    247G    71% /home
...
                                                                   
nvme0n1 swap   1           d3e204d3-0390-47e1-b563-5914a3a8d285                [SWAP]
#

sda1 is my esp and nvme0n1 is my swap

hexed isle
#

THATS WHAT IT LOOKS LIKE

solid granite
#

that is correct

solid granite
hexed isle
#

yes

#

💀

solid granite
#

could you post the output of lsblk -f

solid granite
hexed isle
#

yessir

#

i had to turn off the lights cause my screen was doxxing me

solid granite
#

okay

#

looks good

#

except

#

the mdadm raid thing going on with nvme0n1p1

hexed isle
solid granite
#

it needs to just be a regular fat32 partition

hexed isle
#

yep

#

i dont know how to destroy that

#

wipefs?

#

every restart that shit comes back bro

#

there is some metadata doing it

solid granite
#

you could try just mkfs.fat -f -F32 /dev/nvme0n1p1

#

this should forcibly overwrite whatever's in there

#

there may be a specific way you are supposed to uninitialize the raid thing

#

overwriting it might make the kernel mad

#

not sure

#

why do you have 2 btrfs partitions on each drive

#

i just noticed

hexed isle
#

lol

solid granite
#

oh

#

well

hexed isle
#

what

#

is that the wrong way?

solid granite
#

the way we've done the subvolumes

hexed isle
#

sigh if i need to make a correction just say

solid granite
#

root and home are on the 2 partitions you made into a multi-device fs

hexed isle
#

yeah

#

do i need to merge into one part?

#

i can do that with ease they dont have anything valuable on them

#

they arent even mounted rn

solid granite
#

yeah

hexed isle
#

ok

#

so ill just delete home and resize root?

solid granite
#

yeah

#

i'm assuming we've been working with p3 of each drive and that's what you're calling root

#

is that right

hexed isle
#

yes

solid granite
#

yeah so i would delete p4 of each drive and expand p3 into that space

hexed isle
#

ok so gdisk has a partition type called Linux x86-64 root (/) whats the deal with that

solid granite
#

do you have a gpt parition table

#

or mbr

hexed isle
#

for both p3s their partition names are / is that ok

#

can they both have that name

hexed isle
solid granite
#

the type should be "Linux filesystem"

hexed isle
#

done

#

alright let me check if everything is in order

#

deleting the p4 shouldve wiped the file system or?

solid granite
#

technically no, but that doesn't matter

#

you could recreate the partition at the exact same spot and you would see btrfs there again

#

but when you expand p3 into that space it doesn't make a difference

hexed isle
#

where exactly is all that data stored if not in partitions?

#

about the file system and such

solid granite
#

the filesystem is stored in the part of the disk specified in the partition table

#

partitions are just a way to divide the disk into parts of certain sizes

#

modifying the partition table to remove a partition just removes the record of that partition exisiting in the space

#

unless you actually write zeroes to that part of the disk then the filesystem will still be there

#

the actual partition table is a very small piece of data stored at the beginning (and i think also the end) of the disk

hexed isle
#

ok what the fuckemus is going on here

#

i just rebooted

#

and its stuck now

solid granite
#

what's stuck

hexed isle
#

the usb

solid granite
#

what does it say

hexed isle
#

hold on

#

NOOOOOOOOOOOOOOOOO

#

I THINK I CORRUPTED IT

solid granite
#

wha

#

how?

hexed isle
#

idfk

#

i rebooted and then unplugged it

#

put it back in

#

and now nothing is being detected as a boot option

#

and

#

its in the uefi menu

solid granite
#

it shouldn't be possible to corrupt it, nothing should write to the usb

#

turn pc off, replug usb, then turn on again

hexed isle
#

ok there what the hell happened there

solid granite
#

did it work?

hexed isle
#

yeah

#

that was weird

#

hasnt ever done that before

solid granite
#

sometimes it's just wacky like that

#

usb is finicky sometimes

#

same for UEFI

hexed isle
#

how do i check if btrfs is working again

#

so i mount the partition and then i run a command

#

@solid granite

solid granite
#

what are you wanting to check

#

oh just that it's not broken

hexed isle
#

yeah

#

yeah i wanna make sure the system is on the same page

solid granite
#

yeah mount it and check btrfs filesystem df /mnt

#

you should see total=xxx where xxx is the size of the partitions combined

#

if it's smaller than it should be, then the fs needs to be grown

solid granite
#

the first line is the command that i ran

#

you would just leave out sudo and do /mnt instead of /media/hdd_root

#

oh yeah that shows device size as well

hexed isle
#

ok what is device slack

#

cause it appears all that extra storage only went to slack

solid granite
#

ah alright

#

it means the file system needs to be grown

#

that's simple

hexed isle
#

ok

#

how do i do that

solid granite
hexed isle
#

no its ID:1 and ID:2

solid granite
#

ok

hexed isle
#

idk what ID 0 would mean

#

what does ID 0 even mean

solid granite
#

just checking

hexed isle
#

ok

solid granite
#
btrfs filesystem resize 1:max /mnt
btrfs filesystem resize 2:max /mnt
hexed isle
#

ok

#

done

#

looks good

solid granite
#

if the disks contained any data then it would be wise to do a btrfs balance start /mnt but since they're empty i don't think it's needed

hexed isle
#

theyre empty yeah

#

i havent done any pacstrappin yey

#

yet

solid granite
#

okay

#

is your esp fixed?

hexed isle
#

yes

solid granite
#

nice

hexed isle
#

created + mounted subvols

solid granite
#

@ is at /mnt and @home is at /mnt/home?

hexed isle
#

it said /mnt/home isnt valid

#

so i did /home

#

cause thats valid

#

it said

solid granite
#

that won't work

hexed isle
#

ok

#

why do i need to change

solid granite
#

you need to umount /home

hexed isle
#

and then?

solid granite
#

it probably failed because the directory you're trying to mount it to doesn't exist

hexed isle
#

it did

solid granite
#

so you need to mkdir /mnt/home

solid granite
hexed isle
#

alright done

solid granite
#

okay

#

also don't forget

#
mkdir /mnt/boot
mount /dev/nvme0n1p1 /mnt/boot

i think that was the esp partition

#

and swapon both of your swap partitions

hexed isle
#

i did

#

and now

#

im having another problem yaaayyyyyyyyyy

#

pactrap isnt working

#

some bullshit about my kingring

#

keyring

#

keyring is not writable

solid granite
#

try

pacman-key --init
pacman-key --populate
pacman -Sy archlinux-keyring
#

there are sometimes issues with the keyring if the iso is out of date

hexed isle
#

Trust database could not be updated

hexed isle
#

archlinux-2023.08.01-x86_64.iso

#

as recent as 9 days ago

solid granite
#

not sure

#

oh yeah, do you have internet?

#

in the iso

hexed isle
#

of course

#

i do

solid granite
#

had to ask

hexed isle
#

ok so i need to unmount everything before rebooting or can i just

#

skip that

solid granite
#

you can just type reboot

#

it will handle that for you

hexed isle
#

silly arch

#

mount /dev/nvme0n1p1 /mnt -o subvol=@
mount /dev/nvme0n1p1 /mnt/home -o subvol=@home

solid granite
#

that should be p3 right?

hexed isle
#

yes

#

im just pasting it down here so i can remount everything

#

im manually typing everything over

solid granite
#

you can make code blocks
```
like this
```

like this
hexed isle
#

ik

#

keyring still tripping @solid granite

solid granite
#

i have no idea what's up with that

hexed isle
#

pacman-key --init worked this time

sturdy parrot
#

keyring fixed?

hexed isle
#

ok so

#

my keyring was having problems

#

and i think that was what happened when i tried archinstall before going manual

#

ok so uh

#

whats up with this

#

i arch-chrooted in

solid granite
#

so did you fix the keyring and do the pacstrap?

hexed isle
#

i did the locale-gen but locale.conf doesnt exist

sturdy parrot
#

edit /etc/locale.gen and uncomment the local

hexed isle
#

successful

#

what text editors do i even have...

sturdy parrot
#

whatever you installed

hexed isle
#

what comes with the base

sturdy parrot
#

you can just pacman -S nano

#

nothing afaik

#

do you know vim?

#

if not just get nano

hexed isle
#

OH THANK GOD ITS NOT DOING THAT CHROOT SHIT OMG

#

"RUNNING IN CHROOT" IT USED TO DO THAT

sturdy parrot
#

then locale-gen

#

also you should link your timezone ln -sf /usr/share/zoneinfo/<Region>/<State>/<City> /etc/localtime you can tab through to complete and find yours

#
echo LANG=en_US.UTF-8 > /etc/locale.conf
export LANG=en_US.UTF-8
hexed isle
#

OH RIGHT SO ABOUT MY BOOTLOADER

#

do i use grub or systemd

#

which one is better for this

sturdy parrot
#

preference imo, but I prefer systemd boot. however I never used BTRFS

hexed isle
sturdy parrot
#

no

#

systemd boot is not systemd

hexed isle
#

oh

sturdy parrot
#

however it's there already and you don't need to install anything extra

hexed isle
#

how do i install systemd and systemd boot on my arch installation

hexed isle
sturdy parrot
#

well the difference is that grub is more automatic and abstracted, systemd you got to manually edit some files

#

machine-info I believe won't work in chroot, I think only on the archiso before you chroot

hexed isle
#

not working there either weird

sturdy parrot
#

maybe they mean etc/machine-info that you can cat?

#

although I don't have it locally

#

just swap nvim with nano

hexed isle
#

ok

sturdy parrot
#

this is while chrooted in

#

also replace /dev/sda3 with your root partition

#

can check the sections above too if you want

#

to double check what you done so far that's not btrfs related

sturdy parrot
#

Whatever you are putting root on

#

Basically whatever /mnt was mounted to

#

Root is the base of your linux

#

All your system shit

#

In my guide /dev/sda3 was the root partition

#

It's not the case for me now, but I wrote that a few years ago

#

My son broke that laptop

#

As in broke the hardware

#

Hes 5 yo

hexed isle
sturdy parrot
#

Yeah he's great

#

He wants to be like me

#

Anytime I go to the bathroom, he rushes to get my tools and take stuff apart

hexed isle
#

ong?

#

he steals your PC parts?

sturdy parrot
#

Not just PC parts

#

He has most of my electronic components hid somewhere

#

I need to find them

#

Relays and capacitors

#

Etc

#

he even stole one of my multimeters

#

I have no idea where he is hiding my stuff

#

most I got out of him is a 9v battery pig tail

#

everytime I go out of the room he is taking my electronics

#

I got a few arduinos and esp32s but not enough parts to build stuff anymore

#

one time he had access to a playstation and I wouldn't give him my psn password

#

next think I know, he has a browser up on the playstation about cracking password hashes

#

he's only 5 years old

#

I know he can't crack it but the fact that he was trying is impressive

hexed isle
#

part uuid of which thing exactly @sturdy parrot

#

if we're remaking the file at the bottom wahts the point of all the top steps

#

i really respect your guide btw

sturdy parrot
#

PARTUUID of your root partition, it's easy to append it to the file first and build the file around it than getting it and writing it down, then building the file

sturdy parrot
outer finchBOT
#

phallguy received a thank you cookie!

sturdy parrot
#

@hexed isle pushed the edit

hexed isle
outer finchBOT
#

yenaras received a thank you cookie!

sturdy parrot
#

anytime

hexed isle
#
mount /dev/nvme0n1p1 /mnt    # mount the root subvolume (meaning without a subvol= parameter)
cd /mnt
btrfs subvolume create @
btrfs subvolume create @home

mount /dev/nvme0n1p1 /mnt      -o subvol=@
mount /dev/nvme0n1p1 /mnt/home -o subvol=@home

mkdir /mnt/boot
mount /dev/nvme0n1p1 /mnt/boot
#

@sturdy parrot do i need to be in the root file system for this to work? do i need a package for touch to work? it says it cannot touch the arch.conf file since it doesnt exist (im in my bootable media usb)

hexed isle
#

what is the partition hash

sturdy parrot
hexed isle
#

cause everytime i reboot i have to do that

#

no i already did everything up until thsi point in your guide and 90% of my arch system is installed

#

this is the last step

#

i just dont know what the hash is or how to obtain that

sturdy parrot
#

touch should be a base command, what all did you pacstrap

#

bootctl install should make the directories in your boot

hexed isle
sturdy parrot
#

Basically you want the PARTIUID of your root partition

hexed isle
#

i did

#

this is the part i havent done

sturdy parrot
#

That's the number you get with yhe command

#

I'll show you mine

#

can you show me lsblk -f

hexed isle
#

i see

#

i replaced the text that said PARTUUID with the uuid itself

sturdy parrot
#

yes

hexed isle
#

the hash is supposed to be replaced with partuuid ohhhh....

sturdy parrot
#

and make sure you have a space and rw after

hexed isle
#

what is this stuff do i need it

sturdy parrot
#

no you don't need it

#

it's just some kernel parameters I set

#

you can look into them in the wiki if you like

#

sysrq=1 is good to have, it allows you to reboot safely with a special key sequence if you get in trouble

#

<alt>+<sysrq>+REISUB (reboot even if system utterly broken)

hexed isle
#

how do you keep partitions mounted after rebooting

sturdy parrot
#

don't reboot now

hexed isle
#

i know

sturdy parrot
#

once it's installed, your fstab will handle that

hexed isle
#

oh right i havent done fstab yet

sturdy parrot
#

/etc/fstab defines what mounts on boot

#

did you do genfstab -U /mnt > /mnt/etc/fstab before you chrooted?

#

anyway the fstab won't be loaded from the live usb, only on your hardware when you are done

sturdy parrot
#

you have to exit chroot to run that cmd

hexed isle
#

i did

sturdy parrot
#

kk

hexed isle
#

thank you so much for your help btw

sturdy parrot
#

np

hexed isle
#

oh wow

#

the fstab looks good

sturdy parrot
#

I can help more in like an hour when my son goes to bed if needed

hexed isle
# sturdy parrot

are those tabs or spaces? can i just have a normal space between each key and value?

sturdy parrot
#

You can use tab or any number of space, I just like them lined up

hexed isle
#

these two packages return error: target not found

sturdy parrot
#

It's an old guide, I need to make a new one

#

I'm not even on Wayland anymore

#

And my son broke that laptop

#

I'm on xorg i3 on my desktop

#

I don't recommend you start with sway and Wayland anyway

#

pavucontrols should work though

#

But I would use pipewire over pulse audio

#

Maybe do KDE or Gnome or XFCE for your desktop, follow the arch wiki for this bit

#

Maybe tonight I'll write a guide for my current setup

sturdy parrot
#

Oh typo on my end for pavucontrol

#

And rhe other one should be xorg-xwayland, but I don't recommend Wayland unless you are really experienced with Linux and want to test it's readiness. It's still in it's infancy

hexed isle
#

Manual arch install

#

lsblk returns a different uuid than findmnt -fn -o PARTUUID /dev/<root-partition>

sturdy parrot
#

yeah but use the one from findmnt

#

lsblk -f shows UUID which is different than PARTUUID

#

check blkid | grep /dev/<root-partition>

#

you can see both that way too

#

you could specify with the UUID but PARTUUID is less likely to change

hexed isle
sturdy parrot
#

when you used UUID?

#

or PARTUUID

#

because you need to make the key the name of what you use

#

UUID or PARTUUID

#

also check your fstab

#

if there are double entries on your fstab, you will get errors like that

hexed isle
#

well because im using btrfs i was thinking uuid would be better

sturdy parrot
#

maybe

#

idk anything about btrfs

hexed isle
#

ok i used the uuid

#

i just changed the key to UUID

#

error: root device mounted successfully, but /sbin/init does not exist

#

@sturdy parrot

sturdy parrot
#

chroot in from live usb and run mkinitcpio -P

hexed isle
#

understood sir

#

i thought i didnt need to do that because the wiki said it was already ran upon installing the packages

#

but ill do it now

sturdy parrot
#

sometimes it's necessary to do it again

#

not sure what happened in your case

#

I have to run it every time I update the kernel and nvidia drivers, using a pacman hook

#

I guess I don't manually run it, the nvidia.hook does it for me lol

#

good thing to do on a fresh install while chrooted in is to run pacman -Syyuu

#

or if you make it to live system, either or

sturdy parrot
#

do you have an nvidia gpu?

hexed isle
#

yes

sturdy parrot
#

sudo pacman -S nvidia nvidia-utils

#

in that case you should also use the pacman hook

hexed isle
#

sbin/init still doesnt exist unfortunately

#

@sturdy parrot

sturdy parrot
#

wth

#

add this to your arch.conf init=/lib/systemd/systemd

#

after your UUID and before rw

#

nvm that's an old answer on stackexchange

#

does it say this? ```
/dev/sda2: clean, 59309/14622720 files
ERROR: Root device mounted successfully, but /sbin/init does not exist.
Bailing out, you are on your own. Good luck.

sh: can't access tty: job control turned off
[rootfs ]#

sturdy parrot
#

I think you should start over

#

something didn't install properly

hexed isle
#

please man

sturdy parrot
#

/sbin/init is a link to /lib/systemd/systemd

#

even if you link that, I think something else will be broken

#

did you pacstrap base?

hexed isle
#

i did

sturdy parrot
#

maybe just pacstrap it again

hexed isle
#

WIAT

sturdy parrot
#

and base-devel

hexed isle
#

DO I NEED TO PUT MY MOUNT POINT IS A PARAMETER TO PACSTRAP

sturdy parrot
#

yes

#

well

#

you need to put /mnt

#

pacstrap /mnt base base-devel linux linux-firmware just try that again

#

it shouldn't hurt anything

#

with everything mounted of course

#

To be fair you aren't that far in tbh, restarting and taking notes is what I did starting out years ago

#

And why do you want btrfs

#

Even though that's not your issue, I'm just curious

#

Is it a RAID volume?

hexed isle
sturdy parrot
#

oh i see

hexed isle
#

everything works fine its just this one init file or whatever

sturdy parrot
#

actually go ahead and mount how you normally do and then show me lsblk

#

from archiso

#

ping me when cuz I'm working on an app

hexed isle
#

alright

sturdy parrot
#

what really helped me when starting with arch linux and learning linux in general, I had arch already set up on my desktop but you can have anything and do this. I was installing it to my laptop and would ssh to the laptop for set up. I messed up a lot of things. So I would write github markdown files documenting the process. Thus the guide I shared you. I feel like documenting your process is an important thing that we overlook and skip a lot in tech but it helps so much. I should document more now, but I'm telling you it helps a lot if you document stuff yourself while you are doing it

hexed isle
#

this is kind of a makeshift documenting place

sturdy parrot
#

yeah but it can get lost quick later

#

you should document stuff on your own somehow

#

even write stuff down on paper at first

#

I found md files are great for documenting stuff

#

especially atm I'm building an industrial maintenance work order system, and I plan to build a wiki for certain tasks

hexed isle
#

@sturdy parrot ok master chief heres the lsblk -fa

hexed isle
#

the reason im using uuid instead of partuuid is because i thought there may be a compatibility problem with the btrfs file system and i dont think the uuid would change for that anyway

hexed isle
#

/boot/loader/entries/arch.conf

sturdy parrot
#

You mounted /mnt and /mnt/home on the same partition. Did you want a separate home partition? If not then you just mount /mnt and not /mnt/home

#

And if you want home on a separate partition, you'll have to make a new partition

#

Maybe it's a btrfs subvolume thing?

solid granite
#

it is

hexed isle
#

look man i just need to figure out whats up with this sbin init shit

#

if i could find that everything would be smooth sailing

hexed isle
#

/sbin/init not found...

sturdy parrot
#

it's something to do with your mount point for root when you pacstrapped the system.

sturdy parrot
#

oh actually try adding rootflags=subvol=@ to your options in /boot/loader/entries/arch.conf

#

seems some extra steps are needed for btrfs setup

#

your default subvolume needs to be @ and not @home

sturdy parrot
#

@hexed isle did you get it sorted out?

hexed isle
#

very sorry about all of this i wouldve been done 3 days ago if it wasnt for this wack config

sturdy parrot
#

all good, btrfs seems like an extra learning curve lol

hexed isle
#

my use of it that is

#

mirroring would probably be easier than this

hexed isle
hexed isle
#

you found

hexed isle
#

@sturdy parrot AYYYYYY

#

BRO LETS GO

#

YOURE THE MAN

#

THANK YOU SIR