bug-grub
[Top][All Lists]
Advanced

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

grub: support 'guest disks'


From: Yotam Medini
Subject: grub: support 'guest disks'
Date: Thu, 30 Sep 2004 10:32:44 +0200
User-agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.6 Emacs/21.3 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI)

Hello Grub gurus,

I may have missed some Grub feature or Grub hidden documentation note.
If so, please let me know.

Say, you have two computers C1 and C2, with hard disks H1 in C1
and H2 in C2. Now C1 has linux nicely installed on its H1, 
while C2 & H2 are almost empty.

Say you want to install grub boot on H2 for C2.  It will be convenient
to unscrew some screws and bring H2 as a (secondary) disk to C1, and
use C1 to install grub in H2.  After successful installation (lots of
chroot operations) and configuration, bring back H2 to C3.

Now, when writing the grub menu for H2, while at C1, 
you end up referring to (hd1,.),
while you actually want to finally have (hd0,.) when back at H2.
A nice feature would be, to have an implicit symbol, 
for the "device-being-booted-by", say 'bd'.

Then in a grub menu, you could specify - for example:

   title=Boot Linux root (bd,4) 
   kernel /boot/bzImage root=/dev/bd5

Which will be equivalent to:

 * When secondary on C1

   title=Boot Linux root (hd1,4) 
   kernel /boot/bzImage root=/dev/hdb5

 * When primary on C2

   title=Boot Linux root (hd0,4) 
   kernel /boot/bzImage root=/dev/hda5


-- yotam




reply via email to

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