3tb usb drive samba share gets reported size wrong from win7

Raspberry Pi related support

3tb usb drive samba share gets reported size wrong from win7

Postby Bignumbas » 20 Feb 2019, 05:42

I have a new 3tb WD Elements USB 3 drive that I cannot copy files to over 1gb to as it says it is out of space.
In RuneAudio debug report it is correctly seen as 3tb (2.8tb used and 1.1tb free) and when I go in with Putty everything is fine to.
However from my Win 7 pc when I map the shared drive to my PC it reports as being 3.43 gb size with 1.01 gb free and 2.41gb used.
It is misreporting the size by roughly dividing by 1,000 as it is actually 2.8tb

3tb drive wrong size.png
win7 network drive properties
3tb drive wrong size.png (41.37 KiB) Viewed 125 times


WTF is going on!
I have tried everything, I am a long term Linux user and have an RPI3 Ubuntu Mate Bionic media server with Samba and it reports correctly from that.
I thought Runeaudio uses udevil using ntfs-3g but when I run mount is says it is mounted by fuse?? , samba setup looks good, stock standard.
I want to use Rune as my media server so its a big hiccup for the moment.

Full debug info is here
https://pastebin.com/mbNryznG
Bignumbas
 
Posts: 5
Joined: 20 Feb 2019, 00:36

Re: 3tb usb drive samba share gets reported size wrong from

Postby janui » 20 Feb 2019, 10:26

Hi Bignumbas,
Bignumbas wrote:...Win 7 pc when I map the shared drive to my PC it reports as being 3.43 gb size with 1.01 gb free and 2.41gb used. It is misreporting the size by roughly dividing by 1,000 as it is actually 2.8tb...
What it is being reported is the available space at the mount point, that is you Micro-SD card. I do not know why Samba does this or how to structurally correct it. See this thread for a reasonably good workaround: post26838.html?hilit=agree%20janui#p26835
janui
User avatar
janui
 
Posts: 540
Joined: 20 Dec 2014, 12:55
Location: Ollanda

Re: 3tb usb drive samba share gets reported size wrong from

Postby Bignumbas » 20 Feb 2019, 23:03

Thanks for that pointer, such a simple fix, DOH!
I found a post on a raspberry pi site and all you have to do is edit the Samba share path used by the drive to be the drive mount folder not the folder tree above where it is mounted otherwise it uses the SDcard size. What a weird glitch.
No need to worry about the size of you SDcard, I am using a 8gb but I did not realise that it was not automatically expanded on install.

So I changed this :
[MusicStoreUSB]
comment = MPD MusicStore (/mnt/MPD/USB)
path = /mnt/MPD/USB/

to this:
[MusicStoreUSB]
comment = MPD MusicStore (/mnt/MPD/USB)
path = /mnt/MPD/USB/MEDIA-3tb

MEDIA-3tb is the actuall mount point of the usb drive.
Thanks again for your help, janui. All good now I have my 3gb space back.
Last edited by Bignumbas on 21 Feb 2019, 21:11, edited 1 time in total.
Bignumbas
 
Posts: 5
Joined: 20 Feb 2019, 00:36

Re: 3tb usb drive samba share gets reported size wrong from

Postby janui » 21 Feb 2019, 13:32

Hi Bignumbas,
Thanks for investigating this, explaining why it happens and showing us how to fix it.
I will add some notes in the Samba configuration files. Unfortunately the default settings can not be changed as I don’t know the names of the mounts which the user will choose.
My advise is leave the default 'MusicStoreUSB' unchanged and add extra shares for your high capacity disks. Then any other mounted USB storage will still be accessible via the Samba share.
janui
User avatar
janui
 
Posts: 540
Joined: 20 Dec 2014, 12:55
Location: Ollanda

Re: 3tb usb drive samba share gets reported size wrong from

Postby Bignumbas » 21 Feb 2019, 23:45

I agree, I am going to do that.
That is what I had done on my other pi media server because it auto-mounted the usb drive under the users name and could not be shared easily because of permissions.

ie. /mnt/pi/MEDIA changed to /mnt/MEDIA

Have done this now its all working good.

Now I am going to change my libreelec kodi clients to NOOBS dual boot Rune/KODI. :D

I really like the internet radio.

My only problem is that my older rpi2's cannot handle DSF/DFF playback on a PiFi DAC+ , it cannot keep up, I will try an optical digital connection instead soon. KODI on an rpi2 has no problems with playback but that is using HDMI direct to the amp.
Will start a new thread on that when I get one.
Bignumbas
 
Posts: 5
Joined: 20 Feb 2019, 00:36

support RuneAudio Donate with PayPal


Return to Raspberry Pi

Who is online

Users browsing this forum: Google [Bot] and 1 guest