You are not logged in.

#1 2016-06-27 18:34:30

UniqueActive
Member
Registered: 2016-06-27
Posts: 16

[SOLVED] How can I edit my boot loader files?

Basically I fked up my /boot/loader/entries/arch.conf file while installing systemd, did a spelling error.

Now, I tried to boot and of course it fails; how can I get back in there and edit the file?
Can I get in there over my USB, and if yes then how? It's also secured with a root password, in case that matters.
Help would be greatly appreciated!

EDIT:
I used the install media and mounted my boot by running

# mkdir /mnt/arch
# mount /dev/sda1 /mnt/arch

And I was able to cd my way through there and edit the files.

Last edited by UniqueActive (2016-06-27 19:18:45)

Offline

#2 2016-06-27 18:43:53

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,791

Re: [SOLVED] How can I edit my boot loader files?

This is systemd-boot?  Select the boot option and hit 'e'.  It will allow you to change it for the next boot. 
You can always boot the install media, mount the boot partition and fix it from there.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2016-06-27 18:48:34

UniqueActive
Member
Registered: 2016-06-27
Posts: 16

Re: [SOLVED] How can I edit my boot loader files?

Pressing e doesn't do anything, probably because used

editor   0

in my loader.conf, so that won't work.
How do I mount the boot partition? If I got that then I'll be able to do the rest on my own. Thanks for your help!

Offline

#4 2016-06-27 19:00:18

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] How can I edit my boot loader files?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2016-06-27 19:09:31

UniqueActive
Member
Registered: 2016-06-27
Posts: 16

Re: [SOLVED] How can I edit my boot loader files?

Alright, I figured it out, I will edit the post accordingly and thanks for your help!

Offline

Board footer

Powered by FluxBB