• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Cant see NAS drive

    Pages (2): « Previous 1 2

     
    • 0 Vote(s) - 0 Average

    Cant see NAS drive

    Unable to see Mounted NAS drive Raspberry PI4
    tmsrxzar
    Offline

    Senior Member

    Posts: 755
    Threads: 6
    Joined: 2023 Nov
    Reputation: 20
    #11
    2024-01-25, 09:49 PM
    (2024-01-25, 09:40 PM)DAFFY Wrote: can i post youtube links here?

    why?

    are we supposed to watch a youtube video for you then explain the video to you?

    such a waste of time
    TheDreadPirate
    Online

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #12
    2024-01-25, 09:56 PM
    If you can put in a code block the script you used, that would be better so we don't have to watch the vid.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    DAFFY
    Offline

    Junior Member

    Posts: 10
    Threads: 2
    Joined: 2024 Jan
    Reputation: 0
    Country:United Kingdom
    #13
    2024-01-25, 10:28 PM
    After a bit of playing with the data in the script i have mounted the NAS drive in the /mnt directory. Thanks ALOT for your help..
    DAFFY
    Offline

    Junior Member

    Posts: 10
    Threads: 2
    Joined: 2024 Jan
    Reputation: 0
    Country:United Kingdom
    #14
    2024-01-25, 10:34 PM
    Code:
    #!/bin/bash

    set -o errexit

    if [[ $EUID -ne 0 ]]; then
      echo "This script must be run as root (use sudo)" 1>&2
      exit 1
    fi

    sudo apt-get install cifs-utils

    echo ""
    read -r -p "Enter the address of the NAS folder that you want to mount: " nasaddress
    echo ""
    read -r -p "Enter the local path where you want to mount the NAS folder: " localaddress
    echo ""
    read -r -p "Enter the path to store credentials file: " credentialaddress
    echo ""
    if [ ! -d $localaddress ]; then
        sudo mkdir -p $localaddress
    fi
    if [ ! -d $credentialaddress ]; then
        sudo mkdir -p $credentialaddress
    fi
    echo ""
    read -r -p "Enter the username of the NAS: " nasusername
    echo ""
    read -r -p "Enter the NAS password: " naspassword
    echo ""

    sudo tee -a $credentialaddress/.NASCREDS <<_EOF_
    username=$nasusername
    password=$naspassword
    _EOF_

    echo ""
    echo "$nasaddress  $localaddress  cifs  credentials=$credentialaddress/.NASCREDS,uid=1000,gid=1000,vers=1.0  0  01" >> /etc/fstab
    echo ""
    echo ""
    echo "@reboot root /bin/bash -c 'sleep 10 && /bin/mount -a'" >> /etc/crontab
    echo ""
    echo "All done............................."
    Pages (2): « Previous 1 2

    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode