Results 1 to 7 of 7

Thread: Clone current Ubuntu 12.04 to install in new hdd

  1. #1
    Join Date
    Mar 2012
    Beans
    18

    Question Clone current Ubuntu 12.04 to install in new hdd

    I have been running Ubuntu 12.04 (not a live version) for a few weeks from a flash drive, while developing android applications. I have made some modifications and would like to clone, or make an ISO, of my current system that is on the flash drive and put it on a SATA HDD. I want to use the SATA as the primary working environment, so it needs to be bootable and all.

  2. #2
    Join Date
    Aug 2005
    Beans
    6,029

    Re: Clone current Ubuntu 12.04 to install in new hdd

    You could try using something like dd or clonezilla to image the partition/drive and then afterwards resize it with gaparted to fit the drive.

    Another option is something like Remastersys.
    http://ubuntuforums.org/showthread.php?t=1967865
    http://ubuntuforums.org/showthread.php?t=1910591

  3. #3
    Join Date
    Jun 2011
    Beans
    33

    Re: Clone current Ubuntu 12.04 to install in new hdd

    Quote Originally Posted by johnnydoe View Post
    I have been running Ubuntu 12.04 (not a live version) for a few weeks from a flash drive, while developing android applications. I have made some modifications and would like to clone, or make an ISO, of my current system that is on the flash drive and put it on a SATA HDD. I want to use the SATA as the primary working environment, so it needs to be bootable and all.
    You should have run a VM to do this as I do not think it will ever run flawlessly by copying.

    ṤⱧǠᴆŐƜ
    shadowsgovernment.com

  4. #4
    Join Date
    Nov 2009
    Location
    Mataro, Spain
    Beans
    12,915
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Clone current Ubuntu 12.04 to install in new hdd

    I don't like dd or clonezilla personally because dd copies empty space too (so you will wait longer), and clonezilla has the limitation of being able to restore only on a bigger partition, not smaller. In your case going from usb stick to a hdd that should be fine, but I still don't like the principle.

    You can also use something like FS Archiver. That can restore to a partition smaller than the source, as long as the data fits.
    http://www.fsarchiver.org/Main_Page

    You will probably need to restore the bootloader and maybe touch few other settings after the restore. If you use clonezilla the UUID of the partition should stay the same I think, but with FSA the partition will keep its UUID which will not be the same as the one inside the ubuntu OS you are copying.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 14.04 LTS 64bit & Windows 10 Pro 64bit

  5. #5
    Join Date
    Jun 2011
    Beans
    33

    Re: Clone current Ubuntu 12.04 to install in new hdd

    Quote Originally Posted by darkod View Post
    I don't like dd or clonezilla personally because dd copies empty space too (so you will wait longer), and clonezilla has the limitation of being able to restore only on a bigger partition, not smaller. In your case going from usb stick to a hdd that should be fine, but I still don't like the principle.

    You can also use something like FS Archiver. That can restore to a partition smaller than the source, as long as the data fits.
    http://www.fsarchiver.org/Main_Page

    You will probably need to restore the bootloader and maybe touch few other settings after the restore. If you use clonezilla the UUID of the partition should stay the same I think, but with FSA the partition will keep its UUID which will not be the same as the one inside the ubuntu OS you are copying.

    That's what I would be worried about is the UUID not meshing with the system on new hardware. I would have to read up on this to see how the UUID is assigned on new hardware. Good post darkod

    ṤⱧǠᴆŐƜ
    shadowsgovernment.com

  6. #6
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Clone current Ubuntu 12.04 to install in new hdd

    I am in the clean install and copy /home over family. Possibly some settings from /etc. If you have installed a lot of apps, you can export a list and reinstall. If you have not housecleaned the downloaded .debs you can just copy & reinstall.

    How ever you clone you have to edit/change UUIDs in fstab & reinstall grub to update its UUID references. There are at least a couple other files with drive info or UUID references and when an update to something happens it will want that UUID or drive.

    If you try to boot with identical UUIDs, you may get updates to one system one day and the other the next and it gets confused.

    Either way you have some effort to configure the new system.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  7. #7
    Join Date
    Aug 2005
    Beans
    Hidden!

    Re: Clone current Ubuntu 12.04 to install in new hdd

    In the past I have used the copy function in gparted, and clonezilla, to successfully clone one hdd containing my ubuntu installation to another hdd. Have also used partition wizard home edition (free)(installed to XP)for this.

Tags for this Thread

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
  •