Access to USB disk via network - help!

Raspberry Pi related support

Access to USB disk via network - help!

Postby maelzoid » 19 Sep 2018, 11:27

I am trying to access the USB drive attached to my Pi2 via my network (to transfer new music to it) and it won't allow me. I know this has been covered in previous threads and I've read through them thoroughly but am still stuck.

I understand I need to edit the udevil.config file but I cannot for the life of me find this file to edit it.

I understand it is located here: /etc/udevil/udevil.conf but cannot find the /etc/ folder either.

I have already got dev mode switched on, so that is not the problem. Please can someone help find the /etc/ file.

Setup:
Raspberry Pi2 running RuneAudio release version: 0.4 (build: beta-20160313)
USB hard drive formatted to ExFat
iMac via local network.
maelzoid
 
Posts: 6
Joined: 19 Sep 2018, 11:20

Re: Access to USB disk via network - help!

Postby janui » 23 Sep 2018, 22:45

Hi maelzoid,
Can you play the music which is stored on your USB drive?
If the answer is yes, then you have two routes to solve your problem, see below. If not please try to reformulate your problem.
    1. Use NTFS insted of ExFat format for your USB drive. Rune will mount NTFS read/write and it will work without changes. ExFat is mounted read-only by default. It’s a one-time action to move your files, reformat and copy them back. For more information about this choice, see here: https://superuser.com/questions/257646/ ... able-media
    2. Change the ExFat profile to mount read/write. Log in via ssh, see here for instructions: https://www.raspberrypi.org/documentati ... windows.md
    Modify /etc/udevil/udevil.conf with the following command:
    Code: Select all
    nano /etc/udevil/udevil.conf
    You are looking for this line:
    Code: Select all
    default_options_exfat     = ro, nonempty, uid=$UID, gid=$GID
    Change the ‘ro’ to ‘rw’ to make it look like this:
    Code: Select all
    default_options_exfat     = rw, nonempty, uid=$UID, gid=$GID
    Save the file with <ctrl>o, exit nano with <crtl>x. If you screw up just use <ctrl>x to exit and start again.
Just a note before you change anything, adding files to your USB drive with Samba is convenient, but very, very slow.
Switching to DEV mode will will instruct Samba to give read/write access to the files it shares. Don’t forget to switch it off.
janui
User avatar
janui
 
Posts: 699
Joined: 20 Dec 2014, 12:55
Location: Ollanda

Re: Access to USB disk via network - help!

Postby maelzoid » 24 Sep 2018, 11:34

Janui, thanks so much for your response.

I have followed your instructions and edited the udevil.conf file. It all seems to look good, and when I look at the file now, the 'rw' is in place. However, when I try to access the USB HD drive from my mac I still get the following error:

The folder “WD” can’t be opened because you don’t have permission to see its contents.

And the icon for the drive has the little red 'no entry' sign by it.

Any hewlp appreciated.
maelzoid
 
Posts: 6
Joined: 19 Sep 2018, 11:20

Re: Access to USB disk via network - help!

Postby janui » 24 Sep 2018, 14:22

Hi maelzoid,
Very strange, you should be able to see the disk, even if you cannot write to it. Could you set DEV mode on, reboot, log in via SSH and post the output of the following commands:
Code: Select all
systemctl status smbd
systemctl status nmbd
dir -l /etc/samba

janui
User avatar
janui
 
Posts: 699
Joined: 20 Dec 2014, 12:55
Location: Ollanda

Re: Access to USB disk via network - help!

Postby maelzoid » 24 Sep 2018, 16:15

Thanks again.

Yes i can see the USB drive and it works perfectly via the Pi. From my mac, I can see it mounted but it won't let me go beyond the USB folder in finder. Though if I use Adobe Bridge I can navigate right into the drive's folders and even play the MP3s therein, but still cannot write to it.

In response to the commands you suggest, in order this is what I get:

Code: Select all
● smbd.service - Samba SMB/CIFS server
   Loaded: loaded (/usr/lib/systemd/system/smbd.service; enabled; vendor preset:
   Active: active (running) since Mon 2016-02-22 15:40:18 CET; 2 years 7 months
 Main PID: 301 (smbd)
   CGroup: /system.slice/smbd.service
           ├─ 301 /usr/bin/smbd -D
           ├─ 306 /usr/bin/smbd -D
           └─1382 /usr/bin/smbd -D

Feb 22 15:40:17 runeaudio systemd[1]: Starting Samba SMB/CIFS server...
Feb 22 15:40:18 runeaudio systemd[1]: Started Samba SMB/CIFS server.
Feb 22 15:40:19 runeaudio systemd[1]: Started Samba SMB/CIFS server.


This output seemed repeated multiple times, as far as I can tell, all the same.

Code: Select all
● nmbd.service - Samba NetBIOS name server
   Loaded: loaded (/usr/lib/systemd/system/nmbd.service; disabled; vendor preset
   Active: active (running) since Mon 2016-02-22 15:40:19 CET; 2 years 7 months
 Main PID: 351 (nmbd)
   CGroup: /system.slice/nmbd.service
           └─351 /usr/bin/nmbd -D

Feb 22 15:40:19 runeaudio systemd[1]: Starting Samba NetBIOS name server...
Feb 22 15:40:19 runeaudio systemd[1]: Started Samba NetBIOS name server.
lines 1-9/9 (END)


Although the terminal freezes here, seeming to want an input from me that I cannot work out.

Code: Select all
total 12
drwx------ 2 root root 4096 Mar 20  2016 private
lrwxrwxrwx 1 root root   23 Feb 22  2016 smb.conf -> /etc/samba/smb-dev.conf
-rw-r--r-- 1 root root  666 Mar 20  2016 smb-dev.conf
-rw-r--r-- 1 root root  666 Mar 20  2016 smb-prod.conf
maelzoid
 
Posts: 6
Joined: 19 Sep 2018, 11:20

Re: Access to USB disk via network - help!

Postby janui » 24 Sep 2018, 20:48

Hi maelzoid,
maelzoid wrote:This output seemed repeated multiple times, as far as I can tell, all the same.
It all looks fine so far, nothing wrong with this. I am beginning to think that the problem is on your network or MAC. But because you can see the mounted disk on the MAC, a network problem is very unlikely. But just to eliminate possible Rune problems could you log in with SSH and post the results of this command:
Code: Select all
cat /etc/samba/smb.conf

While waiting for my answer, you could look at the instruction listed here: https://apple.stackexchange.com/questio ... mmand-line and here: http://agriculture.montana.edu/it/support/smb-macs.html and here: https://users.wfu.edu/yipcw/atg/apple/smb/ Hopefully you will not see anything you have been missing.

What is potentially more interesting are some internet posts documenting problems with specific MAC OS versions and mounting ExFat formatted disks, for details search for ‘mounting samba share on mac exfat’… Don’t know if this is relevant for you.

janui
User avatar
janui
 
Posts: 699
Joined: 20 Dec 2014, 12:55
Location: Ollanda

Re: Access to USB disk via network - help!

Postby maelzoid » 24 Sep 2018, 20:53

Here it is:

[root@runeaudio ~]# cat /etc/samba/smb.conf
Code: Select all
#======================= Global Settings =======================

[global]

   workgroup = WORKGROUP
   server string = RuneAudio Player
   dns proxy = no
   log level = 0
   syslog = 0
   guest account = root
   map to guest = bad user
   load printers = no
   printing = bsd
   printcap name = /dev/null
   disable spoolss = yes
   domain master = no
   local master = no
   preferred master = no

#======================= Share Definitions =======================

   directory mask = 0775
   create mask = 0775

[MusicStore]
   comment = MPD MusicStore (/mnt/MPD)
   path = /mnt/MPD/
   read only = no
   public = yes
   follow symlinks = yes
   wide links = yes[root@runeaudio ~]#
maelzoid
 
Posts: 6
Joined: 19 Sep 2018, 11:20

Re: Access to USB disk via network - help!

Postby maelzoid » 24 Sep 2018, 21:09

I don't think the network is the problem as I can log on to RuneAudio > Musicstore and see all the folders there, including the "Webradio" folder and I can write to that one perfectly fine. It's just the sub folder within USB that is read-only. I have just added a second USB thumb drive with music on it, and that is behaving exactly the same
maelzoid
 
Posts: 6
Joined: 19 Sep 2018, 11:20

Re: Access to USB disk via network - help!

Postby janui » 25 Sep 2018, 10:46

Hi maelzoid,
maelzoid wrote:Here it is:
[root@runeaudio ~]# cat /etc/samba/smb.conf
This is OK.
maelzoid wrote:I don't think the network is the problem as I can log on to RuneAudio > Musicstore and see all the folders there, including the "Webradio" folder and I can write to that one perfectly fine. It's just the sub folder within USB that is read-only. I have just added a second USB thumb drive with music on it, and that is behaving exactly the same
So it is consistent, but not what I expected, very strange. But I found this post, maybe it will solve the problem: write-access-on-attached-usb-drives-t2869.html#p13687
janui
User avatar
janui
 
Posts: 699
Joined: 20 Dec 2014, 12:55
Location: Ollanda

Re: Access to USB disk via network - help!

Postby maelzoid » 25 Sep 2018, 12:32

Hey, that works!!!!!

I had to download a separate FTP app (forklift) to make it happen, but now I'm up and running.

Janui, thank you so much for your help and patience with this. It is most appreciated.
maelzoid
 
Posts: 6
Joined: 19 Sep 2018, 11:20

support RuneAudio Donate with PayPal

Next

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 6 guests