Grub Restore

This is a discussion about Grub Restore in the Everything Linux category; I am trying to Image (Clone) my redhat drive to another smaller drive. I can do the clone process ok, but the boot loader needs to be restored. Is there a way to create a cd or floppy bootdisk from the running system then restore that information to the cloned drive?.

Everything Linux 1800 This topic was started by , . Last reply by ,


data/avatar/default/avatar07.webp

1 Posts
Location -
Joined 2004-11-18
I am trying to Image (Clone) my redhat drive to another smaller drive. I can do the clone process ok, but the boot loader needs to be restored. Is there a way to create a cd or floppy bootdisk from the running system then restore that information to the cloned drive?

Participate in our website and join the conversation

You already have an account on our website? To log in, use the link provided below.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This subject has been archived. New comments and votes cannot be submitted.
Nov 18
Created
Nov 18
Last Response
0
Likes
2 minutes
Read Time
User User
Users

Responses to this topic


data/avatar/default/avatar10.webp

2895 Posts
Location -
Joined 2002-08-30
Sure there is. First, let me ask a few questions.
 
1, What position is the new smaller drive going to be in relation to the curent drive in the system? In other words,are you planning on using the drive as an added drive in the system? Say, the original drive as master and the smaller as slave?
 
2. What method are you using to clone the drive?
 
3. Are there any other OS'es on the system? If so, do you know the partition designation of the current RedHat install?
 
You will need to edit the /boot/grub/menu.lst file to reflect the new position of the smaller drive, as well as edit the /etc/fstab file to tell it where root and other partitions are relative to the master drive. Meaning, if RedHat was on hda1 and now it is on hdb1 (because you moved the install to a primary slave drive) fstab needs to reflect this, as does the menu.lst file. Once that is sorted out, the command grub-install can be used to copy the grub to your boot partition, whether it be the MBR or whatever.
 
If you planning leaving just the smaller drive in the system, the process is much easier.
 
Once we know hoe the drive(s) are going to be set up, we can give more specifics.