Page 1 of 1

Folders not being shared anymore

Posted: Sun Dec 30, 2012 9:46 pm
by PatrickDickey
Hi everyone,

I had my server setup to share the folders over my network (using SAMBA). I'm running the Fedora 14 version of Amahi. On Friday, I was able to access the shares via Windows XP, but when I tried to access them via Ubuntu this evening, it failed.

If I try to use sudo mount -a, I get the following messages for the shares (I have three of them "Music" "Movies" and "Docs" set to be shared).

Code: Select all

$sudo mount -a [sudo] password for patrickdickey: Retrying with upper case share name mount error(6): No such device or address Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) Retrying with upper case share name mount error(6): No such device or address Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) Retrying with upper case share name mount error(6): No such device or address Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
My /etc/fstab is this (It has worked in the past, but not now--I don't know when it broke though)

Code: Select all

$cat /etc/fstab # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc nodev,noexec,nosuid 0 0 # / was on /dev/sda1 during installation UUID=2ac208b7-b9fc-401b-815c-4802004d1648 / ext4 errors=remount-ro 0 1 # swap was on /dev/sda5 during installation UUID=71035841-f7c7-4678-97ad-994adf790baa none swap sw 0 0 //hda/Movies /home/patrickdickey/Videos cifs credentials=/home/patrickdickey/.smbfscredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0 //hda/Music /home/patrickdickey/Music cifs credentials=/home/patrickdickey/.smbfscredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0 //hda/Docs /home/patrickdickey/nfs-shares cifs credentials=/home/patrickdickey/.smbfscredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
And my samba configuration (via Webmin) looks like this: (The only changes I made to this are the masks from 0775 to 0777 on Music, Movies, Software)

Code: Select all

# This file is automatically generated for WORKGROUP setup. # Any manual changes MAY BE OVERWRITTEN # Amahi configuration, generated on Fri Sep 21 06:08:15 -0500 2012 [global] log file = /var/log/samba/%m.log large readwrite = yes load printers = yes display charset = LOCALE guest account = nobody socket options = TCP_NODELAY map to guest = Bad User encrypt passwords = yes time server = yes veto files = /*.nws/riched20.dll/*.{*}/ printer admin = root, @ntadmin, administrator wins support = true unix extensions = no netbios name = hda cups options = raw username map script = /usr/share/hda-platform/hda-usermap printing = cups server string = local.lan wide links = yes dos charset = CP850 workgroup = DICKEY os level = 60 printcap name = cups security = user preferred master = yes unix charset = UTF8 max log size = 150 log level = 0 [homes] comment = Home Directories valid users = %S browseable = no writable = yes create mask = 0644 directory mask = 0755 [print$] path = /var/lib/samba/drivers read only = yes force group = root write list = @ntadmin root force group = root create mask = 0664 directory mask = 0775 guest ok = yes [printers] path = /var/spool/samba writeable = yes browseable = yes printable = yes public = yes [Books] comment = Books path = /var/hda/files/books writeable = yes browseable = yes create mask = 0775 force create mode = 0664 directory mask = 0775 force directory mode = 0775 dfree command = /usr/bin/greyhole-dfree vfs objects = greyhole [Pictures] comment = Pictures path = /var/hda/files/pictures writeable = yes browseable = yes create mask = 0775 force create mode = 0664 directory mask = 0775 force directory mode = 0775 dfree command = /usr/bin/greyhole-dfree vfs objects = greyhole [Movies] comment = Movies path = /var/hda/files/movies writeable = yes browseable = yes create mask = 0777 force create mode = 0664 directory mask = 0777 force directory mode = 0777 dfree command = /usr/bin/greyhole-dfree vfs objects = greyhole [Music] comment = Music path = /var/hda/files/music writeable = yes browseable = yes create mask = 0777 force create mode = 0664 directory mask = 0777 force directory mode = 0777 dfree command = /usr/bin/greyhole-dfree vfs objects = greyhole [Docs] comment = Docs path = /var/hda/files/docs writeable = yes browseable = yes create mask = 0777 force create mode = 0664 directory mask = 0777 force directory mode = 0777 dfree command = /usr/bin/greyhole-dfree vfs objects = greyhole [pcbackups] comment = pcbackups path = /var/hda/files/pcbackups writeable = yes browseable = yes create mask = 0775 force create mode = 0664 directory mask = 0775 force directory mode = 0775 dfree command = /usr/bin/greyhole-dfree vfs objects = greyhole [dbbackups] comment = dbbackups path = /var/hda/files/dbbackups writeable = yes browseable = yes create mask = 0775 force create mode = 0664 directory mask = 0775 force directory mode = 0775 dfree command = /usr/bin/greyhole-dfree vfs objects = greyhole [Software] comment = Software path = /var/hda/files/Software writeable = yes browseable = yes create mask = 0777 force create mode = 0664 directory mask = 0777 force directory mode = 0777 dfree command = /usr/bin/greyhole-dfree vfs objects = greyhole [patrickdickey] comment = patrickdickey path = /var/hda/files/patrickdickey writeable = no browseable = yes valid users = patrickdickey write list = patrickdickey create mask = 0775 force create mode = 0664 directory mask = 0775 force directory mode = 0775 dfree command = /usr/bin/greyhole-dfree vfs objects = greyhole [ashleymiles] comment = ashleymiles path = /var/hda/files/ashleymiles writeable = yes browseable = yes create mask = 0775 force create mode = 0664 directory mask = 0775 force directory mode = 0775
One thing I noticed earlier is that when I did ls -l on /var/hda/files on my amahi server, the Music and Movies folders responsed with drwxrsxr-x instead of drwxrswr-x. I used chmod g-s to fix that, but it didn't change anything. Here are the results of ls -l on /var/hda and /var/hda/files

Code: Select all

[root@hda ~]# cd /var/hda [root@hda hda]# ls -l total 40 drwxr-xr-x. 19 apache apache 4096 Aug 10 20:09 apps drwxr-xr-x. 5 apache apache 4096 Mar 17 2012 calendar drwxr-xr-x. 2 apache apache 4096 Apr 16 2011 dbs drwxr-xr-x. 4 apache apache 4096 Mar 17 2012 domain-settings drwxr-xr-x. 2 apache apache 4096 Apr 16 2011 drives drwxr-xr-x. 2 apache apache 4096 Apr 16 2011 elevated drwxr-xr-x. 15 patrickdickey users 4096 Apr 9 2012 files drwxr-xr-x. 4 apache apache 4096 Mar 17 2012 platform drwxr-xr-x. 2 apache apache 4096 Apr 16 2011 shares drwxr-xr-x. 15 apache apache 4096 Aug 10 20:09 web-apps [root@hda hda]# cd files [root@hda files]# ls -l total 172 drwxrwxr-x 2 patrickdickey users 4096 Mar 21 2012 ashleymiles drwxrwxr-x. 7 patrickdickey users 12288 Dec 18 07:56 books drwxrwxr-x 6 patrickdickey users 4096 Dec 30 03:29 dbbackups drwxrwxr-x. 4 patrickdickey users 4096 Sep 19 19:55 docs drwxr-xr-x 9 root root 4096 Dec 16 01:55 drives drwxr-xr-x 12 root root 4096 Dec 16 01:58 gh drwxrwxr-x. 2 patrickdickey users 16384 Mar 17 2012 lost+found drwxrwxr-x. 7 patrickdickey users 12288 Dec 28 14:21 movies drwxrwxr-x. 300 patrickdickey users 49152 Dec 18 07:48 music drwxrwxr-x 80 patrickdickey users 28672 Dec 18 22:19 patrickdickey drwxrwxr-x 4 patrickdickey users 4096 Dec 27 09:10 pcbackups drwxrwxr-x. 26 patrickdickey users 20480 Apr 23 2012 pictures drwxrwxr-x 10 patrickdickey users 4096 May 5 2012 Software [root@hda files]#
smbclient shows this:

Code: Select all

$smbclient -L //hda -U patrickdickey Enter patrickdickey's password: Domain=[DICKEY] OS=[Unix] Server=[Samba 3.5.11-79.fc14] Sharename Type Comment --------- ---- ------- IPC$ IPC IPC Service (local.lan) ashleymiles Disk ashleymiles patrickdickey Disk patrickdickey Software Disk Software dbbackups Disk dbbackups pcbackups Disk pcbackups Docs Disk Docs Music Disk Music Movies Disk Movies Pictures Disk Pictures Books Disk Books print$ Disk Domain=[DICKEY] OS=[Unix] Server=[Samba 3.5.11-79.fc14] Server Comment --------- ------- DCKY-WINDOWS HDA local.lan Workgroup Master --------- ------- DICKEY HDA MSHOME DCKY-MYTHBUNTU
and for the Music share:

Code: Select all

smbclient -Upatrickdickey //hda/Music Enter patrickdickey's password: Domain=[DICKEY] OS=[Unix] Server=[Samba 3.5.11-79.fc14] tree connect failed: NT_STATUS_BAD_NETWORK_NAME
I have no idea what changed, or why things broke. I can say that as of right now, I'm unable to access the folders on Ubuntu or Windows 7 (I'm dual-booting between the two). And I haven't made any changes to anything--until tonight.

Thanks for any help, and have a great day:)
Patrick.

Re: Folders not being shared anymore

Posted: Mon Jun 24, 2013 2:14 am
by Lincee
have you tried rebooting?
Also, perhaps setting the shares anew in the HDA dashboard, maybe that fixes it for you?

Re: Folders not being shared anymore

Posted: Mon Jun 24, 2013 5:09 am
by sgtfoo
Check that your Ubuntu is looking for the Amahi HDA IP as the DNS and DHCP in network settings.

You could also try re-mounting the shares in the /etc/fstab, using the IP address of the HDA instead of the \\hda\xyx