#[SOLVED] Issues Migrating to BTRFS Subvolumes

95 messages · Page 1 of 1 (latest)

forest thunder
#

hi i have btrfs filesystem brcause i wanted to make snapshots of my system files im case updates break things and i can do quick rollbacks.

im im the process of moving most things from / to /@ , and from /home to /@home (so two new subvolumes). this is because i want separate snapshots of these

  • i make subvols
  • i copy all appropriate files from / to /@
  • copy all files from /home to /@home
  • i edit my /etc/fstab to have these new mounts.
  • with / mounting /@ after fstab edit and reboot , i reinstalled grub in my EFI partition hoping that it uses my /@boot/grub/grub.cfg
  • i make new boot entry for new grub and remove old one
  • i set as priority in uefi settings and it boot
  • but i get this error
#

here is fstab:

#

here is /etc/default/grub:

fierce socket
#

can you show me the contents of

ls -l /mnt/boot

outside of chroot

forest thunder
#

and here is where my grub is grabbing its cfg i think

#

also my kernel is old , but i wanted to not update until i made a snapshot of it working

fierce socket
#

ls -lh sorry

#

-h human readable

forest thunder
fierce socket
#

soo unrelated but mounting your esp to /boot/efi is not recommended

i would recommend regenerating those images with a:

pacman -S linux

while in:

arch-chroot /mnt

forest thunder
fierce socket
#

move /boot/efi/EFI to /boot
remount esp to /boot
regen fstab

and then regenerate your kernel images

and give /etc/fstab a sanity check afterwards

#

remove the /boot/efi directory as well after moving EFI out of it

forest thunder
#

when i regenerate my kernel images after mounting esp to /boot , will it make them inside the esp partition ?

fierce socket
#

kernel images are always generated in /boot regardless of where your esp partition is

#

also for the fstab use uuids exclusively instead of manually specifying partitions

#

genfstab -U

forest thunder
fierce socket
#

did it get mounted? lsblk -f

forest thunder
#

yeah

fierce socket
#

idk what u did but it got nuked

#

unmount that

forest thunder
# forest thunder

i just did this , moved EFI to /mnt/boot before mounting esp onto it

#

unmounted esp from /boot/efi

#

then mounted to /boot which had EFI moved there

fierce socket
# fierce socket

arch-chroot /mnt
grub-install --efi-directory=/boot
pacman -S linux amd-ucode
grub-mkconfig -o /boot/grub/grub.cfg
genfstab -U / > /etc/fstab

fierce socket
#

esp is not that important

forest thunder
#

okiedokie

fierce socket
#

run grub-mkconfig after reinstalling the microcode and kernel

#

i edited it

forest thunder
#

alright

#

had to exit chroot for a sec to use genfstab

fierce socket
#

it's included in the arch-install-scripts package

#

by the way

forest thunder
#

i see

fierce socket
#

for sanity check:

ls -lh /boot
cat /etc/fstab

#

oh and:

efibootmgr

#

to see if grub is in there

fierce socket
forest thunder
fierce socket
#

kay

#

do the sanity checks

fierce socket
#

lgtm

#

reboot and see

forest thunder
#

arch is 0003

fierce socket
#

yop yop

forest thunder
#

alrighty

#

also i got this while updating

#

missing kernel header for nvidia

#

it just booted into my windows instead :/ gonna enter uefi settings

fierce socket
#

3 was first to boot though

forest thunder
fierce socket
#

which uefi?

forest thunder
#

in the setting it shows arch after windows for BBS priority

fierce socket
#

i mean mobo

forest thunder
#

uhhhh i forgot the name i think it was called something like asrock pro 5 or something

fierce socket
#

msi is funky

forest thunder
#

last time i couldnt find this setting for "uefi hard disk bbs priorities" and just kept lookimg in "boot priorities"

#

and couldnt boot from grub for a ehile

#

anyways rebooting

fierce socket
#

worked?

forest thunder
#

seems like it worked

fierce socket
#

... solved

sly ledgeBOT
#

#9742 📣 If there is nothing else that we can do for you, please close this thread by adding "[SOLVED]" to the title.

  • You can do this on desktop by clicking the three dots on the top right of the page, and pressing "Edit Post".
  • You can also do this on Android / iOS by long tapping your post in the text channel list, and tapping "Edit Post".

Your title should be like so: https://cdn.discordapp.com/attachments/503224329191030787/1039841700417384498/image.png
Thank you

fierce socket
#

do this then

forest thunder
#

[SOLVED] Issues Migrating to BTRFS Subvolumes

#

how u so pro

fierce socket
forest thunder
#

uh now i need to fix nvidia stuff lol

fierce socket
#

then rebuild the kernel

#

pacman -S linux

#

reboot after

forest thunder
#

alrighty loading

#

i hope to one day attain your skill levels