Skip to content

Accidentally removed systemd bootloader

First off, I'm an idiot. I was deleting a USB drive for something, and then realised (when gparted told me it couldn't unmount my main drive because it was in use) that I hadn't looked at the drive correctly and I'd removed the boot loader of my install (you should've heard the swearing).

Does anyone have a simple to follow bootloader repair guide please.

Cheers

12 points17 comments
Open on Reddit
About this post
Posted
Archived
Score
12 · 93% up
Kind
Text
ID
175tp95

Author

27
posts
113
comments
22
media
View profile

16 comments

just boot from live cd and reinstall bootloader following arch wiki

28 points

The amount of things you can do with a live cd is enormous. I've realized it a bit late.

13 points
  1. Boot from the USB drive and open the installation guide
  2. Skip the steps about creating the partition table and your root filesystem, but re-create your EFI System filesystem (mkfs.fat /dev/whatever)
  3. Mount the filesystems (both root and EFI system!) as in the guide
  4. arch-chroot /mnt
  5. Run pacman -S linux
  6. Run bootctl install
  7. Re-create the bootloader config file, check the systemd-boot wiki page for info
  8. Exit chroot, unmount and reboot!
15 points

Wouldn't mkinitcpio work as opposed to reinstalling Linux entirely? Or is everything stored in the EFI filesystem?

1 points

All sorted now. Thank you to anyone who left advice.

Cheers.

4 points

Windows: I'd like to uninstall the edge browser that I don't use. NO IT MIGHT DAMAGE YOUR SYSTEM

Linux: I'd like to uninstall my bootloader. Yeah sure, go ahead

3 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.