help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Breaking out of menu on "live disk", repairing grub


From: Simon Hobson
Subject: Re: Breaking out of menu on "live disk", repairing grub
Date: Mon, 25 Mar 2013 12:06:30 +0000

Andrey Borzenkov wrote:

>Does it use grub at all? What is often used on CD (at least, until
>advent of UEFI) is syslinux.

Ah yes, that would explain it - I did say it was probably something simple !

>> Also, back in Grub 1 days, I could remember how to install grub just by 
>> mounting the filesystem, chrooting to it, and issuing a few grub commands. 
>> I've never managed to make this work with 1.99 (as currently installed with 
>> Debian). Is there a simple set of commands that will do what worked in grub 
>> 1 (going form memory here) :
>> hd0 = /dev/sda
>> root = (hd0,0)
>> install (hd0)
>>
>
>mkdir /sysroot
>mount /dev/your-root-dev /sysroot
>mount /dev/your-boot-dev /sysroot/boot
>mount --bind /dev /sysroot/dev
>mount --bind /sys /sysroot/sys
>mount --bind /proc /sysroot/proc
>mount --bind /run /sysroot/run (recommended if you are using systemd)
>chroot /sysroot
>grub-install /dev/your-grub-boot-device (may be grub2-install on some distro)

Thanks - I'll give that a whirl in a minute.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]