Page 1 of 1

Help with Remote Hard Drive Access

PostPosted: 13 Jan 2017, 17:57
by vulpespersona
I have been trying to set up my system so I can add files over wifi to the usb hard drive connected to my Raspberry Pi 2. Attempting to log in to my Pi via Finder on my Mac with the default 'root' login/password won't allow me access. I can see the files through Finder ' music store' but it won't let me delete or add files. I'm assuming this is because it is hfsplus as described on these topics:

write-access-on-attached-usb-drives-t2869.html
adding-files-to-mounted-usb-drive-t3253.html

Reading these topics it seems that I need to add read/write capabilities to my hard drive (i've copied the debug info for my system below where I can see that the drive in the last line is set to 'ro' and it doesn't include settings for vfat, exfat, or hfsplus which). These topics show the following lines which I assume I should add to '/etc/udevil/udevil.conf' if i could figure out how to edit that code.

By default permissions are set to read-only, so copying or attempting drag and drop to external storage will fail. To copy files to a USB drive, the default permission has to be changed first, from ro (read-only) to rw(read-write) in /etc/udevil/udevil.conf. Example (line 219-221):

default_options_vfat = rw, iocharset=utf8, noatime, uid=$UID, gid=$GID
default_options_exfat = rw, nonempty, uid=$UID, gid=$GID
default_options_hfsplus = rw, uid=$UID, gid=$GID


Can someone provide step by step instructions for accessing the '/etc/udevil/udevil.conf' file so i can edit/add these lines? Manually opening my sd card on my mac allows me access to the config.txt file but this mount section is not something that displays in that file so i can edit it using notepad. Otherwise, if I need to edit the settings through Terminal I am not sure what commands to enter to allow me to edit /etc/udevil/udevil.conf.

I've confirmed developer mode is 'on'.

Thanks! Obviously I am not very linux savvy.

###### Filesystem mounts ######
/dev/root / ext4 rw,relatime,data=ordered 0 0
devtmpfs /dev devtmpfs rw,relatime,size=468104k,nr_inodes=117026,mode=755 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /run tmpfs rw,nosuid,nodev,mode=755 0 0
tmpfs /sys/fs/cgroup tmpfs ro,nosuid,nodev,noexec,mode=755 0 0
cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd 0 0
cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0
cgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event 0 0
cgroup /sys/fs/cgroup/net_cls,net_prio cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio 0 0
cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0
cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0
cgroup /sys/fs/cgroup/bfqio cgroup rw,nosuid,nodev,noexec,relatime,bfqio 0 0
cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct 0 0
tmpfs /tmp tmpfs rw 0 0
mqueue /dev/mqueue mqueue rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
logs /var/log tmpfs rw,nosuid,nodev,noatime,size=5120k 0 0
rune-logs /var/log/runeaudio tmpfs rw,nosuid,nodev,noatime,size=5120k 0 0
configfs /sys/kernel/config configfs rw,relatime 0 0
/dev/mmcblk0p1 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro 0 0
/dev/sda2 /mnt/MPD/USB/1TB hfsplus ro,nosuid,nodev,noexec,noatime,umask=22,uid=1000,gid=92,nls=utf8 0 0

Re: Help with Remote Hard Drive Access

PostPosted: 13 Jan 2017, 23:10
by hondagx35
Hi vulpespersona,

Can someone provide step by step instructions for accessing the '/etc/udevil/udevil.conf' file so i can edit/add these lines?

On a MAC i would use Cyberduck
user: root
pwd: rune

Frank

Re: Help with Remote Hard Drive Access

PostPosted: 14 Jan 2017, 18:41
by vulpespersona
Thanks! Cyberduck is much easier to navigate the Pi with!

I was able to change the /etc/udevil/udevil.conf file as follows:

default_options = nosuid, noexec, nodev, noatime
default_options_file = nosuid, noexec, nodev, noatime, uid=$UID, gid=$GID, rw
# mount iso9660 with 'ro' to prevent mount read-only warning
default_options_iso9660 = nosuid, noexec, nodev, noatime, uid=$UID, gid=$GID, rw, utf8
default_options_udf = nosuid, noexec, nodev, noatime, uid=$UID, gid=$GID
default_options_vfat = rw, iocharset=utf8, noatime, uid=$UID, gid=$GID
default_options_exfat = rw, nonempty, uid=$UID, gid=$GID
default_options_hfsplus = rw, uid=$UID, gid=$GID
default_options_msdos = nosuid, noexec, nodev, noatime, fmask=0133, dmask=0022, uid=$UID, gid=$GID
default_options_umsdos = nosuid, noexec, nodev, noatime, fmask=0133, dmask=0022, uid=$UID, gid=$GID
default_options_ntfs = nosuid, noexec, nodev, noatime, fmask=0133, uid=$UID, gid=$GID, utf8
default_options_cifs = nosuid, noexec, nodev, uid=$UID, gid=$GID
default_options_smbfs = nosuid, noexec, nodev, uid=$UID, gid=$GID
default_options_sshfs = nosuid, noexec, nodev, noatime, uid=$UID, gid=$GID, nonempty, allow_other
default_options_curlftpfs = nosuid, noexec, nodev, noatime, uid=$UID, gid=$GID, nonempty, allow_other
default_options_ftpfs = nosuid, noexec, nodev, noatime, uid=$UID, gid=$GID
default_options_davfs = nosuid, noexec, nodev, uid=$UID, gid=$GID
default_options_tmpfs = nosuid, noexec, nodev, noatime, uid=$UID, gid=$GID
default_options_ramfs = nosuid, noexec, nodev, noatime, uid=$UID, gid=$GID


This seems to have updated the permissions as reflected in my debug, but not the mount on the actual drive. Unfortunately I am still not able to read or write access to this drive in finder or Cyberduck. I get the error ' Failure. Please contact your web hosting service provider for assistance.' in Cyberduck if i try to add or delete a file.

In finder logging in using the root/rune user pass I get the following error: 'Check the server name or IP address, and then try again. If you continue to have problems, contact your system administrator'. If I connect as a guest I can see the files but not write.

As you can see in the bottom line my 1 TB hd is still set to 'ro' while the rest were manually changed to 'rw'. Also, I have changes all permissions on my external hard drive to read/write.

###### Filesystem mounts ######
/dev/root / ext4 rw,relatime,data=ordered 0 0
devtmpfs /dev devtmpfs rw,relatime,size=468104k,nr_inodes=117026,mode=755 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /run tmpfs rw,nosuid,nodev,mode=755 0 0
tmpfs /sys/fs/cgroup tmpfs ro,nosuid,nodev,noexec,mode=755 0 0
cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd 0 0
cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct 0 0
cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0
cgroup /sys/fs/cgroup/net_cls,net_prio cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio 0 0
cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0
cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0
cgroup /sys/fs/cgroup/bfqio cgroup rw,nosuid,nodev,noexec,relatime,bfqio 0 0
cgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=32,pgrp=1,timeout=0,minproto=5,maxproto=5,direct 0 0
tmpfs /tmp tmpfs rw 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
mqueue /dev/mqueue mqueue rw,relatime 0 0
configfs /sys/kernel/config configfs rw,relatime 0 0
logs /var/log tmpfs rw,nosuid,nodev,noatime,size=5120k 0 0
rune-logs /var/log/runeaudio tmpfs rw,nosuid,nodev,noatime,size=5120k 0 0
/dev/mmcblk0p1 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro 0 0
/dev/sda2 /mnt/MPD/USB/1TB hfsplus ro,nosuid,nodev,noexec,noatime,umask=22,uid=1000,gid=92,nls=utf8 0 0


Scanning my debug info i see this at the bottom:
[ 22.410461] hfsplus: write access to a journaled filesystem is not supported, use the force option at your own risk, mounting read-only.


Should i switch to a non-journaled format? Is this the issue? Can/should I force the existing drive and if so how?

So some follow up questions:

Is there a setting on my hard drive or computer I need to make to access the server? Very basic, probably but I'm not very network savvy.

Is there a recommended format that i could use to reformat my drive for easier compatibility with Rune?

Also, do people generally use finder or once they are able to gain access or Cyberduck to upload and delete files on USB drives?



Thanks!

Re: Help with Remote Hard Drive Access

PostPosted: 13 Dec 2020, 02:00
by amonduulii
hi there, I was trying to troubelshoot the same thing for a while now. Finally, this is what did the trick for me (on my Mac with my Runeaudio USB drive mounted to the mac). Load Mac Terminal and run this command.

diskutil disableJournal /Volumes/TheVolumeName