Results 1 to 6 of 6

Thread: Migrating data from SSD to HDD?

Hybrid View

  1. #1
    Join Date
    Nov 2012
    Location
    France
    Beans
    112
    Distro
    Xubuntu 14.10 Utopic Unicorn

    Migrating data from SSD to HDD?

    Hi, I currently have a 2TB HDD and a 256GB SSD (Samsung 840 Pro to be exact).

    I installed Xubuntu 12.10 (64 bit) on the SSD, then I tried to copy my whole /home directory to it. Once I rebooted, I couldn't login, every time I pressed "enter" after inputting my password, it went back to the login menu.

    Note that on the HDD, I have a 30GB / partition and a ~2000GB /home partition, on the SSD I only have a ~250GB / partition.

    So, how can I migrate all my stuff without breaking everything like I did?

  2. #2
    Join Date
    Jul 2009
    Beans
    516
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Migrating data from SSD to HDD?

    So do you want to move EVERYTHING from the SSD to the HD or just /home ?

    Your best option is to boot a live CD, mount both home directories and use rsync to copy from one to the other.
    Code:
    sudo mkdir /mnt/{old-home,new-home}
    sudo mount /dev/sda5 /mnt/old-home
    sudo mount /dev/sdb5 /mnt/new-home
    rsync -avh --progress --stats /mnt/old-home/ /mnt/new-home/
    sync
    sudo umount /mnt/old-home
    sudo umount /mnt/new-home
    Change sda5/sdb5 to your correct partition.

    Once done you'll also need to update /etc/fstab so it uses the correct partition UUID value
    Code:
    sudo blkid -s UUID -o value /dev/sdb5
    Replace sdb5 with the partition of your new home partition.
    Mark your thread as [SOLVED], use Thread Tools on forum page.

  3. #3
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Migrating data from SSD to HDD?

    So did you try to copy your 2TB /home into your 256GB SSD?

    I only have a 64GB SSD, but I put two 27GB / (root) partitions on it, one current 12.04 and the other 12.10. Each has /home included, but all data is still in data partitions on my hard drives. My goal always is that every drive has an operating system and that system is fully configured to boot from just that drive. Data may then be on any drive. That way when one drive fails, I can still boot another, even if some data is not mounted from a failed drive.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  4. #4
    Join Date
    Apr 2006
    Location
    Ubuntuland
    Beans
    2,124
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Migrating data from SSD to HDD?

    I have a 128G SSD with a separate / and /home

    But I removed the folders for Pictures, Music, Download, Videos and replaced with symbolic links to the HDD for those BIG folders.
    24 beers in a case, 24 hours in a day. Coincidence? I think not!

    Trusty Tahr 64 bit, AMD Phenom II 955 Quad Core 3.2GHz, GeForce 9600 GT
    16G PC2-6400 RAM, 128 GB SSD, Twin 1TB SATA 7200 RPM RAID0

  5. #5
    Join Date
    Nov 2012
    Location
    France
    Beans
    112
    Distro
    Xubuntu 14.10 Utopic Unicorn

    Re: Migrating data from SSD to HDD?

    So I've copied my /home and /, but the /home landed in a directory named "old-home" in the SSD's /home partition. And of course, the SSD refuses to boot.

  6. #6
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Migrating data from SSD to HDD?

    The SSD still should boot. It just will create a new /home if you have not added the correct entry for you /home into fstab. Did you change your /home entry in fstab with your new UUID?

    When you copied did you preserve ownership & permissions?
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

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
  •