How to Migrate Your Debian 10 Installation to a New 500GB SSD

Abstract: Migrate a Debian 10 installation to a new 500GB SSD using rsync and live USB booting while preserving permissions and ensuring the system remains bootable.

Created: 2026-08-31 by
Migrate your Debian 10 installation to a new 500GB SSD by booting from a live USB, creating three partitions on the new drive, and using rsync to copy your data while preserving permissions. This method ensures your system remains bootable and functional without requiring a fresh installation.

Preparation and Live Environment

Before beginning the migration, ensure you have a backup of critical data, as disk operations carry inherent risks. You will need a bootable Debian Live USB or any Linux-based rescue medium that can access both your old hard drive and the new 500GB SSD. Connect the new SSD to your system via SATA or M.2 slot if it is not already installed. Boot from the live USB and select "Try Debian" to enter the desktop environment without installing anything. Open a terminal window immediately, as most configuration steps require root privileges. Identify your drives using the lsblk command. Typically, your old drive will be identified as sda or nvme0n1, while the new empty SSD will appear as sdb or nvme1n1. Verify this carefully; writing to the wrong device will erase your existing system. For this guide, we assume the old drive is /dev/sda and the new target is /dev/sdb. If you are unsure about partition schemes, consider checking Backup and Restore Partition Information for Ubuntu LUKS LVM on a 250GB SSD for general principles of disk identification, although the commands differ slightly for non-LVM setups.

Partitioning the New SSD

The summary specifies creating three new partitions. A standard Debian installation typically requires a boot partition, a root partition, and optionally a swap partition. Use fdisk /dev/sdb to begin partitioning. First, create a small FAT32 partition for the BIOS/UEFI boot sector. Set its size to approximately 512MB and change its type to ef00 for UEFI systems or 83 for legacy BIOS. Next, create a second partition for the root filesystem (/). Allocate the majority of the remaining space to this partition and format it with ext4. Finally, create a third partition for swap space. The size should match your RAM capacity or follow standard guidelines, such as 2GB for systems with less than 4GB of RAM. After creating the partitions, label them appropriately using parted or e2label. Label the boot partition boot, the root partition root, and the swap partition swap. This makes subsequent mounting steps more intuitive. Format the boot partition with mkfs.vfat /dev/sdb1, the root partition with mkfs.ext4 /dev/sdb2, and initialize the swap space with mkswap /dev/sdb3. Do not format the boot partition if you plan to use GRUB directly on the MBR, but for modern GPT disks, a separate EFI System Partition is required.

Mounting and Data Transfer

Create mount points for the new partitions. Run mkdir -p /mnt/new_root/boot to establish the directory structure. Mount the root partition first: mount /dev/sdb2 /mnt/new_root. Then mount the boot partition: mount /dev/sdb1 /mnt/new_root/boot. If you created a swap partition, you do not mount it in the traditional sense; instead, activate it later or configure the fstab. Now, synchronize your data. Use rsync to copy files from the old root to the new one. Execute rsync -aAXv --exclude=/proc --exclude=/sys --exclude=/dev / /mnt/new_root. The flags ensure that permissions, ACLs, and extended attributes are preserved, which is crucial for system stability. This process may take some time depending on the amount of data. Once complete, verify the contents of /mnt/new_root to ensure essential directories like etc, home, and var are present. If you encounter permission errors during rsync, ensure you are running the command as root. For users dealing with complex package issues after migration, refer to Fixing E: Sub-process /usr/bin/dpkg returned an error code (1) on Kali Linux, as similar dependency resolution techniques apply when chrooting into the new environment.

Configuring Bootloader and fstab

Chroot into the new environment to update the bootloader and filesystem table. Install necessary tools if missing: apt-get install grub-pc grub-common (for BIOS) or grub-efi-amd64 (for UEFI). Update the fstab file located at /mnt/new_root/etc/fstab. Replace UUIDs or device names to point to the new partitions on /dev/sdb. You can find the new UUIDs using blkid. Incorrect fstab entries will prevent the system from booting. Install GRUB to the new disk. For BIOS systems, run grub-install /dev/sdb. For UEFI, mount the EFI partition to /boot/efi inside the chroot and run grub-install --target=x86_64-efi --efi-directory=/boot/efi. Finally, update the GRUB configuration with update-grub. This scans the new partitions and creates a boot menu compatible with the new hardware layout.

Finalizing the Migration

Exit the chroot environment and unmount the partitions: umount /mnt/new_root/boot followed by umount /mnt/new_root. Shut down the computer and remove the live USB. Disconnect the old hard drive to prevent accidental boot conflicts, then power on the system. The BIOS/UEFI should now detect the new SSD as the primary boot device. Select it from the boot menu. If successful, Debian 10 will load from the new 500GB SSD with all your data intact. Log in and verify that network settings, user accounts, and applications function correctly. Reconnect the old drive only after confirming the new system is stable, using it as a secondary storage device or for archival purposes.

Frequently Asked Questions

What happens if I select the wrong drive during rsync?

You will overwrite the contents of the selected drive with the source data, potentially causing significant data loss. Always double-check your lsblk output before specifying source and destination paths in the rsync command.

Can I keep my old hard drive connected during the migration?

Yes, but you must ensure your BIOS/UEFI boot order prioritizes the new SSD. Keeping both drives connected allows you to use the old one as a backup if the migration fails, but it can complicate UUID detection in fstab.

Do I need to reinstall drivers for the new SSD?

Generally, no. Standard NVMe and SATA controllers are handled by the kernel modules included in Debian 10. However, if you use proprietary firmware, ensure it is installed within the chroot environment before rebooting.

Why did my system fail to boot after changing fstab?

Incorrect UUIDs or missing mount points in /etc/fstab are the most common causes. Use a live USB to edit the file again, verifying UUIDs with blkid against the actual partition labels.

Is it safe to delete the old partitions immediately after migration?

No. Wait until you have fully tested the new SSD for stability, performance, and application compatibility. Only delete old partitions once you are confident the new setup is reliable.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More