From: Les M. <le...@fu...> - 2004-08-25 21:04:39
|
On Wed, 2004-08-25 at 14:26, Jerry Norton wrote: > Hey all, I did a search on the list but didn't see anything that answered my > question. I was wondering if anyone has had any experience doing a bare metal > restore on either Debian or Redhat? I have read through the Backup and Recovery > HowTO and am trying to get a test scenario setup but I was looking for any insight > before I start. I did it long ago with RH and don't have exact details but something like this should work: Boot the target machine with a Knoppix CD. From the Knoppix menu (replaced by a fat penguin in the current release...) open a root shell or 2. Fdisk the partitions to approximately match the old machine. Make file systems (mke2fs -j for ext3), mkswap on the swap partition. Make a temporary directory and mount the root partition there, make directories for any other partitions and do the corresponding mounts. Look up the right command line for Backuppc to send the tar archive you want to stdout. Cd to the directory where you mounted the new root partition. Ssh the command to your backuppc server (in quotes) piping it to tar -pvx - (outside of the previous quotes so it runs locally). Now there are 2 more problems with RH/fedora. /etc/fstab by default will refer to labels instead of partitions. You can either add the partition labels on the new disk or edit fstab while it is still mounted. Then you need to make the disk bootable. The easy way to do that with RH/fedora is to boot the install disk and at the boot prompt type 'linux rescue'. As it comes up (assuming fstab matches your partitions at this point) it will detect the installation and mount it under /mnt/sysinstall for you. Chroot there, and type '/sbin/lilo' if you were using lilo to boot, or 'grub-install' if you use grub. Then 'exit' twice and it should do a graceful reboot - remove the cd and it should come up working. --- Les Mikesell le...@fu... |