#systemd to grub

74 messages · Page 1 of 1 (latest)

patent harness
#

Can someone help me change from systemd-boot to grub, I want to have the option to boot. Into windows or arch when I launch and last time I tried this thing I bricked my is and had to reinstall arch

novel schooner
#

sorry why are u moving to grub exactly?

patent harness
#

so when i boot i can choose linux or windows

#

unless i can do that with systemd

novel schooner
#

u should be able to boot windows with systemdboot using the efi chainloader

patent harness
#

can i do that if windows is on a whole seperate drive

novel schooner
#

if windows is on another drive its harder on systemd boot than in grub cause u need to change the systemdboot root fs but it can be achieved

#

anyways its a lot easier in grub

#

i would recommend u to use grub but not only for this, just because it is more complete than systemdboot

patent harness
#

how hard is it to change over

novel schooner
#

how many entries do u have in systemd boot

#

?

patent harness
#

is there a way to check

#

3 when i boot i think

#

just rach and then another arch but compatability mode or smtn

#

idk i only use the first one

novel schooner
#

yes the second one is the fallback boot i think

#

then it is not that hard to move to grub

patent harness
#

yes it is fallback

novel schooner
#

it is as simple as: getting any linux live iso with the necessary tools, completely nuke ur boot partition, install grub in it and create the config

patent harness
#

so id loose all my stuff?

novel schooner
#

no, if u are using uefi the partition u use to boot is different from the one u save ur files

#

are u experienced on linux and these things?

patent harness
#

not particularly

#

oh yes looking at kde partition manager i see there is a third partition called boot lmao

#

just couldnt see it in my file manager

novel schooner
#

ok no problem, so nuking ur efi system partition just deletes the kernels initramfs and that things

#

we can also delete just the necessary things for it to be easier to u

novel schooner
#

unless u changed it

patent harness
novel schooner
#

ok so do u want to move to grub then?

patent harness
#

yessir

#

i dont think ive installed many kernel modules so i shouldnt have to reinstall much later

novel schooner
#

the kernel modules are saved in ur root filesystem

#

not the efi partition

patent harness
#

oh so im good anyway

#

sick

novel schooner
#

in the efi partition just the kernel is normally saved

patent harness
#

aight

novel schooner
#

so are u using arch or other distro?

patent harness
#

arch

novel schooner
#

ok send please the following commands

#

lsblk

#

ls -l /boot

patent harness
# novel schooner lsblk
loop1         7:1    0  74.2M  1 loop /var/lib/snapd/snap/core22/1380
loop2         7:2    0    88K  1 loop /var/lib/snapd/snap/fusion360/33
loop3         7:3    0 505.1M  1 loop /var/lib/snapd/snap/gnome-42-2204/176
loop4         7:4    0  91.7M  1 loop /var/lib/snapd/snap/gtk-common-themes/1535
loop5         7:5    0  38.8M  1 loop /var/lib/snapd/snap/snapd/21759
loop6         7:6    0   420M  1 loop /var/lib/snapd/snap/wine-platform-9-devel-core22/20
loop7         7:7    0 420.6M  1 loop /var/lib/snapd/snap/wine-platform-9-devel-core22/21
loop8         7:8    0 546.6M  1 loop /var/lib/snapd/snap/wine-platform-runtime-core22/73
loop9         7:9    0 543.8M  1 loop /var/lib/snapd/snap/wine-platform-runtime-core22/71
zram0       254:0    0     4G  0 disk [SWAP]
nvme0n1     259:0    0 931.5G  0 disk 
├─nvme0n1p1 259:1    0     1G  0 part /boot
├─nvme0n1p2 259:2    0  49.3G  0 part /
└─nvme0n1p3 259:3    0 881.2G  0 part /home```
patent harness
# novel schooner ls -l /boot
-rwxr-xr-x 1 root root    81920 Jul  9 22:35 amd-ucode.img
drwxr-xr-x 5 root root     4096 Jun 10 19:40 EFI
-rwxr-xr-x 1 root root 35780551 Aug  8 16:08 initramfs-linux-fallback.img
-rwxr-xr-x 1 root root  9092727 Aug  8 16:08 initramfs-linux.img
drwxr-xr-x 3 root root     4096 Aug 20 15:24 loader
drwxr-xr-x 2 root root     4096 Jul  2 00:56 syslinux
-rwxr-xr-x 1 root root 13402624 Aug  8 16:08 vmlinuz-linux```
novel schooner
#

why do u have syslinux?

#

are u on uefi right?

patent harness
#

idk why i would have that 🤷‍♂️

novel schooner
#

idk

#

so before all send ur systemd entries to have the reference if something goes wrong

patent harness
#

this one?

#
        title: Arch Linux (linux) (default) (selected)
           id: 2024-06-10_11-38-55_linux.conf
       source: /boot//loader/entries/2024-06-10_11-38-55_linux.conf
        linux: /boot//vmlinuz-linux
       initrd: /boot//initramfs-linux.img
      options: root=PARTUUID=2393e973-3e95-4883-94a5-ec5f3d442b81 zswap.enabled=0 rw rootfstype=ext4

         type: Boot Loader Specification Type #1 (.conf)
        title: Arch Linux (linux-fallback)
           id: 2024-06-10_11-38-55_linux-fallback.conf
       source: /boot//loader/entries/2024-06-10_11-38-55_linux-fallback.conf
        linux: /boot//vmlinuz-linux
       initrd: /boot//initramfs-linux-fallback.img
      options: root=PARTUUID=2393e973-3e95-4883-94a5-ec5f3d442b81 zswap.enabled=0 rw rootfstype=ext4

         type: Automatic
        title: Reboot Into Firmware Interface
           id: auto-reboot-to-firmware-setup
       source: /sys/firmware/efi/efivars/LoaderEntries-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f```
novel schooner
#

ye ok valid

novel schooner
#

the rest can all be deleted

#

cause they are directories containing the systemd boot files

light flame
#

he can just delete everything on the /boot

#

i don't remember if uninstalling bootctl does that too

novel schooner
#

yes but then we avoid reinstalling kernels and initramfs later

#

he does not know much about these things so i thought it would be better like this

light flame
#

no better time to learn than now dogekek

wild condor
#

Unless you don't use any software lol

novel schooner
#

honestly it isnt that bad

#

he has a /home with 800gb

#

most of the files are saved inside /home

wild condor
#

I have 16gb of installed packages and I've been using Linux for like 6 months

novel schooner
#

how many packages do u have

#

installed

#

anyways if u have 16gb used, to 50 theres a lot of space

neon quest
#

Shouldn't we bring the convo back to systend to grub?