this post was submitted on 16 Aug 2024
22 points (92.3% liked)

Linux

8126 readers
14 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
 

Right now I'm stuck in a boot issue on Elementary OS and I have no access to any installation medium :(

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

I’d suggest burning an ISO of Linux (really just about any live Linux) and familiarizing yourself with concepts like mounting filesystems, partitioning, GRUB/U-Boot and the like.

I’d recommend trying the following in this order (easy to most difficult):

  1. Scan your boot device’s (hard drive) filesystems for errors with fsck and repair any errors it finds. If errors were found, reboot and see if the problem has gone away.
  2. Check the boot device’s /boot partition. You’re going to be using any combination of fdisk, parted, lsblkid to figure out which partition is /boot, mount its filesystem, then move on to harder stuff.
  3. “Harder stuff” is going to be finding out if the kernel is botched, and praying that an older one is available and figuring out how to boot from it. If there isn’t an older one, there’s a chance you can search for packages from your distro that include the kernel — I’d try to find an exact filename match and copy it over the existing one but maybe only after backing it up first.

This is where GRUB knowledge comes in handy and unfortunately where my advice ends, because personally I’m inexperienced in this area.

Another option which might be a lot easier (if you know what you’re doing) is reinstalling the OS completely after backing up everything.

Or, if you’re lucky your /home directory was created in its own filesystem in its own partition. Provided you set that up again without destructively destroying/partitioning it while installing the OS again you could very easily get a clean install with all your user-level apps’ preferences, downloads, etc. preserved.

Edit: Taking a look at your GitHub screenshot, my guess is that the three Linux-related lines on the boot screen are different kernel versions. It makes me think there was a botched update to your /boot partition (just because the names are exactly the same) though I could be wrong there.

It’s strange you have a Windows boot option if you don’t have Windows, but it would make sense if the Windows bootloader was there when elementaryOS was installed and the drive hadn’t been completely wiped beforehand.

[–] Azzu@lemm.ee 1 points 3 months ago (1 children)

I used the "wipe everything" option when installing elementary. Thanks for your help, but that was my initial problem, I am traveling and don't know how to get a bootable medium here, at home I used my other PC to create it :/

[–] undefined@links.hackliberty.org 1 points 3 months ago (1 children)

I’d look at trying to get into the GRUB shell, assuming that the screen is indeed GRUB. From what I can find online it would be the C key. Are you familiar with CLI commands? It seems like it’s pretty full-featured.

[–] Azzu@lemm.ee 1 points 3 months ago (1 children)

It seems like this is the BIOS boot menu, not grub. Doesn't even seem to get to grub.

[–] undefined@links.hackliberty.org 1 points 3 months ago* (last edited 3 months ago) (1 children)

I’m kind of wishing I understood UEFI better, but I mainly run Linux on arm64 devices. Are you sure that’s the BIOS/UEFI? To me it seems strange that it would be smart enough to know about the different OSes but I’m probably wrong. 😞 It looks like a customized GRUB to me.

[–] Azzu@lemm.ee 2 points 3 months ago* (last edited 3 months ago) (1 children)

Yeah it's some kind of Lenovo thing. Went to a repair shop they changed the HDD because the old one was apparently dead and installed Windows because they don't have anything else. I haven't even used Windows ever.

[–] undefined@links.hackliberty.org 1 points 3 months ago (1 children)

Does Windows boot? I know it’s not ideal but since you’re unable to boot into a Linux ISO you could consider running the filesystems checks from Windows. I’ve never done something like that but I know tools like Paragon exist. I’m not sure if WSL would be capable of checking them, but that could be another option (I haven’t used Windows in years).

[–] Azzu@lemm.ee 2 points 3 months ago (1 children)

Thanks for all the help, really appreciate it. Took it to a repair shop and they replaced the HDD, old one was broken, and installed Windows on it.

[–] undefined@links.hackliberty.org 1 points 3 months ago

Ohh, gotcha. You’re welcome!!