Results 1 to 2 of 2

Thread: Data migration?

  1. #1
    Join Date
    Mar 2009
    Beans
    70
    Distro
    Ubuntu 10.04 Lucid Lynx

    Data migration?

    I'm upgrading the hard drive in one of my test servers.

    I know how to back up files and what not...

    But is there an easy to way to back up an entire hard drive (including files, ubuntu os, settings, etc) and place it on a new hard drive?

  2. #2
    Join Date
    Feb 2009
    Location
    Texas
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Data migration?

    Quote Originally Posted by m3bik View Post
    I'm upgrading the hard drive in one of my test servers.

    I know how to back up files and what not...

    But is there an easy to way to back up an entire hard drive (including files, ubuntu os, settings, etc) and place it on a new hard drive?
    "dd" command will let you clone a complete disk/partiton. Only drawback is that is an exact replica, so will take same space. If you want to clone sda, this is what you should do

    Code:
    sudo dd if=/dev/sda of=/media/disk1/sda-copy.img
    To restore

    Code:
    sudo dd if=/media/disk1/sda-copy.img of=/dev/sda
    disk1 is your external media, mounted here as a destination. Be sure your source is NOT in use or mounted!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •