Basically I tried to uninstall an old version of the linux kernel, I had like 5 versions installed because it was taking up too much space on my /boot partition and now my PC is bricked, this is what it displays when i try to boot it

  • ksynwa
    link
    fedilink
    arrow-up
    2
    ·
    3 years ago

    Oh yeah in that case you will have to mount your boot partition to /mnt/boot before chrooting into /mnt. After that I don’t know how to fix the package in apt (sorry). You can try force reinstalling the package that provides the kernel. Maybe it will regenrate the initramfs.

    You shouldn’t manually delete files in /boot.

    • asdflkjasdfOP
      link
      fedilink
      arrow-up
      2
      ·
      3 years ago

      Oh, so I have to umount and mount again mounting first on /mnt/boot and then try to fix it?

      • onoffled
        link
        fedilink
        arrow-up
        1
        ·
        3 years ago

        This might be a bit off-topic for this comment thread, but is reinstalling everything an option ? If you have a backup of your data, this might get you up and running quicker. If you don’t have a backup, you could plug in another drive and copy files using the live media.

        • asdflkjasdfOP
          link
          fedilink
          arrow-up
          1
          ·
          3 years ago

          Yes, but it would imply having to move almost 1TB of files, plus having to reconfigure all my system after reinstalling, which will also take quite a lot and I get to learn a bit from here even though I’m so fucking stressed right now.