Page 1 of 4 123 ... LastLast
Results 1 to 10 of 35

Thread: Cloning an entire SSD Step-by-Step Instructions?

  1. #1
    Join Date
    Oct 2014
    Location
    Switzerland
    Posts
    397

    Default Cloning an entire SSD Step-by-Step Instructions?

    Hello,

    I wish to clone my entire 120gb SSD (A) with OpenSUSE 13.2 KDE loaded onto another 120gb SSD(B).

    I have all the adapters I need, what I lack is the knowledge.

    I was wondering if someone could let me go through a step-by-step instructions on how to achieve this? I basically want the B formatted and partitioned EXACTLY as A(I use Ext4 by the way, BTRFS left me a bad taste a few months ago).

  2. #2
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,703

    Default Re: Cloning an entire SSD Step-by-Step Instructions?

    Best way is to use a clone program like Clonezilla

    You can use dd to do a binary copy of the drive. Note you copy the drive not a partition on a drive. Copying partitions may change the UUID thus making boot a bit harder

  3. #3
    Join Date
    Oct 2014
    Location
    Switzerland
    Posts
    397

    Default Re: Cloning an entire SSD Step-by-Step Instructions?

    So, where would I find step-by step instructions for clonezilla?

  4. #4

    Default Re: Cloning an entire SSD Step-by-Step Instructions?

    Quote Originally Posted by gogalthorp View Post
    Best way is to use a clone program like Clonezilla

    You can use dd to do a binary copy of the drive. Note you copy the drive not a partition on a drive. Copying partitions may change the UUID thus making boot a bit harder
    Here are more details.

    Work as root.

    Connect the two drives. Find their names through command
    Code:
    fdisk -l
    The names may be, say, /dev/sdc and /dev/sdd. Attention: be very careful with the names, otherwise some disk will be wiped out. The name of a disk cannot be /dev/sdc1

    Now, let /dev/sdc be the source and /dev/sdd be the destination. Naturally, /dev/sdd must be greater or equal to /dev/sdc in capacity. The formatting and partitioning of /dev/sdd doesn't matter before the dd command is issued, since the entire disk, including its partition table, will be overwritten.

    The copy (otherwise known as disk dump, dd, imaging, cloning) command is

    Code:
    dd if=/dev/sdc of=/dev/sdd; sync
    Be very careful with the syntax of the command. There are no warnings about overwriting issued.


    However, this type of copy has very narrow use. I find it possible that /dev/sdd cannot be used as bootable OS disk, because of names. But I don't know much and haven't done such a thing.

    What it will serve perfectly for, is a backup for /dev/sdc, since you can bring back the content from /dev/sdd to /dev/sdc, and then /dev/sdc will work as OS disk.

  5. #5
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,729
    Blog Entries
    20

    Default Re: Cloning an entire SSD Step-by-Step Instructions?

    dd is by far the best and I would suggest
    Something like

    Code:
    ionice -c3 ddrescue /dev/sda /media/sdc1/laptop.iso
    Where sda is the sdd
    And where: /media/sdc1/laptop.iso is the target

    You will need to replace with your actual source and target which will vary.

    I usually run all this from Parted Magic live session
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  6. #6
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,703

    Default Re: Cloning an entire SSD Step-by-Step Instructions?

    Quote Originally Posted by SJLPHI View Post
    So, where would I find step-by step instructions for clonezilla?
    On the clonezilla website maybe???

    http://clonezilla.org/

  7. #7
    Join Date
    Oct 2014
    Location
    Switzerland
    Posts
    397

    Default Re: Cloning an entire SSD Step-by-Step Instructions?

    Confirmation:
    Code:
    Disk /dev/sda: 119.2 GiB, 128035676160 bytes, 250069680 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0x389a1131
    
    
    Device     Boot    Start       End   Sectors  Size Id Type
    /dev/sda1           2048  16771071  16769024    8G 82 Linux swap / Solaris
    /dev/sda2  *    16771072 241168383 224397312  107G 83 Linux
    
    
    Disk /dev/sdb: 111.8 GiB, 120034123776 bytes, 234441648 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0x0001cc68
    
    
    Device     Boot  Start       End   Sectors   Size Id Type
    /dev/sdb1         2048    206847    204800   100M  7 HPFS/NTFS/exFAT
    /dev/sdb2  *    206848 234436607 234229760 111.7G  7 HPFS/NTFS/exFAT
    
    
    Disk /dev/sdc: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disklabel type: dos
    Disk identifier: 0x879e7d5c
    suppose my sda is Linux OS, sdc is mounted drive.
    dd if=/dev/sda of=/dev/sdc; sync
    would do the trick?


  8. #8
    Join Date
    Oct 2014
    Location
    Switzerland
    Posts
    397

    Default Re: Cloning an entire SSD Step-by-Step Instructions?

    Also slight problem, I just realized that my LinuxSSD is 128gb, and target SSD is 120gb, any way to still clone it? I'm using maybe 40gb of 128gb in originating drive.

  9. #9
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,703

    Default Re: Cloning an entire SSD Step-by-Step Instructions?

    no

    Target must be equal or greater then the source

    You could partition the target and copy files but you do have the problem of different UUID for the partitions and thus must edit some files to allow a boot from the target media.

  10. #10
    Join Date
    Oct 2014
    Location
    Switzerland
    Posts
    397

    Default Re: Cloning an entire SSD Step-by-Step Instructions?

    I'm listening.

Page 1 of 4 123 ... LastLast

Posting Permissions

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