Mounting an External Drive (Linux)
If a failed server still has intact drives, our technicians can attach them to your new Linux server. This guide shows how to detect, mount and copy data from them – without network access to the old server.
Important — follow this order: Install the operating system on the new server completely before letting us know the old drives can be connected. If the drives are attached before the OS installation, the installer may detect the wrong disks and irreversibly overwrite the old data.
Overview
| Phase | What happens |
|---|---|
| 1. Detect the drive | Find the new device name of the attached drive |
| 2. Assemble RAID (if applicable) | Reactivate software RAID arrays from the old server |
| 3. Mount the partition | Mount the old drive's partitions into the new system |
| 4. Transfer data | Copy files, configurations, and databases to the new server |
Step 1: Detect the drive
The new drive will appear as an additional device — e.g. /dev/sdb, /dev/sdc, or for NVMe as /dev/nvme1n1. For further identification check the partition table:
Step 2a: No RAID — mount partitions directly
If a separate /boot partition exists, mount it too:
Adjust sdb1 and sdb3 to match the actual partition names from the lsblk output.
Step 2b: Software RAID — assemble arrays
If the automatic scan fails, assemble the RAID manually:
If only one drive of a RAID-1 set is available, force-assemble in degraded mode:
Then mount the RAID partition:
Step 3: Activate LVM volumes (if applicable)
Step 4: Check the filesystem (recommended)
fsck must only be run on unmounted partitions. Unmount first if you already mounted in step 2.
Step 5: Transfer data to the new server
Web files
Configuration files
Home directories
Database files
Only copy MySQL data files if both servers run the same MySQL/MariaDB version. For different versions, use mysqldump instead.
Step 6: Carry over users and SSH keys
Step 7: Transfer cron jobs
Step 8: Unmount and clean up
For RAID setups additionally: