How Do I Move My Linux Directory to Another Drive?
Contents

How do I move Linux from one drive to another?

Copying

  1. Mount both your source and destination partitions.
  2. Run this command from a terminal: $ sudo cp -afv /path/to/source/* /path/to/destination. Don’t forget the asterisk after the source path.
  3. After the command finishes copying, shut down, remove the source drive, and boot the live CD again.

9 июл. 2009 г.

How do I move a directory to another directory in Linux?

To move a file or directory from one location to another, use the command mv. Common useful options for mv include: -i (interactive) — Prompts you if the file you have selected overwrites an existing file in the destination directory.

Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest