@blotz@lemmy.world avatar

blotz

@blotz@lemmy.world

This profile is from a federated server and may be incomplete. Browse more on the original instance.

blotz, (edited )
@blotz@lemmy.world avatar

Log in as root to avoid trying to make sure no files in /home/ are being read/written to.

Step 1: copy data to new drive. Mount new drive to /mnt/. cp -ra /home/* /mnt/. -a means that all permissions remain the same which will mean that your user can still read them. Check the man page for more details. This command will take a while. Use -v to see progress. You should see a folder with your username appear.

Step 2. Prepare /home for new drive. Move the files to a new folder. This is done to make sure you can still easily go back. mv /home/ /home-bak/ keep your old home dir safe in case a mistake was made. mkdir /home/.

Step 3. Mount your new drive. Mount your drive to /home/ and check if you can login. If everything went correctly, you should be able to just login. Finally you need to update your /etc/fstab to include this new drive. This will make sure your home drive mounts when you start your os. If everything is working, you can delete your home-bak as well.

blotz,
@blotz@lemmy.world avatar

This is a rough guide written on mobile. its probably best if someone double check some of this stuff before op tries it.

blotz,
@blotz@lemmy.world avatar

the mv home is just renaming the folder so you can mount home in the same space. Rsync is probably better than cp but I didn’t want to suggest tools that op doesn’t have installed.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #