On Tue, 21 Nov 2000 17:16:46 Tejinder Singh wrote: > > 2) Duplicate the contents if the existing drive on the new one. The new one > may have extra partitions if the partitions on > it are exactly the same size as on the old disk. > > 3) Take out the old disk, or maybe even leave it in there as an extra disk and > place the new one in as the main /dev/hda > boot disk. > > 4) Power On the PC and the system comes up exactly as it used to before the > noise started (with some extra disk space). > > Am I hoping for too much or is there a utility out there that can help me do > this. I have just done this, manually. The only tricky step is partitioning the new disk. I have Mandrake 7.2, and I used DiskDrake to partition-format the drive. I suppose RH has any GUI tool similar to do that. In the worst case, you would have to use fdisk/mkfs. The thing is to get your drive partitioned and mounted in, say, /disk. You can have a distinct partition scheme than your original drive. Just format all your parts and mount them in their right point under /disk. Say /dev/hda is your current disk, and /dev/hdb will be the new: /dev/hdb1 ---> /disk /dev/hdb5 ---> /disk/usr /dev/hdb6 ---> /disk/usr/local /dev/hdb7 ---> /disk/home Copy all your dirs from your actual root to the future root, but WITH THE -a flag (so device files, links, dates and so on are preserved). All BUT /proc. Make that dir manually with mkdir /disk/proc: cp -a /bin /boot ... /var /disk Make a boot disk with your current kernel (mkbootkdisk). If you have all your mandatory stuff (disk drivers) in kernel, not modules, just dd if=/boot/vmlinuz of=/dev/fd0. Shut down, remove your old disk (or swap master and slave if they are ide, or change scsi ids to make the new disk seen before the old), boot with the floppy and run lilo on the new disk. The advantage of this method is that the partioning scheme does not have to be equal to the old. -- Juan Antonio Magallon Lacarta #> cd /pub mailto:[EMAIL PROTECTED] #> more beer Linux 2.2.18-pre22-vm #7 SMP Sun Nov 19 03:29:20 CET 2000 i686 unknown
Keep in touch with http://mandrakeforum.com: Subscribe the "[EMAIL PROTECTED]" mailing list.