Click to See Complete Forum and Search --> : Cloned drive won't bootup
hoffa69
04-11-2004, 12:08 AM
I used Symantec Ghost 7 and cloned my 80GB drive to 160GB drive. When I try booting up on that drive, I only see Grub>.
I've also had same problem earlier when I copied drive using linux copy commands. What do I need to do in order to get new drive to bootup as if it were normal drive?
I am running Fedora and it normally boots up to KDE.
gehidore
04-11-2004, 12:19 AM
is your drive in the exact position as the one that it was copied from?
ie
master copied to slave
now slave is master and old master is not?
boot a rescue CD (gentoo live CD will do), mount the partitions on your hard disk, chroot to it and reinstall grub.
hoffa69
04-11-2004, 12:35 PM
No, slave is now master.
I just hooked up drive as slave on ide 1 then ide2. It makes no difference, I still get Grub thing.
i don't know if you accidentally created 2 identical posts... but they are now merged.
hoffa69
04-11-2004, 12:41 PM
no, I had browser spot saved from when I posted. I woke up this morning and hit back or refresh and it reposted. I deleted it now.
gehidore
04-11-2004, 03:14 PM
then like he said use a live cd and chroot into your system (if you dont know how i can walk you through easy) then reinstall grub ( can walkthrough that too if you need)
hoffa69
04-17-2004, 11:59 AM
I tried booting up using Fedora CD 1, but by default it wants to repartiotion everything. Do I have to download gentoo live CD or is there a way to do it with Fedora CD?
mdwatts
04-17-2004, 01:31 PM
Originally posted by hoffa69
I tried booting up using Fedora CD 1, but by default it wants to repartiotion everything.
Did you boot into 'rescue mode'?
Redhat has docs on their site that explains how to boot into rescue mode using the installation cd.
Somewhere in https://www.redhat.com/support/resources/howto/rhl9.html
hoffa69
04-18-2004, 02:30 PM
ok, I booted into rescue mode and I get some errors like /dev/hdb inconsitent. Using LBA recommended. Then it shows error mounting filesystem on hdb1: invalid argument.
I can then go no further.
mdwatts
04-18-2004, 03:13 PM
Have you enabled LBA for hdb (primary/slave) in the system bios?
hoffa69
04-18-2004, 04:57 PM
well, I had drive set as slave and switched it to master. I am still getting problems with /dev/hdb thing like before. I can set it as slave again and bootup on original drive if I need to edit files.
What files should I edit?
mdwatts
04-19-2004, 12:11 PM
Originally posted by hoffa69
What files should I edit?
For LBA? That would be in your system bios where the IDE devices (HD's/CDROMS) are setup.
Lilo does have the lba32 and linear options you can add to /etc/lilo.conf, but I'm not sure if those options are supported by Grub. You could search G4L for i.e. 'grub lba32' to see what you can find. Try the system bios first.
hoffa69
04-19-2004, 12:26 PM
Bios is set to automatically recognize drives. It isn't set to LBA or any manual method. It is set to auto.
hoffa69
04-19-2004, 02:30 PM
I re-installed linux and new drive and am going to try and copy data over again. When I did clone with Ghost, ext2fs windows program wasn't able to read anything on that drive.
hoffa69
04-19-2004, 09:59 PM
Ok, I've copied stuff over to / partion on new drive. Now what I'm trying to figure out is how to copy stuff over to /boot partion. How can I see what is on boot partion on main drive?
hoffa69
04-19-2004, 11:02 PM
I want to re-copy some stuff. What command is best for this? I want to overwrite all folders and files. Is:
cp -Rpdf
the best command to use?
mdwatts
04-20-2004, 11:21 AM
Originally posted by hoffa69
Now what I'm trying to figure out is how to copy stuff over to /boot partion. How can I see what is on boot partion on main drive?
Are you booted to Linux and is the /boot partition mounted if it's a separate partition from root '/'?
ls -al /boot
I want to re-copy some stuff. What command is best for this? I want to overwrite all folders and files. Is:
cp -Rpdf
the best command to use?
Or cp -a (from the cp manpage)
You could use 'dd' to copy partitions/HD's or PartImage (search freshmeat.net).
hoffa69
04-20-2004, 12:09 PM
well, I had it booting up on new drive using standard Fedora kernel. I have partitons on
boot /dev/hda1
/ /dev/hda2
My original drive has two options on bootup to choose different kernel. New setup didn't, so I copied /boot partion from old drive to new one.
Now all I get is Grub thing on bootup and I can't go anywhere.
mdwatts
04-20-2004, 01:30 PM
Is /boot set as the active partition?
Does the kernel image, System.map etc. in /boot match what you have configured in the bootloader?
Have you tried PartImage instead?
hoffa69
04-20-2004, 01:41 PM
Originally posted by mdwatts
Is /boot set as the active partition?
Does the kernel image, System.map etc. in /boot match what you have configured in the bootloader?
Have you tried PartImage instead?
I believe /boot is active partion. It was working before. How can I figure out if kernel image, system.map etc match what is in bootloader? Do I compare it to stuff in /etc/grub.conf?
mdwatts
04-21-2004, 11:28 AM
Originally posted by hoffa69
It was working before.
How can I figure out if kernel image, system.map etc match what is in bootloader? Do I compare it to stuff in /etc/grub.conf?
The cloned HD was working before?
Yes... get the kernel name, System.map, initrd etc. from /boot and compare to your Grub config (/etc/grub.conf for Redhat/Fedora).
Perhaps explain exactly what step you are taking to clone the drive. Existing partitions on the source HD etc.
Did you try PartImage?
hoffa69
04-21-2004, 12:03 PM
Well, I originally cloned drive with Noron Ghost, but that didn't work right. So, then, I installed new copy of linux on new drive and copied data over from old drive to new drive using cp commands.
On my old drive, I have updated kernel file which is linked to nvidia-graphics driver.
Even after copying files, it shows one kernel image on bootup and I cannot select newer kernel like with my old drive. So, it boots up fine until it gets to nvidia-graphics part and then KDE doesn't come up because it can't find nvidia driver.
So, then I go to /dev/hda1 which is boot partition, I delete it and copy old one over using cp -Rpdf command.
Now I just see Grub on bootup. It loads BIOS info, then just shows GRUB text on screen and I see nothing more.
mdwatts
04-21-2004, 01:01 PM
Originally posted by hoffa69
Even after copying files, it shows one kernel image on bootup and I cannot select newer kernel like with my old drive. So, it boots up fine until it gets to nvidia-graphics part and then KDE doesn't come up because it can't find nvidia driver.
That is strange. If you copy ALL your distros partitions from hda to hdb, everything (including Nvidia) should also be on hdb.
As I've asked twice before, have you tried PartImage?
What partitions on hda are used by your distro? Perhaps post your /etc/fstab from hda, the results of 'mount' and 'fdisk -l /dev/hda'.
Did you prepartition hdb for ALL the required partitions that are on hda?
Maybe using dd will work.
dd if /dev/hda# of=/dev/hdb#
as in
dd if /dev/hda1 of=/dev/hdb1
dd if /dev/hda2 of=/dev/hdb2
etc.
hoffa69
04-21-2004, 01:18 PM
No, I haven't used Partimage. I'm looking at program now.
Here is main drive fstab file:
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
here is grub.conf file
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core (2.4.22-1.2140.nptl)
root (hd0,0)
kernel /vmlinuz-2.4.22-1.2140.nptl ro root=LABEL=/
initrd /initrd-2.4.22-1.2140.nptl.img
title Fedora Core (2.4.22-1.2115.nptl)
root (hd0,0)
kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/
initrd /initrd-2.4.22-1.2115.nptl.img
THey are both same on both drives
I'm looking at files in webmin right now. One thing I noticed is that on folder I have M on folders for /boot /misc /net /proc but they look like regular folders without M on new drive.
mdwatts
04-21-2004, 02:03 PM
Originally posted by hoffa69
I'm looking at files in webmin right now. One thing I noticed is that on folder I have M on folders for /boot /misc /net /proc but they look like regular folders without M on new drive.
Webmin? I'm not sure what you mean by 'M' on the directories (folders is the MS name :) ).
So you should only need to close /boot, root '/' and swap.
Redhat/Fedora has problems booting to a non-default/stock kernel if you use root=LABEL=/ in the bootloader config. Maybe try changing both to 'root=/dev/hda2' (if hda2 is your root partition which I cannot tell as you omitted to post the results of 'mount' and 'fdisk ...').
hoffa69
04-21-2004, 02:20 PM
This is Webmin:
mdwatts
04-21-2004, 02:35 PM
I know Webmin as I used it earlier to download and install some Perl modules for Popfile. I just didn't understand what you were using Webmin for since your question is on cloning HD's. Now I know... the File Manager in Webmin.