Assuming you HDD is well formatted and mounted in Ubuntu. In other words, you can access the HDD from a file manager (e.g. Nautilus). You can just create the required folders Documents
, Downloads
, Pictures
, etc. on you HDD. And move your files to these new locations.
Next, there are some things you could do to make things a little more convenient.
For example, you could edit the ~/.config/user-dirs.dirs
file. This file defines the links to the special Documents
, Downloads
, etc folders (these are shown in Nautilus on the left). The default content of this file looks like this:
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"
You can just edit this file to reflect the changes you made.
To resemble the original situation even more, you could add bind mounts to your /etc/fstab
file. If you go this route, you don't need to change the ~/.config/user-dirs.dirs
file. You would just bind mount for example the new location of the Documents
folder (on your HDD), to the original location in your HOME folder. You could accomplish this by adding a line like this to your /etc/fstab
:
/<mount-point-hdd>/Documents /home/<user-name>/Documents none rw,bind 0 0