Migrating your system disk to an SSD
Windows
The easiest way to copy a Windows partition is to use a 30-day demo version of Acronis True Image [2], which is free of charge. The True Image GUI (Figure 2) is self-explanatory.
After you copy the partition, you have to restore the partition serial numbers. To do so, copy the serial number of the original partition in a file (Listing 1, first line). You can edit the number with a hex editor. Keep in mind that the number is stored in little endian format, which means backwards.
Listing 1
Copying Partition Serials
In this case, editing is unnecessary. I will write the same number back, which I will do with the second line from Listing 1. Note: skip
and seek
skip the given number of blocks before input (skip) and output (seek). You'll need to adjust the device name to match your own configuration.
Migration
Now it's time to fill the SSD with the image backup. In the case of a Windows partition, copying the backup to the SSD is no problem for True Image (Figure 3), but it is wise to double-check the setup. If you mix up source and target partitions, you have to start over. However, at least you won't cause a fatal problem because you never have to touch the original hard disk.
If you are working in Linux, it is better to start by installing the operating system to the SSD drive using an installation CD rather than trying to copy it. Starting with a new install has several advantages:
- All relevant configuration files will get the UUIDs of the new partitions.
- The system creates a new MBR with an updated partition table.
- The installation procedure compiles a new Grub configuration, which will also boot Windows.
- You get a fresh and unfragmented Linux.
Of course, nobody wants to lose all the applications that existed on the original disk and its configuration. Once you have installed Linux, you can overwrite the installation with the Rsync copy or the original system. Use the flag --ignore-existing
to skip all files that the basic installation has already created. Apart from that, you can use the rsync
command I described earlier.
This strategy has two minor disadvantages. First, --ignore-existing
won't touch some configuration files that you have probably edited in the past (e.g., hosts
, passwd
, and group
in /etc
). Some applications might not work because they need a special user or because they try to translate a hostname in an IP address without DNS. You should manually adjust the necessary entries in these files.
Second, if you boot Windows via Grub, you will probably not be able to upgrade Windows (e.g., to Windows 8). The upgrade process wants to edit the Windows bootloader in the MBR, and it stops with an error message if it finds Grub instead.
Conclusion
An SSD instead of a hard drive results in a significant performance gain. I benchmarked two SSDs against the original hard disk. Figure 4 shows the results. The two SSDs differ a bit, but you see a five- or sixfold increase in I/O performance during sequential reads and a more than eightfold increase during sequential writes. The other results arise from random read and write operations with different block sizes and queue depths. Small block sizes clearly decrease performance, but in the context of the hard disk, you get a huge performance boost in all cases.
Switching your hard drive to an SSD drive does not require sorcery, but you will need a methodical approach, good preparation, and a lot of focus. The steps described in this article will help you switch your disk over to SSD. The reward for all your effort will be a much faster system.
Infos
- GParted feature table: http://gparted.sourceforge.net/features.php
- Acronis True Image: http://www.acronis.com/en-us/personal/pc-backup
« Previous 1 2 3
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Latest Cinnamon Desktop Releases with a Bold New Look
Just in time for the holidays, the developer of the Cinnamon desktop has shipped a new release to help spice up your eggnog with new features and a new look.
-
Armbian 24.11 Released with Expanded Hardware Support
If you've been waiting for Armbian to support OrangePi 5 Max and Radxa ROCK 5B+, the wait is over.
-
SUSE Renames Several Products for Better Name Recognition
SUSE has been a very powerful player in the European market, but it knows it must branch out to gain serious traction. Will a name change do the trick?
-
ESET Discovers New Linux Malware
WolfsBane is an all-in-one malware that has hit the Linux operating system and includes a dropper, a launcher, and a backdoor.
-
New Linux Kernel Patch Allows Forcing a CPU Mitigation
Even when CPU mitigations can consume precious CPU cycles, it might not be a bad idea to allow users to enable them, even if your machine isn't vulnerable.
-
Red Hat Enterprise Linux 9.5 Released
Notify your friends, loved ones, and colleagues that the latest version of RHEL is available with plenty of enhancements.
-
Linux Sees Massive Performance Increase from a Single Line of Code
With one line of code, Intel was able to increase the performance of the Linux kernel by 4,000 percent.
-
Fedora KDE Approved as an Official Spin
If you prefer the Plasma desktop environment and the Fedora distribution, you're in luck because there's now an official spin that is listed on the same level as the Fedora Workstation edition.
-
New Steam Client Ups the Ante for Linux
The latest release from Steam has some pretty cool tricks up its sleeve.
-
Gnome OS Transitioning Toward a General-Purpose Distro
If you're looking for the perfectly vanilla take on the Gnome desktop, Gnome OS might be for you.