To move the entire Linux and Windows drive from a WD500G hard drive to another drive while keeping the Windows partition as an SSD, you can follow these steps:
-
Backup important data from both the Linux and Windows partitions.
-
Connect both the source WD500G hard drive and the destination drive to your computer.
-
Identify the partitions on the source drive using a tool like
gpartedorfdisk. You'll likely find two partitions: one for Linux (ext4 or similar) and one for Windows (NTFS). -
Clone the Linux partition to the destination drive using a tool like
ddorClonezilla. Here's an example command usingdd:
sudo dd if=/dev/sdX1 of=/dev/sdY1 bs=4M status=progress
Replace sdX with the device identifier of the source Linux partition and sdY with the identifier of the destination drive's partition.
-
Clone the Windows partition using a tool like
EaseUS Partition MasterorMacrium Reflect. These tools can create an exact copy of the Windows partition while converting it to an SSD-friendly format. -
Install the destination drive into your computer, replacing the source drive.
-
Boot your computer from a Linux live USB.
-
Mount the partitions from the destination drive.
-
Swap the UUIDs of the Linux and Windows partitions in the
/etc/fstabfile. You can find the UUIDs using theblkidcommand. -
Reboot your computer.
Now, your Linux and Windows partitions should be on the new drive, with the Windows partition as an SSD.
References: