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

Re: update-grub and chroot



Hi,

On Sat, Oct 18, 2008 at 03:05:52AM +0000, T o n g wrote:
> Hi,
> 
> I tried to update my grub menu.lst in the chroot system using update-
> grub, but it doesn't work. 
> 
> I'm wondering if it is possible to update the grub menu.lst in the chroot 
> to reflect its appropriate kernel to boot from.

I assume you have separate partition for chroot.  
 * edit /boot/grub/menu.lst (assuming you are using grub legacy) in
   chroot
 * assuming you installed grub on MBR, you run something like
   "grub-install /dev/hda" from chroot
 * reboot

I tends to be more careful.  I put mbr package to install it to MBR
(/dev/hda) like old days.  I install grub on the root partition of 1st
install (say dev/hda1).  Then put another install and install grub on
that partition (say /dev/hda2).  Then I an safe even if I screw up new
installation.

Oh, if you are installing new grub 2 series such as grub-pc, /dev/hda1
is now (hd0,1) insttead of old (hd0,0) and configuration file is
/boot/grub/grub.cfg
  http://people.debian.org/~osamu/pub/getwiki/html/ch04.en.html#stagecthebootloader

Osamu


Reply to: