this post was submitted on 18 Jul 2024
16 points (100.0% liked)

Linux

1258 readers
82 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I have a NTFS drive for Storage, which is shared between Win 11.

I want to change the location of (or replace) ~/Downloads, ~/Music, etc..,.

Note that the link to made is between NTFS and EXT4.

I found two ways while searching.

   1.Creating **Symlinks** in `~` with target pointed to folders in NTFS drive.

   2. **Mounting** the NTFS folders **directly** to`~/Downloads`, `~/Music`, etc..,.

Which one should I do? Which one is more beneficial?

Also how to mount folders to other folders (option 2) ? (I would really appreciate a GUI way)

I know this is not that important of a thing to post on Main Linux Community, but I already asked 2 linux4noobs community, and they are empty.




This is a continuation to my previous discussion, where most of the people said,

  1. It doesn't matter where I mount.

  2. Mount certain folders directly into home other. (like mounting /mnt/data/music to ~/music)

you are viewing a single comment's thread
view the rest of the comments
[–] gpstarman@lemmy.today 5 points 3 months ago* (last edited 3 months ago) (1 children)

Thank You.

would you suggest XDG or creating Symlinks?

Found this just for you. https://lemmy.world/post/1352601

[–] Samueru@lemmy.ml 2 points 3 months ago* (last edited 3 months ago) (1 children)

would you suggest XDG or creating Symlinks?

You can do both, and both are easy.

The user-dirs.dirs file contains something like this:

XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_VIDEOS_DIR="$HOME/Videos"

For example if you mount the disk in /media/dirname, it would be something like this, I'm giving it a external-drive name in this example:

XDG_DESKTOP_DIR="/media/external-drive/Desktop"
XDG_DOCUMENTS_DIR="/media/external-drive/Documents"
XDG_DOWNLOAD_DIR="/media/external-drive/Downloads"
XDG_MUSIC_DIR="/media/external-drive/Music"
XDG_PICTURES_DIR="/media/external-drive/Pictures"
XDG_PUBLICSHARE_DIR="/media/external-drive/Public"
XDG_TEMPLATES_DIR="/media/external-drive/Templates"
XDG_VIDEOS_DIR="/media/external-drive/Videos"

And for the symlinks, if the drive already has the Desktop, Documents, etc directories. It is as simple as this:

ln -s /media/external-drive/* $HOME

That will symlink all the files in the drive to your $HOME

I suggest you do both because you might run into a program that doesn't follow XDG user directories.

[–] gpstarman@lemmy.today 2 points 3 months ago