*** I TAKE NO RESPONSIBILITY FOR THE INSTRUCTIONS BELOW ***
As i don't feel very comfortable with rsync, i would use a "dump'n'restore" approach. So...
1. Copy the mbr and partition table from hda to hdb with the command
Code:
dd if=/dev/hda of=/dev/hdb count=16
2. create a dummy chroot dir with the commands
Code:
mkdir -p /home/SECONDDRIVE/boot
mkdir /home/SECONDDRIVE/home
mkdir /home/SECONDDRIVE/usr
mkdir /home/SECONDDRIVE/var
3. create file system on the new drive
Code:
newfs /dev/hdb1
newfs /dev/hdb2
newfs /dev/hdb3
newfs /dev/hdb5
newfs /dev/hdb6
newfs /dev/hdb7
4. Mount the new partitions to the appropriate folders with the command:
Code:
mount /dev/hdb5 /home/SECONDDRIVE/
mount /dev/hdb1 /home/SECONDDRIVE/boot
mount /dev/hdb2 /home/SECONDDRIVE/usr
mount /dev/hdb3 /home/SECONDDRIVE/var
mount /dev/hdb6 /home/SECONDDRIVE/home
5. Dump and restore data on the new drive with the commands:
Code:
dump cf - / | (cd /home/SECONDDRIVE/; restore xf - )
dump cf - /boot | (cd /home/SECONDDRIVE/boot; restore xf - )
dump cf - /usr | (cd /home/SECONDDRIVE/usr; restore xf - )
dump cf - /var | (cd /home/SECONDDRIVE/var; restore xf - )
dump cf - /home | (cd /home/SECONDDRIVE/home; restore xf - )