Re: Copy old drive to new drive - is it possible?

From: Tony Frank (tfrank_at_optushome.com.au)
Date: 02/21/04

  • Next message: Antoine Jacoutot: "errors with FAM and KDE"
    Date: Sat, 21 Feb 2004 22:12:09 +1100
    To: Tig <tigger@onemoremonkey.com>
    
    

    Hi there,

    On Sat, Feb 21, 2004 at 09:38:41PM +1100, Tig wrote:
    > Hi, I have a hard drive which is on its last legs. I also have new hard
    > drive to replace the old one. I was wondering if it is possible to
    > simply copy everything from the old drive to the new (after formating
    > the new drive) and have my system back up and running, or do I need to
    > reinstall the OS and everything else?

    Yes this is quite possible & happens regularly.

    Check out the handbook chapter 12:
    http://marvin.home.local/doc/en_US.ISO8859-1/books/handbook/disks-adding.html

    This example is for a new disk alongside existing system.

    If you plan to replace the original disk altogether you can do:
    0. Backup all important data, settings, configuration & hard to replace items.
    1. Physically install new disk together with old disk
    2. Install boot blocks if necessary
    3. layout filesystems on the new disk (can use fdisk & disklabel)
    4. Create new filesystems (newfs)
    5. mount new filesystem in temporary location
    6. copy data across.
    Many ways exist:
    tar
    cpio
    dump / restore
    7. shutdown system
    8. Remove old drive, install new drive in old position.
    Ie if IDE primary master is your old disk, put the new into the same
    position.

    If it all goes to pieces reinstall on the new drives and restore your
    backups.

    You can use /stand/sysinstall to do steps 2,3,4 - the handbook covers
    this part quite well.

    > Tips, URL's or a simple 'from personal experience, best to reinstall'
    > comments more than welcome.

    It depends on how comfortable you are in a procedure like the above.
    It may be reinstall is easiest / best option for you.

    Regards,

    Tony
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Antoine Jacoutot: "errors with FAM and KDE"

    Relevant Pages

    • Re: Boot Problem
      ... Was either disk set up as a Microsoft dynamic disk? ... Do not change the boot sector signature. ... I ensure all OK by swapping over drives. ... installing XP as it insisted there was no drive to install itself on! ...
      (microsoft.public.windowsxp.hardware)
    • Re: Wont boot from SATA drives
      ... The only tricky part of the command, is verifying the disk is at /dev/hda ... I have had to do that on occasion, to be able to install an OS on a hard ... in that the add-in Silicon Image RAID ... "6 Using Hard Drives as Non-RAID ...
      (microsoft.public.windowsxp.hardware)
    • Re: Installing XP-Pro
      ... The disk spins, various programs are read from it ok, and then when it ... Setup did not find any hard disk drives installed in your computer. ... hit the F6 key to install a third party SCSI or RAID driver. ... A similar program is VirtualBox. ...
      (microsoft.public.windowsxp.basics)
    • Re: Wont boot from SATA drives
      ... The only tricky part of the command, is verifying the disk is at /dev/hda ... I have had to do that on occasion, to be able to install an OS on a hard ... in that the add-in Silicon Image RAID ... "6 Using Hard Drives as Non-RAID ...
      (microsoft.public.windowsxp.hardware)
    • Re: 4 CONSECUTIVE CORRUPT DISK DISASTERS WITH WIN2K
      ... Disk and drive controller. ... The application install is responsible for placing the shortcuts. ... unreadable / corrupt. ... Restoration of data files from backup hard drives during re-installation ...
      (microsoft.public.win2000.general)