[Top][All Lists]

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

Installing grub into MBR, then moving drive

From: Timm Gleason
Subject: Installing grub into MBR, then moving drive
Date: Tue, 18 Mar 2003 08:43:01 -0800 (PST)

I am trying to install grub into the MBR of a drive then move that drive
to another machine.  I have a server for imaging drives using rsync over
the network, I am trying to be able to use the same system with local

I insert a hotplug SCSI drive into the imaging server, use scsiadd to
bring the drive online as /dev/sdb. Can fdisk, format, mount, copy files
everything.  Lilo does not like it if you install it onto /dev/sdb then
move that drive to another machine where it becomes /dev/sda, so I am
trying to use grub.  Procedure is as follows:

fdisk to create partitions
mke2fs to create filesystem
rsync to populate new filesystems (/dev/sdb) from repository on /dev/sda
  this includes a /boot/grub directory and a menu.lst file that is
  appropriate for this drive to be /dev/sda. Same goes for /etc/fstab.
mount /dev/sdb1 (/ partition for new drive) to temporary /mnt

Tried the following:
grub-install --root-directory=/mnt /dev/sdb

grub>root (hd1,0)
grub>setup (hd1)

After this, I unmount the drive completely and use scsiadd to remove the
drive from the SCSI bus.  Place drive into another chassis, where it
becomes /dev/sda (hd0) and boot. Everytime I get the same error, "grub
Hard Disk Error".  The troubleshooting section of the docs is not very
helpful at this point.  Both the stage1 and stage2 files are on /dev/sda
in /boot/grub at this point.

What do I seem to be missing?

Tuesday, March 18 2003
--                              | When a religion is good, I conceive
Timm Gleason                    | it will support itself; and when it
http://www.gleason.to/          | does not support itself, and God does
http://www.uranushertz.to/      | not take care to support it so that
Quis custodiet iposos custodes? | its professors are obliged to call
                                | for help of the civil power, 'tis a
                                | sign, I apprehend, of its being a bad
                                | one. -- Benjamin Franklin


reply via email to

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