Skip Navigation

Migrating a linux install to a different drive

The title pretty much speaks for itself... I have a linux install that I've spent a considerable time configuring, which is unfortunately installed on a drive that's starting to show signs of dying.

My question is: how, if there is a way, can I migrate said linux install over to a different drive, while preserving all the configurations and such.

EDIT: Thank you to everyone who commented! I made the transfer, using dd and it went mostly smoothly, even if it did take a while.

24 comments
  • Take one of your backups and restore it to the new drive.

    You do have backups right?

    Side note I would recommend creating automation to setup your device they way you want. Either bash or Ansible pull.

  • You can partition your drive identically and rsync your directorys over. Rsync will keep all softlinks and hardlinks. You made need to reinstall grub tho.

24 comments