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
-
Gnome 47.1 Released with a Few Fixes
The latest release of the Gnome desktop is all about fixing a few nagging issues and not about bringing new features into the mix.
-
System76 Unveils an Ampere-Powered Thelio Desktop
If you're looking for a new desktop system for developing autonomous driving and software-defined vehicle solutions. System76 has you covered.
-
VirtualBox 7.1.4 Includes Initial Support for Linux kernel 6.12
The latest version of VirtualBox has arrived and it not only adds initial support for kernel 6.12 but another feature that will make using the virtual machine tool much easier.
-
New Slimbook EVO with Raw AMD Ryzen Power
If you're looking for serious power in a 14" ultrabook that is powered by Linux, Slimbook has just the thing for you.
-
The Gnome Foundation Struggling to Stay Afloat
The foundation behind the Gnome desktop environment is having to go through some serious belt-tightening due to continued financial problems.
-
Thousands of Linux Servers Infected with Stealth Malware Since 2021
Perfctl is capable of remaining undetected, which makes it dangerous and hard to mitigate.
-
Halcyon Creates Anti-Ransomware Protection for Linux
As more Linux systems are targeted by ransomware, Halcyon is stepping up its protection.
-
Valve and Arch Linux Announce Collaboration
Valve and Arch have come together for two projects that will have a serious impact on the Linux distribution.
-
Hacker Successfully Runs Linux on a CPU from the Early ‘70s
From the office of "Look what I can do," Dmitry Grinberg was able to get Linux running on a processor that was created in 1971.
-
OSI and LPI Form Strategic Alliance
With a goal of strengthening Linux and open source communities, this new alliance aims to nurture the growth of more highly skilled professionals.