2

Was trying to tweak a menu entry and in an effort to get it to work I deleted all contents of /etc/grub.d. Is there a way I can easily restore it? This question has to be a duplicate by now so if someone can redirect me to an answer that too would be great. :)

1 Answers1

0

Boot with your Live USB / DVD.

Open Nautilus in root mode using:

sudo -H nautilus

Then navigate to your /etc directory and copy the grub.d directory.

While still in nautilus root mode navigate to your real /etc directory on your hard drive SSD and paste the grub.d directory into it.

Note: You may have to mount your real Ubuntu first if nautilus doesn't see it on the hard drive / SSD: How to mount a partition from live usb