Ihave Ubuntu 14.04 with a lot of packages and work-related stuff that I am very happy with it. It is installed on my main SSD drive which is a 120GB one (I had chosen "/" when I installed Ubuntu, so I believe everything should be on this drive). It shows up as /dev/sda.
Since the new 240GB drive has obviously more capacity and is faster (a newer generation than my 120GB one), I want to move my Linux to this new drive. This new drive shows up as /dev/sdb and at the moment it is not formatted or anything (I have literally unpackaged and inserted into my PC right now :P)
Clonezilla is a free partition and disk imaging/cloning tool which can be used to backup all your data (whole disks or partitions) in a highly compressed way and later clone it back to your hard disk to get it into the exact same condition. This is faster than installing the OS most of the times.
This will basically create an image of you disk sda and write it onto sdb (same partition layout etc.) Ofcourse this'll write the whole 120GB as it's file-agnostic. Thus very safe, but not the fastest, if you only use small portions of the disk.However if the input disk is rather full it might even be faster.
Mount the partition where you need to install GRUB 2 (Hard disk partition) and the file system appears in Nautilus. Now we have to mount the correct Hard disk partition to make changes to actual Hard Disk MBR. For that we need to:
Unlike the other answers this allows you to clone the Linux installation and have it added to Grub menu with your current installations intact. Additionally it automatically modifies /etc/fstab for you and updates grub boot menu.
rsync is used for optimal speed should you choose to reclone the partition. This is beneficial if upgrade fails, you wait for bug fix and want to run upgrade again. Similarly you may have chosen wrong options during upgrade and want to do it again.
If you do not have a USB adapter, the same procedure should work with hot-swapping of disks, but here you are on your own. A safer way is to use a USB disk or CD/DVD with installed system (e.g., installation medium). In this case, you can put both disks (the new and and the old one) in their places from the start, then boot from the medium and do the copying etc.
Below is my research with description of trying to copy Ubuntu 20.04 with enabled hibernation on separate swap partition on Thinkpad T420 to new SSD drive based on answers in the current question. Eventually I had success but encountered many problems (nuances) while trying this recommendations.Below SSD and HDD will be considered as interchangeable terms.
For copying I used rsync command.The problem was that my new SSD drive did not boot Ubuntu without old SSD drive (both SSD drives must be connected). The only recommendations about this situation I found was to install or update or recover Grub configuration. But this was not helpful.Setting UUID of new root to grub config and updating grub as recommended here:
If you do this for Ubuntu with enabled hibernation on separate swap partition you also have to update UUID of swap partition in /etc/uswsusp.confand run command for updating initramfs to apply the change:
Currently trying to use this answer to migrate my install from old HDD to new HDD. I'm failing at the step "Install grub to the new drive". Grub keeps pointing/finding the install on the old HDD and I don't know how to convince Grub to look at the new HDD.
Ubuntu copied in such a way is loading normally but I noticed some problem with security system:When I mount other drive's partitions by gnome-disks I cannot open them in nautilus (clicking their links in gnome-disks will do nothing). This is due to error: Permission denied.
( Update. Later I found out that problem with Permission denied was due to bad files copying. Command rsync -a does not copy all properties of files and cannot be used for copying system files. Need to use command like rsync -axHAWXS --numeric-ids --info=progress2 in case of rsync but better to use cp -a because cp works faster than rsync for local copying - Copy entire file system hierarchy from one drive to another )
For more high speed it is better to insert source and destination SSD drives inside notebook (the second SSD drive by optibay / caddy adapter), and will run dd command from Bootable USB stick or USB SSD / USB HDD.I found two programs for Ubuntu to make bootable USB stick or USB HDD. I wanted to make USB HDD (SSD) and this was quite challenging.
WoeUSB program also can be used for creating bootable HDD, not only USB stick but this is not specified in the program description.The command below creates bootable HDD from Windows 10 Pro image (by UI it is not possible to specify USB Hard drive, only USB stick):
Also tried UNetbootin tool (for Ubuntu) but it cannot use NTFS, only FAT32 - this is not appropriate in case image of Win 10 pro since it has file with about 4,5 Gb in size (FAT32 does not support files with the size more than 4 Gb). Ubuntu 20.04 installation image must be able to be installed on FAT32 partition (the most biggest file in ubuntu-20.04.3-desktop-amd64.iso image is casper/filesystem.squashfs with the size of 2,1Gb). I used already installed Ubuntu connected via USB SSD.
By UI it is not possible to specify target as USB Hard drive, only as USB stick. In targetdrive parameter path must be specified to the mounted USB drive. And at the end there must be slash sign / otherwise command will fail with error:
This is also good way to go but will take more time in preparation and set up in comparison to using dd command - Clonezella Live USB stick must be prepared, booted, and many menus of Clonezella UI must be went through before starting the process of cloning or saving an image of the system.Clonezella works in the similar way as dd - UUIDs, PARTUUIDs will be copied to target SSD drive also.
The hard drive contains a single partition (such as ext4), with a working Ubuntu installation. Somehow, I have managed to download a recent ISO LiveCD image to this hard drive (such as 14.04.2). I would now like to install the LiveCD system to the hard drive, replacing the existing system.
I have read the responses to a similar question here Can I install Ubuntu on the same hard drive I booted with? but the answers do not seem to be applicable to my case (they set out from a less complex initial situation.)
R-Drive Image is a potent utility providing disk image files creation for backup or duplication purposes. A disk image file contains the exact, byte-by-byte copy of a hard drive, partition or logical disk and can be created with various compression levels on the fly without stopping Windows OS and therefore without interrupting your business. These drive image files can then be stored in a variety of places, including various removable media such as CD-R(W)/DVD, Iomega Zip or Jazz disks, etc.
R-Drive Image creates images on-the-fly, that is, without the need to restart Windows. Image files can be written to any storage places visible by the host system, including removable and network drives.
R-Drive Image files may contain images of entire hard drives, individual partitions, individual files, and even several unrelated disk objects. Data in such files may be compressed, password-protected and encrypted, commented, and split into several files. R-Drive Image uses volume snapshots to create consistent point-in-time disk images. Image files can be checked for errors to ensure full data integrity. This check can be performed for both already existing images and new images automatically after their creation.
R-Drive Image restores images or individual files and folders from images to original drives, new drives, any other partitions, or even to free hard drive space on the fly. Partitions, being restored can be resized, and existing partitions can be deleted and/or erased, moved, or resized. Entire hard drive images can be restored to another drive, shrinking/expanding as needed.
WIM files only capture a single partition. You can usually capture just the Windows partition, and then use files from that image to set up the rest of the partitions on the drive. If you've created a custom partition configuration, see Capture and Apply Windows, System, and Recovery Partitions.
Optional Optimize the image to reduce the time it takes your device to boot after you apply the image. Optimizing an image especially helps when you're building an image that you'll be deploying to many machines, like in a build-to-stock scenario.
If the content used on the 250 is small enough create an new empty partition on the 250 using perhaps 100gb.(102400MB)Do that in win7 by going to My Computer, right click select Manage>Disk Management. Select C: and right click, shrink partition the amount of MB to shrink can be 102400 This should then give you a small enough installed OS partition to transfer to the new 160.
Here is what I would do: Take your 250GB drive and partition it into two equal parts, do your install onto partition 1, after the 160GB arrives go ahead and run your backup of partition 1 to partition 2 on the 250GB drive, install 160GB hard drive, then restore from partition 2 of the 250GB drive to the 160GB drive. Windows 7 install/backup utility should handle all of this for you.
Many imaging tools don't copy the partition byte-by-byte to generate the image but rather grab each of the files and pack them together. This causes the tool to not create exact images, but it does allow for flexibility with regards to the media size.
There are a few paid tools (I use Casper, I think Acronis does it as well, probably others) that will let you clone partitions and will downsize (and upsize) them on the fly as much as free space allows. Completely effortless and foolproof. Most freeware I'm aware of requires a two step process - resize the partition, then clone.
There are multiple desktops available for use with Fedora. Each has a slightly different look and feel and offers varying levels of customization. You can use the Fedora Workstation image, which comes with the GNOME desktop by default, and then change your environment afterwards by installing additional packages, or you can download a spin image which will give you a different environment out of the box. Visit Fedora Spins for more information.
3a8082e126