switching hard drives -- the plot thickens!
Klaus-Peter Schrage
kpschrage
Mon May 17 11:57:06 PDT 2004
dep wrote:
> okay, this could, i guess, be easier than i thought.
>
> machine in question is running suse 8.2 and grub. new drive is
> formatted, everything copied over. before i yank old drive, i know that
> there's something i need to do with grub to make the second -- soon to
> be the first -- drive bootable. i'm given to believe that this is
> supposed to be easier with grub than with lilo, but i have no idea
> what's involved. anyone?
A long time gone, but I remember the easiest way is to install grub on a
new drive using an already running grub (you have it as you said).
In the grub console, you have to give something like
grub> root (hd0,0)
grub> setup (hd0)
The first line tells grub where /boot (=root in grub terminology) is
located - a seperate partition /dev/hda1 in this example, YMMV. If you
have /boot as a directory on say /dev/hdb1,
grub> root (hd0,0)
should do it.
The second line installs grub in the MBR of /dev/hda. Before this, there
must be some files copied over to /boot/grub/, taken from
/usr/share/grub/i386-pc.
I know, some people don't like 'info', but
info grub
is worth reading ...
Klaus
More information about the Linux-users
mailing list