29

Hi all,

I'm having a bad day and did something colossally stupid, deleting everything from /boot/.

The system is still running. What do you think my best course of action is?

My current idea is to create a timeshift backup, reinstall debian from USB, then restore from backup in timeshift

If this won't work or you have a better idea I would really appreciate your advice.

Thanks in advance

you are viewing a single comment's thread
view the rest of the comments
[-] Negligent_Embassy@links.hackliberty.org 2 points 3 months ago* (last edited 3 months ago)

Ok thanks again for all the help.

  1. I used aptitude to reinstall the kernel, L, g, g

  2. Ran Grub-install /dev/nvme1n1

  3. Ran update-grub

  4. I installed grub-emu to test and am greeted with this error

https://dump.li/image/get/16c4f87164d630a5.png

Brand new to this tool so apologies if I'm interpreting it wrong.

Still waiting on data to backup but I'm scared to reboot now. Any thoughts?

The boot drive has LUKS FDE if that could be what's confusing it

[-] pastermil@sh.itjust.works 3 points 3 months ago

Not sure if this is a good way to test as it cannot seem to recognize even the most basic command like linux & initrd.

If I were you, I'd just restart, with a liveUSB ready in case it turns out to be unbootable.

Perhaps just a bit to make sure before rebooting:

  • you can see the linux kernel you just installed in the /boot directory
  • /boot/grub/ directory exist
  • you're using the correct grub-install command, depending on whether you're using legacy BIOS or UEFI

Just rebooted and it worked flawlessly!!

You are fucking awesome thank you again. Really made my weekend.

[-] pastermil@sh.itjust.works 2 points 3 months ago

Glad to hear that! You're welcome!

this post was submitted on 08 Aug 2024
29 points (100.0% liked)

Linux

8118 readers
58 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 1 year ago
MODERATORS