Page 1 of 1

SOLVED:mounted shares locally, but see no files /mnt/samba/*

Posted: Sat Apr 26, 2014 9:43 am
by cpeddie
Hi,

I've installed the mount shares locally script, and it appears to execute fine, but when I look at /mnt/samba/<share> I see none of the files that are in that share. If I go to the share remotely (via both Mac and PC), all the files in the share are there, and I can watch movies, view the pictures etc. If I look at /var/hda/files/<share>, all the symlinks are there, and looking directly into the greyhole pool /var/hda/files/<drive>/gh/<share> looks good as well. I keep reading everywhere in the forums and the wiki to work on the shares via the local mount, but I'm unable to do so.

/etc/samba/smb.conf and /etc/greyhole.conf match as far as share names and set goes, and greyhole log is not giving any errors. When I check the mount table though, it doesn't show that there are any mount points at /mnt/samba/*. How can I make sure the mount_shares_locally script is executing correctly and mounting them? I'm guessing one of the following lines in the script:
mysql -u root -phda -e "select name from shares" hda_production | grep -v "^name$" | xargs -d "\n" mkdir -p
OR
/sbin/mount.cifs "//127.0.0.1/$d" "$d" -o credentials=/home/${username}/.smb_credentials,uid=${uid},gid=${gid},file_mode=0660,dir_mode=0770,nobrl,hard,_netdev,iocharset=utf8,noserverino,mfsymlinks
is where things are messing up.

Rebooted a couple of times with the same result. Any guidance?

Thanks,

Re: mounted shares locally, but see no files thru /mnt/samba

Posted: Sat Apr 26, 2014 9:50 am
by bigfoot65
Is this Amahi 7?

Verify you completed all the steps in the wiki.

The script works fine, so guessing you must have missed a step.

Re: mounted shares locally, but see no files thru /mnt/samba

Posted: Sat Apr 26, 2014 4:45 pm
by cpeddie
I neglected to pay attention to the line:
This script needs /sbin/mount.cifs, so make sure to install cifs-utils or similar, as needed.

in the wiki. Once I installed the package, everything works fine. I would recommend you update the wiki to more explicity state:
"This script needs /sbin/mount.cifs to operate properly. To install, type the following:
sudo yum install cifs-utils"

Then it will be a little clearer to doobs like myself who don't pay enough attention. :)

Re: mounted shares locally, but see no files thru /mnt/samba

Posted: Sat Apr 26, 2014 4:53 pm
by bigfoot65
Glad you got it working.

Agreed and it is now the first line in the guidance to install that dependency.
http://p6c.g6.sl.pt

I think in the past it might have been installed by default, but not with Fedora 19 obviously.

Thanks for the feedback.