Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have a Linux that is resided on a 40GB IBM hard drive and I would like to copy everything to an 60GB Quantum hard drive. I wanted the 60GB hard drive to have the same image as the 40GB hard drive so that I can boot up. I did the following things:
hda is the 40GB IBM. hdc is the 60GB Quantum
1) Fdisk and partition /dev/hdc
/dev/hdc1, /dev/hdc2, /dev/hdc5, /dev/hdc6, /dev/hdc7
2) format the above partition
mkfs.ext2 -c -j /dev/hdc1, mkfs.ext2 -c -j /dev/hdc5, mkfs.ext2 -c -j /dev/hdc7
3) mkswap -c /dev/hdc6
4) mount /dev/hdc1 /target
5) lilo -v -r /target (I can 't get this command to work)
I am stuck because I can 't get the hdc drive to boot up. If you have a better method of copying from one hard drive to another please send me that method in step by step detail on how to do it. Thank you for your help.

When I did this a while ago I did a cp -a from /usr to /usr2 etc on other disk where the mount points were the same devices.
For /boot I did a loop of like something likefor var in *
do
dd if=${var} of=/boot2
done
just to be sure for boot.Then :
dd if=/dev/hda of=/dev/hdb
(assuming hdb is second disk) should do itThen I swaped disks so hdb became hda.It has been a while so...

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |