[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Breaking out of menu on "live disk", repairing grub
From: |
Felix Miata |
Subject: |
Re: Breaking out of menu on "live disk", repairing grub |
Date: |
Mon, 25 Mar 2013 06:51:12 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:19.0) Gecko/20100101 SeaMonkey/2.16.2 |
On 2013-03-25 12:15 (GMT+0400) Andrey Borzenkov composed:
Simon Hobson wrote:
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)
Lots more to remember than what I do with Grub Legacy:
# grub # if booted to live media, or if in a Grub
menu, just
<ESC>[OK] # exit Grub's menu to Grub Shell
grub> find /boot/grub/stage1 # ensure knowledge of Grub files location
grub> root (hd0,2) # e.g. in this case third partition on first HD
grub> setup (hd0,2) # installs to partition where Grub files are
grub> reboot # just want boot using newly installed Grub, or
grub> quit # go back to shell for unrelated reasons, since already done,
and without needing to mount anything not already mounted before starting up
Grub Shell
--
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)
Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!
Felix Miata *** http://fm.no-ip.com/
- Breaking out of menu on "live disk", repairing grub, Simon Hobson, 2013/03/25
- Re: Breaking out of menu on "live disk", repairing grub, Andrey Borzenkov, 2013/03/25
- Re: Breaking out of menu on "live disk", repairing grub,
Felix Miata <=
- Re: Breaking out of menu on "live disk", repairing grub, Andrey Borzenkov, 2013/03/25
- Re: Breaking out of menu on "live disk", repairing grub, Felix Miata, 2013/03/25
- Re: Breaking out of menu on "live disk", repairing grub, Jordan Uggla, 2013/03/25
- Re: Breaking out of menu on "live disk", repairing grub, Felix Miata, 2013/03/25
- Re: Breaking out of menu on "live disk", repairing grub, Jordan Uggla, 2013/03/25
- Re: Breaking out of menu on "live disk", repairing grub, Felix Miata, 2013/03/27
Re: Breaking out of menu on "live disk", repairing grub, Jordan Uggla, 2013/03/25