There is a Linux Mandrake program called diskdrake. You can run that program after installing the drive and booting up.
You will need to decide how you want to partition it before you can transfer files. Mandrake defaults to the ext3 file system, but you could use reiserfs if you wanted. Remember that you will need a swap partition also. Also, like Joubert79 said, you need to mount what will become your new root partition (/) someplace. You can do that while using diskdrake. It will ask you where to mount it. If you want to mount it as /newdrive, then diskdrake will create the /newdrive directory for you and mount it there.
Important: because this is a temporary place for the drive, the device is /dev/hdc, so when Diskdrake asks if you want to save the changes to 'fstab', answer NO. However, if you have partitioned the new drive differently, then the fstab entry on the new drive, (i.e. /newdrive/etc/fstab ) will need to be updated to reflect the new device references. In other words, if /home is inside the extended partition as /dev/hdb5, but you didn't create an extended partition, then the new home will be at /dev/hdb2 instead. If that were the case you would just need to change the entry: from /dev/hdb5 to /dev/hdb2.
After you copied everything over, double check that the owner, group and permissions of files are the same. Just compare a couple of directories with the new cooresponding ones on the new drive.
A good one to use would be /var
Code:
hpamd64lt:/home/jschiwal # ll /var
total
drwxr-xr-x 14 root root 360 20c 2004-10-09 04:27 games
drwxr-xr-x 31 root root 840 2004-10-21 04:20 lib
drwxrwxr-t 3 root uucp 72 2004-10-21 22:51 lock
drwxr-xr-x 9 root root 1168 2004-10-22 00:28 log
lrwxrwxrwx 1 root root 10 2004-10-09 04:15 mail -> spool/mail
drwxr-xr-x 3 root root 72 2004-10-09 04:16 opt
drwxr-xr-x 15 root root 896 2004-10-21 22:19 run
drwxr-xr-x 12 root root 320 2004-10-09 06:30 spool
drwxrwxrwt 5 root root 184 2004-10-22 00:29 tmp
drwxr-xr-x 4 root root 120 2004-10-09 04:26 X11R6
drwxr-xr-x 3 root root 104 2004-10-09 04:26 yp
The /var directory contains directories with different owners and permissions.
Now we come to a catch-22 situation. Lilo needs to be updated before you can boot. However, because the drive is in /dev/hdc, you can't update it because it would write the wrong information. The solution is to boot up with the first installation disk. Press f2 at the first screen and enter 'rescue' at the bottom of the screen.
This will boot up the rescue system. Select the option 'mount system under /mnt'. If this is successful the execute these commands:
Code:
chroot /mnt
bash -l
/sbin/lilo
Lilo will print out a line for each stanza ( boot menu section ). If there is a problem you will need to edit /etc/lilo.conf in the stanza that had the error. The lilo error message
will tell you where.
Now reboot and cross your fingers!