Announcement

Collapse
No announcement yet.

Ripping directly to a NAS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Ripping directly to a NAS

    Since my VortexBox is installed on a single-board computer, with an 8GB SSD, I can't rip to the SSD. But I have all my music on a NAS, so I figured out how to make VB rip directly to a folder on my NAS.

    This is all for v2.3, since the single-board computer is an x86 Atom N270. I'm sure, with suitable package manager mods (dnf instead of yum), it ought to work on v2.4.

    Since the VB install doesn't come with a CIFS client, we need to add one of those.
    Then we need to make a mount point.
    Then we need to ensure the NAS is mounted on reboot.
    Then we need to tell ripit to rip to a folder on the NAS.
    Then we reboot.
    Changes should take effect on reboot.

    As with all linux command-line stuff, take care to get the commands right...

    Code:
    # do a general package update first
    yum -y update
    
    # install the CIFS client
    yum install -y cifs-utils
    
    # make a credentials file to access the NAS
    # this will require your username and password in clear on the VortexBox, so consider if you're happy with this
    # replace the <values> with your actual details
    echo "username=<username>" > /etc/samba/credentials
    echo "password=<password>" >> /etc/samba/credentials
    
    # make the mount point
    mkdir /mnt/smb
    
    # add the mount to /etc/ftab so it is mounted on boot, after the network connection has been restored
    # replace the <values> with the name of your NAS, and the name of the share you want to use
    echo "//<servername>/<sharename> /mnt/smb cifs credentials=/etc/samba/credentials,_netdev 0 0" >> /etc/fstab
    
    # edit the following value in /etc/ripit/config file to point the ripper to the NAS folder
    # output=/mnt/smb/<VortexBox rip folder>
    
    reboot
    
    # that's it.

  • #2
    You can make it more elegant than that if you wish.

    By default everything in VB points at /storage

    If you are using VB2.3
    Change the existing /storage folder to be /storageOLD
    Create a symlink called storage to your mnt/smb
    Put your etc/ripit.conf back to /storage
    In the new /storage folder create the same folder structure and symlinks as exist in storageOLD

    For 2.4 my fstab looks like this (NFS not CIFS but the principle is the same)
    My NAS is a QNAP

    #
    # /etc/fstab
    # Created by anaconda on Fri Nov 6 01:22:25 2015
    #
    # Accessible filesystems, by reference, are maintained under '/dev/disk'
    # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
    #
    UUID=a0008081-aa57-4fad-bf0b-2f64f1070a8a / ext4 defaults 1 1
    UUID=33251abe-7e37-4570-b7e5-0a53a3886361 /boot ext4 defaults 1 2
    UUID=3b66a5aa-1768-41da-bed4-cdcd304746ca swap swap defaults 0 0
    IPAddress:/share/Qmultimedia /storage nfs defaults 0 0

    You then also need to modify one of the startup scripts to stop the default mount to storage - I'll post back when I find which one

    Your way obviously works but my way makes Plex etc read the same files and will allow everything to work including DVD ripping etc - just watch out for permissions issues
    Last edited by d6jg; 08-15-2018, 10:17 AM.

    Comment


    • #3
      /opt/vortexbox/mount_drives.sh

      #!/bin/bash
      while [ ! -b /dev/mapper/VolGroup-lv_storage ] ;
      do
      sleep 2
      done

      mount /dev/mapper/VolGroup-lv_storage /storageOLD
      /sbin/hdparm -B 255 /dev/sda

      Comment

      Working...
      X