I need help understanding what the community’s recommendation is for how to save my files across two pcs without having to manually cut and paste or setting up a NAS.

My situation is that I have a Linux server running Opensuse pulling down media through an Arr stack setup. It only has .5 TB available but I have a Windows PC with 3 TB available. I would like to know if there’s a way that I can seamlessly direct my Linux server to save onto my windows PC without me having to manually copy and paste.

Let’s say I initiate a download of a .75TB file on my Linux server, can I just have it save directly to my available 3TB windows PC? And then be also able to tell an app like Jellyfin to read it from there?

Long term I was thinking that I would set up a separate NAS but I don’t want to do that for a few months. I want to stabilize my current setup before adding another machine.

Am I crazy to think that I can save files to my windows computer from my Linux server? I have tried to look into different things. I started going down the route with samba, but it seems to only show files to my windows PC but not actually save them there directly from Linux. I’ve looked into FTP/SCP but I don’t know a good guide or if would do what I need. I am struggling understanding the networking portion of this, so let me know if I am wrong.

As a secondary question, if I had a NAS, could I also point some of that free 3TB from the windows pc to be used as part of the NAS?

  • thorbot@lemmy.world
    link
    fedilink
    English
    arrow-up
    23
    ·
    edit-2
    1 year ago

    Enable file sharing over the network in windows, create a directory on the 3TB drive, and right click the folder in Windows and select Share. It will broadcast as an SMB share over the network, and you can use it’s UNC path to access it from Linux.

    In linux type $ mount -t cifs //YOURWINDOWSSHARE /mn and it will mount it as a network drive in linux that you can direct files to.

    • Okus@lemmy.dbzer0.comOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Thank you. I am attempting this today. I seem to be struggling with this. I typed in $ sudo mount -t cifs //HOME/sharedmain /mn

      HOME is my pc and sharedmain is the folder I created and shared with everyone.

      When I run it I get: Couldn’t chdir to /mn: no such file or directory.

      I’ve googled a couple of these terms but I’m not getting any cleaner answers.

      • NightEagle@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        ·
        1 year ago

        Try using the IP address instead of the NETBIOS name, it’s usually more reliable that way. Also the error you are getting is because the /mn folder needs to be created beforehand (the mount command doesn’t create the mount point for you). Also make sure you have the cifs package installed for your distro. Hope this helps :)

      • TCB13@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        arrow-down
        1
        ·
        edit-2
        1 year ago

        I assume your PC is at home and the server at the datacenter. If you actually try to this you’ll most likely end up with broken files and I/O errors because your home’s internet connection might fail, drop or whatever… and you’ll have to deal with port forwarding and the fact that is a very bad idea to expose SMB to the internet.

          • TCB13@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            edit-2
            1 year ago

            You can follow the other recommendation about mounting SMB shares under Linux or eventually setup an SSH server on Windows and use SSHFS to mount it on the Linux machine.

            SSH is usually faster than SMB however both of them will have issues, what if the network goes down the windows machine sleeps, reboots, crashes or someone steps on a network cable etc? You are better by avoiding those kinds of setups all together. It is very likely that the connection will drop and the Linux machine will have trouble writing on the mount causing errors and screwing the files. Those setups won’t also translate unix permissions and other details very well and might create other issues for you.

  • barbedbeard@lemmy.one
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    1 year ago

    I have a similar setup. I have an old laptop with an SSD that puts files on my NAS. The laptop has arr setup on containers, the laptop itself is running debian, mounts from Samba NAS via fstab (be sure to have writing permissions) has been working that way for several years.
    Only direct plays, no transcoding (core 2 procesor)

  • Decronym@lemmy.decronym.xyzB
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

    Fewer Letters More Letters
    IP Internet Protocol
    NAS Network-Attached Storage
    SSD Solid State Drive mass storage
    SSH Secure Shell for remote terminal access

    4 acronyms in this thread; the most compressed thread commented on today has 9 acronyms.

    [Thread #279 for this sub, first seen 13th Nov 2023, 17:45] [FAQ] [Full list] [Contact] [Source code]

    • Okus@lemmy.dbzer0.comOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      In my example, wouldn’t I only be able to save .5Tb directly on Linux and only that would be synced to the windows pc? Unless I am reading it wrong, I think I couldn’t have a situation were I save 1tb to windows and 0 on Linux.

      • TCB13@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        1 year ago

        wouldn’t I only be able to save .5Tb directly on Linux and only that would be synced to the windows pc?

        Yes… but once you move the 0.5TB in your PC to another folder (outside Synching) it will be removed from the Linux machine allowing you to download more stuff.