Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Carlos E. R." Newsgroups: comp.os.linux.misc Subject: Re: restore grub? Date: Mon, 22 Apr 2019 10:46:17 +0200 Lines: 18 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net SzJlIv5fQIRMx51uZWi7kQgxbA/kqb9JtHPbvjCATC07qa8JHR Cancel-Lock: sha1:uP5iTZNz1ayWLHh1RVuJ1GnhRS4= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 In-Reply-To: Content-Language: en-US Xref: csiph.com comp.os.linux.misc:26839 On 22/04/2019 09.38, T wrote: > Hi All, > > When grub.cfg is mess up and your can't boot from a legacy BIOS, > how do you use a live USB to restore your Grub boot? Roughly: Boot live mount main in /mnt mount bind /proc, /dev and /sys chroot /mnt edit grub.cfg correctly run grub2-mkconfig -o /path/grub.cfg -- Cheers, Carlos E.R.