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).
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
Connect the two drives. Find their names through command
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
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.
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.
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.
Using Clonezilla is so easy, documentation really isn’t needed. But, if you want to know how to do it, I assume there should be many blogs by people who described their step by step experience. Maybe even a YouTube video.
Only BIG issue to be careful about which is common to all copying that is destructive (wipes out the target before copying) is that you <must> <absolutely> be certain which is the source and which is the target when configuring.
As for the smaller target disk, IIRC and AFAIK (Yeah),
When doing disk copying, only the partition contents of the disks are important. The actual geometry and size of the disks <might> not be as important.
If that is true, then you should be able to shrink the last partition of your source disk using something like Gparted Live (http://gparted.org/livecd.php) by maybe 20MB before running Clonezilla. And, you shouldn’t really need documentation how GParted Live works, it’s very intuitive.
<Assuming> you have a default disk layout, yes.
You can also display your existing partition and disk layout with each of the following which displays the disk information in different ways.
I attempted shrinking and moving over the boot partition over, again, unsuccessful. I’ve decided to just do a fresh install for the time being. In the worst case scenario, I will just take the 128gb ssd out and stick into the other laptop.
Clonezilla, is unfortunately not the best option for me right now, as I don’t have an optical drive, and none of my flashdrive seems to be compatible to be set to a boot drive. I’m also finding that my main OpenSUSE has been wobbly and less stable lately.
Any flash drive should be bootable. Making it botable is a function of the software you use to write the iso image to the flash. Just download the latest clonezilla iso and use an app like [Rufus](http://Rufus - Create bootable USB drives the easy way) to write it to one of your flash drives. When you boot, tap f8 when your bios screen appears and select the flash drive as your boot option. For some motherboards, you may have to do something different to boot from USB but f8 will generally work. Post back if it doesn’t or if it’s not clear which boot option is the USB.
For the reason stated above, I think the safest thing to do is to use clonezilla to save the entire drive as an image and then “restore” that image to your new drive. That way you have a copy of the original image, which you want to have and keep anyway, and there is no risk of accidentally over-writing your original copy. You do need a drive location to store the image that you make of the original copy, but again, you probably want a saved image anyway. This is the alternative to doing a device-to-device procedure where you would have both the original drive and the new drive connected and make a direct copy. This works also but I think involves more risk and I have had a few more problems getting this to work.
This is using clonezilla from a boot device like a DVD or bootable flash, so you won’t have your OS mounted at the time you make your image. As suggested, this is really very easy, but I can write out a set of directions if you really think you need them.
If you want to be perfectly safe, physically disconnect any drives other than the drive you are making an image of and the drive you are storing the image on. After the image is created. Power down and physically disconnect the original drive you are copying. Finally, connect the new blank drive and restore the image to the drive. Note, you are making an image of a “device” and not a “partition”. This saves you from having to create partitions on the drive to receive the data.
If you really want to do a device to device copy, most drive manufacturers provide tools to do that kind of thing. I have used the Samsung software on a number of occasions to cloning a Samsung SSD. If you have such software that will run on the platform you are in, that would be another option, but there are advantages to learning to use clonezilla. I think that it is absolutely essential to have backup images of your OS and applications drive. This is the best insurance against malware and mal-user (meaning when I inadvertently do more damage to my own system by being stupid than any software ever did). It often takes me less than 5 minutes to restore from an image. Compare that to doing a complete re-install of your OS and all your applications, configurations, etc.
Post back if you want a set of instructions for what I suggest, but I am confident you can manage on your own with a little care.
Well moment of truth, I am currently cloning my 128gb ssd to a 240gb ssd. This is because I learned that I need more capacity. One slight question now is how would/can I increase the partition size, whence I have everything working properly?