0

I made a mistake in my evdev configuration, and now my system won't boot. I can boot from Ubuntu on a USB stick, though. How can I edit the relevant system file as root so that I can boot normally, again? Thanks!

2 Answers 2

2

Open terminal and type into it:

sudo -H gedit

and hit enter.

This will open gedit with the appropriate permissions. Then all you have to do is browse to the document on the hard drive and make the necessary changes.

5
  • It's asking me to sudo apt install gksu, but then I get unable to locate package gksu.
    – jerome
    Oct 20, 2016 at 15:26
  • can you try just sudo gedit, and ignore the warning it gives you?
    – TheXed
    Oct 20, 2016 at 15:32
  • or make sure you are connected to the internet and try installing gksu again.
    – TheXed
    Oct 20, 2016 at 15:36
  • @TheXed The preferred method now is sudo -H
    – user589808
    Oct 20, 2016 at 15:39
  • I will make that change.
    – TheXed
    Oct 20, 2016 at 15:40
1

I was able to access root on the device as sudo su, whereupon I edited the system file on the hard drive using vi. I was then able to resume the normal boot process on the laptop.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .