Backup & restore of FC3 partition/disk?

Les Mikesell lesmikesell at gmail.com
Thu Mar 10 00:11:41 UTC 2005


On Wed, 2005-03-09 at 17:00, David Hoffman wrote:
> > if you have anything like Ghost, you can do that as well
> 
> Except that Ghost does not work on EXT3 filesystems. However I would
> do a lookup on "G4L -- Ghost for Linux". It's not Symantec's ghost,
> but it does the job pretty well.

If you can connect both drives at the same time for the copy:
  fdisk the new partitions the same size or larger
  mkswap /dev/new_swap_partion/name
  for each mounted partion...
  mke2fs -j /dev/new_partition_name
  make a directory in /tmp, mount the new partiton on it
  cp --one-file-system -av mount_point_of_old mount_point_of_new
While the new copy of what will be the root partition is mounted
edit it's copy of etc/fstab and change the LABEL= part to the
partition names that they will have after you swap disks - or
you can use e2label to label the new partitions to match but be
aware that you won't be able to reboot with 2 identical labels
still connected.

Swap drives and reboot with your fedora install CD.  Type
linux rescue at the boot prompt.  If your fstab change is
correct, it will offer to mount your system for you suggest
a chroot command to do repairs.  Do that, then type:
grub-install
type exit twice to reboot and you should come up working.
If the CD boot doesn't automatically detect your system, don't
panic - you can still mount the root filesystem by hand to
fix up etc/fstab and try again.

-- 
  Les Mikesell
   les at futuresource.com




More information about the fedora-list mailing list