help-grub
[Top][All Lists]
Advanced

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

Re: Install grub2 onto un-tarball'ed system


From: Simon Hobson
Subject: Re: Install grub2 onto un-tarball'ed system
Date: Sun, 12 Aug 2012 08:44:27 +0100

Schmidt, Christian Thorge wrote:

I frequently install systems from tarbell'ed systemimages. I use a USB thhumbdrive to boot, then prepare my HDD(s) and untar the system onto them, then proceed setting up grub. After switching to grub2, Ubuntu 12.04's default bootloader, I cannot do my usual

$ grub
grub> root (hd0,0)
grub> (setup (hd0)
grub> quit

anymore - what would I do to install my tarball's grub2?

Yeah, it used to be so easy didn't it.

As far as I can make out, this should do it :
grub-install --no-floppy --root-directory=/mnt/dest /dev/sda

But you may have to manually create a grub.cfg file for the first boot.


Alternatively, I think I've done it by getting to the grub menu at boot time (not all live/install disks make this easy) and manually booting it. From memory it's a matter of typing "kernel vm<tab>" followed by "initrd init<tab>" and then "boot" - at least GRUB2 supports <tab> for autocomplete :) BUT - you need to specify the device first and I can't remember offhand how to do that (I've only recently done it with a broken grub where the bootloader was already on the drive).

--
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.



reply via email to

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