USB Hard Drive reported size problem

Raspberry Pi related support

USB Hard Drive reported size problem

Postby bnilsson » 25 Dec 2016, 12:24

I have a HiFiBerry RP3 running RuneAudio 20160313beta.

There seems to be a long time problem that the smb guest connection to "MusicStore" share reports the remaining size of the SD card as the available size, and not the actual size of any USB connected Hard Drive.
This means if I have a few hundred MB left on the SD, and I connect a 1TB USB HD I cannot use the smb share connection to copy files to the USB HD. "No available space on drive".
Files can be copied one by one if each is less than the SD space, but if the track is really big, it is impossible.

I think the RuneAudio built-in smb share "MusicStore" would be the perfect way to maintain the music library, if it was not for this issue.

Any news on a built-in RuneAudio solution to this problem?

BN
bnilsson
 
Posts: 58
Joined: 06 Jun 2016, 11:22

Re: USB Hard Drive reported size problem

Postby hondagx35 » 25 Dec 2016, 13:18

Attachments
samba2.jpg
samba2.jpg (111.25 KiB) Viewed 1409 times
samba.jpg
samba.jpg (83.82 KiB) Viewed 1411 times
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: USB Hard Drive reported size problem

Postby bnilsson » 25 Dec 2016, 14:09

Looks promising.

Strangely enough, my USB disk gets mounted RO. Normal?
Before the smb.conf change I somehow got it mounted RO first, then it became RW for unknown reasons.
That's how I could test the file size behavior.
I don't feel I am in complete control here.
Any advice?

Sorry I diffuse out of topic...
bnilsson
 
Posts: 58
Joined: 06 Jun 2016, 11:22

Re: USB Hard Drive reported size problem

Postby hondagx35 » 25 Dec 2016, 14:20

User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: USB Hard Drive reported size problem

Postby bnilsson » 25 Dec 2016, 14:51

I replaced /etc/udevil/udevil.conf with the content you supplied and rebooted.

Now it gets really strange.

My 160GB USB disk is labelled "MUSIC".
In RuneUI the disk is reported mounted on /dev/disk2 USB/MUSIC.
RuneUI/Library shows "USB storage(3)", opening this entry shows nothing.
In the ssh terminal, the command "mount" does not report any /dev/disk2 mounted.
The smb share MusicStoreUSB still reports the small SD remaining space.
If I copy a small music file into MusicStoreUSB/MUSIC, the USB disk activity light remains inactive.
Dismounting the USB disk and connecting it to my Mac reveals an empty disk!
And /mnt/MPD/USB/MUSIC still contains the file I copied.

Apparently, the disk mount is "a fake", the disk is not mounted at all.
/mnt/MPD/USB/MISIC is using the DS memory space?
bnilsson
 
Posts: 58
Joined: 06 Jun 2016, 11:22

Re: USB Hard Drive reported size problem

Postby bnilsson » 25 Dec 2016, 15:12

Sorry, I realize now that your udevil.conf was not intended to be the complete file.
I applied your changes to the existing udevilconf and now the disk gets mounted rw, and the behavior is normal.
However, in the smb share "MusicStoreUSB" the MUSIC folder is marked no access.
I have formatted the disk Fat32.
bnilsson
 
Posts: 58
Joined: 06 Jun 2016, 11:22

Re: USB Hard Drive reported size problem

Postby bnilsson » 25 Dec 2016, 15:58

I formatted the disk as HFS+ and now looks accessible in the MusicStoreUSB share,
But it is still mounted ro...

However, the available space in the smb share is still that of the SD card, 175MB.

If I change the share path from

[MusicStoreUSB]
path = /mnt/MPD/USB
to
[MusicStoreUSB]
path = /mnt/MPD/USB/MUSIC

I get the correct size, 160GB.

So this issue is sort of "partially solved", but this is not a flexible solution in this form.
The smb share path MUST be set to the device mount point itself(mnt/MPD/USB/MUSIC), not to the folder above it (mnt/MPD/USB):

[root@runeaudio samba]# mount:
/dev/sda2 on /mnt/MPD/USB/MUSIC type hfsplus (ro,nosuid,nodev,noexec,noatime,umask=22,uid=1000,gid=92,nls=utf8)

My remaining problem is now how to mount the USB drive RW mode.
bnilsson
 
Posts: 58
Joined: 06 Jun 2016, 11:22

Re: USB Hard Drive reported size problem

Postby bnilsson » 25 Dec 2016, 16:22

Reformatted the disk to FAT32 again on my Mac, connected it to the Hifiberry, now all works.
Size reported for the USB smb share is 160GB as it should.
I can copy files of any size.

The only issue is the "fixed" configuration regarding the disk path name.
The smb share path must be directed to the disk mount point itself, not to the parent USB folder.
The parent USB folder belongs to the SD file system, hence the small size limit.

So the issue is partially SOLVED.

(But why is a hfsplus formatted disk still mounted RO?)

Thanks for the support, the solution is now workable.


BN
bnilsson
 
Posts: 58
Joined: 06 Jun 2016, 11:22

Re: USB Hard Drive reported size problem

Postby bnilsson » 28 Dec 2016, 10:07

bnilsson
 
Posts: 58
Joined: 06 Jun 2016, 11:22

support RuneAudio Donate with PayPal


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 9 guests