How to boot up after grub edit (messed up config file)?

I am dual booting with windows 10.

I was trying to fix my synaptic touchpad because it was not working on my Thinkpad T14.
In a post, I read a possible solution was to add “pci=nocrs” after the “GRUB_CMDLINE_LINUX_DEFAULT” in the /etc/default/grub and to reboot.
After adding the line and rebooting I am being put in an emergency shell where I can not edit the grub file to remove that part.
Is there a way to fix this?
Since I am dualbooting with windows 10, I am trying to edit the file from windows but it won’t let me.

1 Like

You can edit the Grub comandline from grub´s menu.


:+1: Thank you for sharing! :+1:

However, could you do me a favour and:

  • edit your question by pressing the 3 dots and the pencil icon
  • make it into a real question
  • cut and paste the solution into a reply to your own question
  • click the 3 dots below your own answer to mark a solution like this:
    so that the next person that has the exact same problem you just had will benefit from your post as your question will now be in the “solved” status.


1 Like

HowTo change Grub commandline before boot while in GRUB:

1 Like
  • I installed the “Ext2 File System Driver for Windows”, which made the partition visible in the file explorer.
  • Opened /etc/default/grub with Notepad++ and deleted pci=nocrs.
  • Then I edited the /boot/ grub/grub.cfg with Notepad++, by deleting the same line from the Manjaro submenu.
1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.