Where should files for a NAS + nedia server be stored
from mnemonicmonkeys@sh.itjust.works to selfhosted@lemmy.world on 07 Jan 17:35
https://sh.itjust.works/post/30745837

Currently getting my first media server set up, and I’m wondering what the best directory would be for all the stored files. For reference, I’m working with Ubuntu server to follow the guide I’m using.

Mainly, I’m wondering if I should migrate /home/ to my RAID array, or leave /home/ where it is and create a new directory on the RAID array. Currently the server will just be for my use, but might expand it for others to use

#selfhosted

threaded - newest

ocean@lemmy.selfhostcat.com on 07 Jan 17:41 next collapse

I checked my local backup server and I have two directories:

/home/share for backup files

/home/app data for backup appdata

My main server which unfortunately runs unraid is structured like

/mnt/user/array/media

/mnt/user/array/Nextcloud

/mnt/cache_ssd/appdata

MangoPenguin@lemmy.blahaj.zone on 07 Jan 17:49 next collapse

I mount extra storage under /mnt/ and store stuff like media in there.

deegeese@sopuli.xyz on 07 Jan 18:16 next collapse

And make symlinks for large collections, like ~/photos -> /mnt/nas/photos

MangoPenguin@lemmy.blahaj.zone on 07 Jan 19:02 collapse

Interesting, are you accessing files directly on the NAS or something like that where the symlink makes sense?

deegeese@sopuli.xyz on 07 Jan 20:48 collapse

You want the big files to live on the NAS, but be navigable from your home dir for convenience and to discourage saving to the local disk.

MangoPenguin@lemmy.blahaj.zone on 07 Jan 22:40 collapse

Oh I see, you mean you mount the NAS storage into /home?

jws_shadotak@sh.itjust.works on 08 Jan 00:21 collapse

Not quite - He’s saying to mount the NAS under /mnt/ and to create a symlink under /home/ to go directly to /mnt/nas/photos

If you’re on KDE Plasma / Dolphin, this can be done here: <img alt="" src="https://sh.itjust.works/pictrs/image/9da4381d-c174-4737-942f-cc9ddac69038.png">

and put something like this in there

<img alt="" src="https://sh.itjust.works/pictrs/image/bc1266ce-f179-4a7a-a3b3-cd2895d1b352.png">

This will create a folder that goes directly to /mnt/nas/pictures, but you can put it anywhere.

SidewaysHighways@lemmy.world on 08 Jan 12:37 next collapse

Gosh FINALLY this is starting to make sense. Thanks for your effort!

needanke@feddit.org on 09 Jan 22:49 collapse

A bit offtopic: What theme is that? I was woundering why you would put windows screenshots under a comment about dolphin for a second.

jws_shadotak@sh.itjust.works on 10 Jan 00:22 collapse

Haha, it’s PlasmaXDark - store.kde.org/p/1367172

I genuinely like the look and feel of Windows.

SpikesOtherDog@ani.social on 07 Jan 18:39 collapse

/mnt/ is where I would put this. Only exception would be if I had a service I was providing, like a media player server, and then I might mount it at /srv/

normalexit@lemmy.world on 07 Jan 18:49 next collapse

Personally I wouldn’t worry too much about where you mount the volume, I use /storage on my boxes because I is easy to remember and sounds good to me. I also typically make a storage group that I give access to manage the files in the volume vs having my user own everything.

I wouldn’t put it in home just because you are considering sharing with others.

MNByChoice@midwest.social on 07 Jan 20:13 next collapse

Mainly, I’m wondering if I should migrate /home/ to my RAID array, or leave /home/ where it is and create a new directory on the RAID array.

Leave home where it is. Symlink to important directories on RAID.

Makes it easier to mess with the RAID if it doesn’t make logging in hard.

fmstrat@lemmy.nowsci.com on 08 Jan 04:02 next collapse

/storage for me.

savvywolf@pawb.social on 08 Jan 10:59 next collapse

I think convention is for files served by the server to go in /srv or even /usr/lib.

sugar_in_your_tea@sh.itjust.works on 09 Jan 05:14 collapse

Yup, I use /srv, works well.

sugar_in_your_tea@sh.itjust.works on 09 Jan 05:15 collapse

/srv for me.