Quantcast
Channel: Squeezebox : Community : Forums - Linux / Unix
Viewing all articles
Browse latest Browse all 1530

How to remotely access a pCP7 local USB disk mount from another pCP7 device

$
0
0
I thought I understood this (and even had it working under previous versions of pCP), but I've been struggling for a couple of hours now so I figured it was time to ask for advice.

On my LMS server device (Pi4 4GB running the 64-bit pCP7, IP=192.168.1.4) I have an EXT4 USB disk drive (/dev/sda1) mounted as /mnt/Music.
I have a second RPi (1GB version also running the 64-bit pCP7) which I'm setting up to run nightly backup scripts. I'd like to mount the server's /mnt/Music over the network, e.g. as /mnt/RemoteMusic.
I have no need to access /mnt/Music from any other machines (Windows, Mac etc) except over FileZilla from my Macbook, which works out-of-the-box without me having to configure anything on the server.

Given these requirements, what's the definitive/best/correct method to set things up? Is it to share /mnt/Music over samba on the server, and then mount it as a CIFS drive on the second RPi? Or is there a better 'Linux-specific' method?

If samba is the way to go, what are the correct settings? As said, I thought I understood this but whatever I try the disk will not mount on the second RPi - I seem to get a 'Permission Denied' error.

I've had numerous attempts, but here's a snapshot of my current attempt. What am I doing wrong?

This is my current setup on the host. I've set 'Create File Mode' to 0777 in an effort to eliminate permissions errors, and I've made sure not to set 'Read ONLY' for the same reason. Having set up the share, only then is the password option enabled, but I've set that to 'piCore' and saved it.
Name:  Host setup 1024.jpg
Views: 8
Size:  120.3 KB


And this is my current setup on the remote RPi. Again, the password was entered as piCore and saved.
Name:  Remote setup 1024.jpg
Views: 7
Size:  76.0 KB

Both RPi devices are wired to the same network, and both have cifs-utils installed (just another of my blind attempts to get this working). I've also tried specifying vers=2.0 and vers=3.0 alongside the uid and gid options. After rebooting the server then the second Pi, I get this error in pcp-boot.log.
Code:

Mounting Network Drive...
mount.cifs kernel mount options: ip=192.168.1.4,unc=\\192.168.1.4\Music,uid=1001,gid=50,user=tc,pass=********
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
Disk Mount Error, Retrying 2 more times...sleeping 10 seconds.
mount.cifs kernel mount options: ip=192.168.1.4,unc=\\192.168.1.4\Music,uid=1001,gid=50,user=tc,pass=********
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
Disk Mount Error, Retrying 1 more times...sleeping 10 seconds.
mount.cifs kernel mount options: ip=192.168.1.4,unc=\\192.168.1.4\Music,uid=1001,gid=50,user=tc,pass=********
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
Disabling network mount from server at 192.168.1.4.

Ultimately my intention is to mount and unmount this remote disk via a command line on the second Pi, so that it can be part of the nightly backup script. One reason for this is because I found (with my previous working setup, obviously) that the second Pi takes a very long time to shut down if the remote disk is mounted, so I wanted to make sure it was unmounted whenever it wasn't actively in use.
Attached Images
  

Viewing all articles
Browse latest Browse all 1530

Latest Images

Trending Articles



Latest Images