wie kann /home auf eine andere Festplatte verschoben werden

Asked by Marnick Raecke

Nachdem ich Ubuntu 19.10 neben Windows 7 installiert habe, möchte ich den Ordner /home auf meine 2.Festplatte verlagern.
Die 2. Festplatte hat 2 Partitionen die ich bereits auf EXT4 formartiert ihabe.
Welche Möglichkeiten gibt es?

Question information

Language:
German Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Google Translate:

After installing Ubuntu 19.10 next to Windows 7, I want to move the / home folder to my 2nd hard drive.
The second hard drive has 2 partitions which I have already formatted on EXT4.
What are the options?

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#2

You can rsync the data to a folder on the new drive, then set the mount option in /etc/fstab to mount it as /home

Alternatively, and easier, is copy all your casual data (Images, videos, music, whatever) to folders in the new drive, remove the current folders full of images then make symbolic links to the new folders on the new drive.

If you mount the new drive as /data then you can have /data/Pictures, /data/Downloads and so on.

Move all your current data to the new location and, once you have verified all is well, delete $HOME/Downloads and run:

ln -s /data/Downloads $HOME/Downloads

Now your Downloads "folder" in home will take you to the /data/Downloads folder you made and be absolutely transparent.

Repeat with the other folders for "Pictures" and whatever else you like. Remember to update your bacups to backup /data instead of your $HOME folder.

Revision history for this message
Marnick Raecke (m.raecke) said :
#3

Hallo, vielen Dank für die Erklärungen und Hinweise zu meinem Problem . Sie haben mir damit geholfen. Zunächst bin ich damit zufrieden. Ich muss mich aber noch intensiver mit Linux beschäftigen. Als Neuling ist es aber beruhigend sofort Hilfe zu bekommen.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

No worries. As you use the OS you will earn, just like you did when you learned Windows.