Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #26843

Re: restore grub?

From "Carlos E. R." <robin_listas@es.invalid>
Newsgroups comp.os.linux.misc
Subject Re: restore grub?
Date 2019-04-22 11:49 +0200
Message-ID <gi5h21F31u3U2@mid.individual.net> (permalink)
References <q9jr1i$3up$1@dont-email.me> <gi5daqF2agtU1@mid.individual.net> <op.z0m5egcca3w0dxdave@hodgins.homeip.net>

Show all headers | View raw


On 22/04/2019 11.16, David W. Hodgins wrote:
> On Mon, 22 Apr 2019 04:46:17 -0400, Carlos E. R.
> <robin_listas@es.invalid> wrote:
> 
>> 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
> 
> If it's a systemd install in the live system, replace the mount bind and
> the chroot with ...
> systemd-nspawn -D /mnt

Why?

cer@Elesar:~> man systemd-nspawn
No manual entry for systemd-nspawn
cer@Elesar:~> apropos systemd-nspawn
systemd-nspawn: nothing appropriate.
cer@Elesar:~>


-- 
Cheers,
       Carlos E.R.

Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

restore grub? T <T@invalid.invalid> - 2019-04-22 00:38 -0700
  Re: restore grub? The Natural Philosopher <tnp@invalid.invalid> - 2019-04-22 08:47 +0100
  Re: restore grub? "Carlos E. R." <robin_listas@es.invalid> - 2019-04-22 10:46 +0200
    Re: restore grub? "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2019-04-22 05:16 -0400
      Re: restore grub? "Carlos E. R." <robin_listas@es.invalid> - 2019-04-22 11:49 +0200
        Re: restore grub? "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2019-04-22 07:55 -0400
          Re: restore grub? "Carlos E. R." <robin_listas@es.invalid> - 2019-04-22 15:16 +0200
    Re: restore grub? T <T@invalid.invalid> - 2019-04-22 03:49 -0700
      Re: restore grub? The Natural Philosopher <tnp@invalid.invalid> - 2019-04-22 12:19 +0100
      Re: restore grub? "Carlos E. R." <robin_listas@es.invalid> - 2019-04-22 15:21 +0200

csiph-web