Cloning your Steam Deck's 512GB NVMe SSD to a 2TB NVMe SSD using CLI tools like dd is a straightforward process. Below are the detailed steps to ensure a successful clone. Please note that this process will erase all data on the target 2TB NVMe SSD, so ensure you have backups of any important data.
Step-by-Step Guide
1. Power Off and Attach the New SSD
- Power off your Steam Deck.
- Open the Steam Deck and attach the new 2TB NVMe SSD. The Steam Deck has two M.2 slots, so you can install the new SSD alongside the existing one.
- Reassemble the Steam Deck and power it back on.
2. Identify the Drives
-
Open a terminal on your Steam Deck.
-
List the available block devices to identify the current and new SSDs:
lsblk
You should see something like this:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
nvme0n1 259:0 0 477G 0 disk
├─nvme0n1p1 259:1 0 512M 0 part /boot/efi
└─nvme0n1p2 259:2 0 477G 0 part /
nvme1n1 259:4 0 2T 0 disk
In this example, nvme0n1 is the original 512GB SSD, and nvme1n1 is the new 2TB SSD.
3. Unmount the Original SSD Partitions
Ensure that no partitions on the original SSD are mounted. This is crucial to avoid data corruption.
sudo umount /dev/nvme0n1p1
sudo umount /dev/nvme0n1p2
You might need to unmount other partitions if they exist. You can check mounted partitions with:
mount | grep nvme0n1
4. Clone the SSD using dd
Use the dd command to clone the entire 512GB SSD to the 2TB SSD. This will copy all data, including the partition table.
sudo dd if=/dev/nvme0n1 of=/dev/nvme1n1 bs=4M status=progress
if=/dev/nvme0n1: Input file (the original 512GB SSD).
of=/dev/nvme1n1: Output file (the new 2TB SSD).
bs=4M: Block size of 4 megabytes for faster copying.
status=progress: Shows the progress of the cloning process
Warning: Double-check the if and of parameters. Reversing them will erase your original SSD.
5. Resize Partitions to Utilise the Remaining Space
Once the cloning process is complete the new SSD will have the same partition sizes as the old one. To utilise the remaining space you will need to resize the partitions.
-
Install gdisk if it is not already installed. This tool will help you manage the GPT partition table.
sudo pacman -S gdisk
-
Use gdisk to resize the partitions on the new SSD.
sudo gdisk /dev/nvme1n1
-
Inside gdisk, follow these steps:
- Type
p to print the current partition table.
- Type
d to delete the second partition (the larger one, typically the root partition). Note the partition number; it is usually 2.
- Type
n to create a new partition.
- When prompted for the partition number, use the same number as the deleted partition.
- For the first sector, you can press Enter to accept the default (which should be the same as the old partition's start).
- For the last sector, press Enter to use all remaining space.
- Type
w to write the changes to the disk and exit gdisk.
-
Now, resize the filesystem to fill the new partition. First, you need to identify the new partition number using lsblk. Assuming it is still nvme1n1p2, you can resize the filesystem. For ext4 filesystems, use resize2fs:
sudo resize2fs /dev/nvme1n1p2
If the partition uses a different filesystem, use the appropriate tool (e.g., btrfs filesystem resize max /dev/nvme1n1p2 for Btrfs).
6. Update the Boot Loader
If your Steam Deck uses GRUB as its boot loader, you need to reinstall it to the new SSD.
-
Mount the EFI partition and the root partition of the new SSD:
sudo mount /dev/nvme1n1p2 /mnt
sudo mount /dev/nvme1n1p1 /mnt/boot/efi
-
Chroot into the new system:
sudo arch-chroot /mnt
-
Reinstall GRUB:
grub-install /dev/nvme1n1
grub-mkconfig -o /boot/grub/grub.cfg
-
Exit the chroot environment:
exit
-
Unmount the partitions:
sudo umount /mnt/boot/efi
sudo umount /mnt
7. Test the New SSD
- Reboot the Steam Deck.
- Enter the BIOS/UEFI settings and change the boot order to boot from the new 2TB NVMe SSD.
- Save changes and exit the BIOS/UEFI. The Steam Deck should now boot from the new SSD.
8. Remove the Old SSD (Optional)
Once you have verified that the new SSD is working correctly, you can power off the Steam Deck, open it, and remove the old 512GB SSD if desired.
Final Notes
- Backup Important Data: Always back up important data before performing operations like cloning.
- Verify Device Names: Double-check the device names (
nvme0n1 and nvme1n1) to avoid data loss.
- Time-Consuming Process: The
dd process can take some time, depending on the data amount and SSD speeds.
Following these steps will successfully clone your Steam Deck's 512GB NVMe SSD to a 2TB NVMe SSD.