If you are putting in a new hard drive you do not necessarily need to do a new install. There are a couple of ways to go about this.
1. You could dump the contents of the old drive on to the new one with;
dd if=/dev/hddnn of=/dev/hddnn where nn is the partition #
Best to do this with Knoppix as the os is not operational.
You could then switch the drives around and this would not require any changes to fstab
2. Image the partition with PartImage on Knoppix and restore the image to the new drive. The negative of this is that the new partition is the same size as the old one and this is not always what you want.
3. To follow the route of a new install and use the existing packages then create a new directory under root called /debs. Copy the contents of /var/cache /apt/archives to /debs. Then do dpkg-scanpackages debs /dev/null | gzip > debs/Packages.gz (see APT documentation for further detail). This will produce the file Packages.gz which lists the contents of all the packages in /debs. You can then burn the contents of /debs to a cd and use apt-cdrom to install the packages or use dselect.
Last edited by TigerOC; 02-12-2005 at 02:00 AM.
|