Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[PROBLEM] Samba not sharing external USB drive
Thank you for your donation

Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Problem: Samba not sharing external USB drive
5th Mar, 2014, 04:49 AM
Post: #1
Deep6 Offline
Registered
Posts: 7
Joined: Dec 2013
Reputation: 1
Samba not sharing external USB drive
Hi there,

I'm having a problem with SMB and I'm having some trouble figuring it out. Here's the deal:

Software
XBian version: 1.0Beta2
XBMC version:12.2
Overclock settings: default

Hardware
Power supply rating: ?
RPi model (B 512mb):
SD card size and make/type: 8 GB (from Rpi)
Network (wireless or LAN): LAN
Connected devices (TV, USB, network storage, etc.): 2 USB Drives

Logile
Didn't see anything relevant in xbmc log

Problem description:

I have two USB drives connected to the RPi through a powered USB hub. Lets call them DiskA and DiskB. For some time, everything has been working fine. They both get automounted, and automatically shared with the auto share feature in Xbian. In my library, the source folders are set with the smb addresses because I have shared libraries with mysql.
Recently, for some reason XBMC could not find media files in diskB. I later noticed the diskB wasn't available in the previous smb address. Usually the shared addresses were:

//<rpiIpAddr>/DiskA
//<rpiIpAddr>/DiskB

Now the weird thing is, I have only one

//<rpiIpAddr>/DiskA
and within diskA I can find a folder called DiskB with everything from DiskB inside it. Like this

//<rpiIpAddr>/DiskA/DiskB


So, I turned the RPi off, Disconected DiskA and started it only with DiskB connected.
What happens is that It gets auto mounted but doesn't get shared. In log.smbd, I get a warning like
WARNING: No path in service DiskB - making it unavailable!

Since XBMC is looking for a network address that doesn't exist, it can't find any of my files...

So, any ideas how this happened, and how can I get arround it?

Thanks for your time.
Find all posts by this user
5th Mar, 2014, 07:09 AM
Post: #2
Deep6 Offline
Registered
Posts: 7
Joined: Dec 2013
Reputation: 1
RE: Samba not sharing external USB drive
Just an update on something I tried.

Tried editing the shares.conf file in /etc/samba and added a section to share the DiskB drive. Rebooted (tried restarting samba only but it did nothing) and the drive got shared without any problems.
Obviously, I want to use the auto share feature, and not an explicit share, so I commented out that same section, rebooted again, and back to the same problem.

I'm no expert here, but It looks like the auto share feature is trying to share the DiskB in a folder inside the DiskA, but since I currently have the DiskA disconnected, it fails to share... That's just my guess...

Any comments on this?

thanks
Find all posts by this user
24th Mar, 2014, 10:31 AM
Post: #3
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: Samba not sharing external USB drive
can you provide

Code:
sudo net conf list

exactly at the time when the shares are mixed up? it was reported already by one user, unfortunately we could not pin point the issue.
what XBian version you run and what is version of packages?

Code:
dpkg-query -W xbian-\*

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
25th Apr, 2014, 10:20 AM
Post: #4
Deep6 Offline
Registered
Posts: 7
Joined: Dec 2013
Reputation: 1
RE: Samba not sharing external USB drive
Hi. Sorry for the delay. I've been away for a while.

Here's the net conf list
Code:
[Joao1TBL]
        browseable = yes
        write list = xbian
        force user = xbian

[Joao1TBs]
        path = /media/Joao1TBs
        guest ok = yes
        read only = no
        write list = xbian
        force user = xbian
        browseable = yes

[xbmc-backup]
        path = /xbmc-backup
        read only = no
        guest ok = yes
        force user = root
        browseable = yes

ANd the package versions

Code:
xbian-package-cec       1.1-0.4
xbian-package-config
xbian-package-config-shell      2.1.6-51a
xbian-package-config-xbmc       1.1.4-3
xbian-package-couchpotato       2.0.7
xbian-package-firmware  1.4.14-0
xbian-package-firmware-6q
xbian-package-initramfs-tools   1.3.1-5b
xbian-package-kernel    1.3-5.5
xbian-package-kernel-headers
xbian-package-kernel3.6.11
xbian-package-libshairport      1.0-1
xbian-package-libtag    1.0-2
xbian-package-lirc      1.4-8.8
xbian-package-networkfs
xbian-package-samba     2.0.0-4
xbian-package-shairplay 1.0.2-1
xbian-package-sickbeard
xbian-package-sickbeard-tpb     1.1
xbian-package-splash    2.0.2-6
xbian-package-transmission      2.82
xbian-package-upstart-xbmc-bridge       1.1.1-3
xbian-package-usbmount  1.0.5-5
xbian-package-vnc-server        1.0.4
xbian-package-xbmc      2.9-10.20
xbian-package-xbmc-6q
xbian-package-xbmc-gotham-nightly
xbian-package-xbmc-scripts      1.0.5-11
xbian-package-zram-swap 1.0.5
xbian-packate-vnc-server
xbian-update    1.0.2-8e


Hope it helps pin pointing the issue.
I've been using that workaround in the shares.conf file but it would be great to get this fixed.

Thanks!
Find all posts by this user
21st Jul, 2014, 07:52 PM
Post: #5
Kevin LeRoy Offline
Registered
Posts: 5
Joined: Jul 2014
Reputation: 0
RE: Samba not sharing external USB drive
i have a simialr situation... my external USB shared to Samba just fine then I upgraded andI cant see it on the network any more ...any help?
Find all posts by this user
6th Aug, 2014, 11:14 AM
Post: #6
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: Samba not sharing external USB drive
@Kevin

if you (on the fly while RPI running) remove USB disk and plug it in again, will the share re-appear ?

if yes, edit please /etc/usbmount/mount.d/00-clean , put "set -x" as 2nd line and reboot. then after all started and USB disk again mounted, send me /var/log/upstart/openbsd-inet.log

please use git issue tracker for this

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
« Next Oldest | Next Newest »
Thread Closed 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
  [SOLVED] Samba for External HD gigles13 3 10,743 15th May, 2015 07:52 PM
Last Post: deHakkelaar
  [SOLVED] external drive no longer mounts on boot adepssimius 3 11,546 21st Jul, 2014 07:51 PM
Last Post: Kevin LeRoy

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 9th May, 2025, 03:42 PM Powered By MyBB, © 2002-2025 MyBB Group.