First make sure you know how you partitions are named, eg
say / is /dev/hda3 and you want to transfer the content in /dev/hda8
(I assume there is a filesystem in /dev/hda8,
if not, just do mkreiserfs /dev/hda8 to format the partition)
I would do :
- boot from a Live CD like slackware CD1 or Knoppix
- create the mountpoints and mount the partitions :
Code:
mkdir /mnt/from
mkdir /mnt/to
mount /dev/hda3 /mnt/from
mount /dev/hda8 /mnt/to
cd /mnt/from
tar cf - . | (cd /mnt/to; tar xvf -)
Now that you have copied the whole / partition,
you need to adjust fstab and lilo
Code:
chroot /mnt/to
vi /etc/fstab # edit the new mount point for /, eg here it is /dev/hda8
vi /etc/lilo.conf # update the root partition in lilo : /dev/hda8
lilo # run lilo to take the changes in account
reboot