How Do I Move My Linux Hard Drive To Another Machine?

I have Fedora 10 installed on a 2 CPU machine and want to move it to a different 1 CPU machine.
Here is my grub.conf file: (from the SMP machine)
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=0
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.27.7-134.fc10.i686)
root (hd0,0)
kernel /vmlinuz-2.6.27.7-134.fc10.i686 ro root=UUID=5dc7b756-abdb-48a0-a679-d3c8d2…
initrd /initrd-2.6.27.7-134.fc10.i686.img
title Fedora-base (2.6.27.9-159.fc10.i686)
root (hd0,0)
kernel /vmlinuz-2.6.27.9-159.fc10.i686 ro root=UUID=5dc7b756-abdb-48a0-a679-d3c8d2…
initrd /initrd-2.6.27.9-159.fc10.i686.img
HERE IS MY /etc/fstab: (from the SMP machine)
# /etc/fstab
# Created by anaconda on Wed Jan 7 23:05:18 2009
#
# Accessible filesystems, by reference, are maintained under ‘/dev/disk’
# See man pages fstab(5), findfs(8), mount(8) and/or vol_id(8) for more info
#
UUID=5dc7b756-abdb-48a0-a679-d3c8d23ac… / ext3 defaults 1 1
UUID=82f4c1b1-8705-4bc6-bb07-40b1e657b… /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
UUID=dc2bac35-8368-4f3a-a934-7b0c0035c… swap swap defaults 0 0
Here’s what I tried to do.
1. swap hard disk with the Fedora 10 OS from the 2 (SMP) CPU machine into the 1 CPU machine.
2. Use the fc10 CD to “Rescue Installed System.”
3. chroot /mnt/sysimage
4. mount /boot
5. uname -r gives me this output: 2.6.27.5-117.fc10.i586
6. mkinitrd /boot/test.img 2.6.27.5-117.fc10.i586
7. I edit grub so that I change default from 0 to 2. Timeout from 0 to 10. I place third entry at the bottom (I could have put it at the top and kept default=0 instead of 2). How would I write that entry correctly. I think I’m messing up the grub.conf perhaps. The UUID numbers are confusing me. Which fstab UUID entry do I use in grub.conf? All help is appreciated. When I do the above as best I could and I select the i586 to boot in the new machine it just says error: file not found. If I try to boot from either of the i686 options it begins to boot but has a stabilization error. Wait 10 seconds then freezes. What file is not found with the i586? Thanks in advance.

Tags: , , , , ,

One Response to “How Do I Move My Linux Hard Drive To Another Machine?”

  1. First off if your trying to move it from an AMD machine to an Intel machine that will throw it off a lot, the same with the different chipsets will mess it up. Your best bet is just to reinstall it and reinstall all your programs.

Leave a Reply