Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: 9.1.x: NVME samba share size wrong when mounted on Windows
#1
Hey community,

I've been using moode since version 5.x. After testing various commercial streamers I am super happy to have found a setup that offers what I like and need. Thank you very much Tim and team!

Recently, I moved from a RPi4 setup to the Pi4 Compute Module & official IO board with an NVME disk (via IO board's PCIe slot) as internal music storage. The previous micro SD card via USB adapter had become too small, so I decided to go for an 4TB SSD which could also function as a small file server for this and that. Moode version is 9.1.4, fresh setup but also happened with a system clone of my previous Pi4 setup.

Here comes the trouble: 
  • NVME disk is installed, formatted and mounted via moode's "Local NVME Drives" section of the Library. Listed as "3600 (/dev/nvme0n1, ext4)", where 3600 is the name or identifier of the disk.
  • mount states /dev/nvme0n1 on /mnt/NVME/3600 type ext4 (rw,nodev,noexec,noatime,nodiratime) - just as expected
  • df -h reports 3.6T size and 3.4T available on /mnt/NVME/3600 - OK
  • Samba filesharing is enabled. Using default NVME config entry of /etc/samba/smb.conf
  • When mounting NVME share on Windows, it reports a total size of 14GB and 9.6GB free size - which is the actual size of the Pi's OS SD card.
    -> I can only copy 9GB of music to the share via network because Windows thinks the drive is full. So I'm stuck.
I can copy ~0.9TB of files from an USB disk connected to the Pi directly to /mnt/NVME/3600 via terminal. When I mount the share the fies are accessible and Windows shows total size of 900GB with 9GB left. Files play as expected, I can delete, rename them on the share but I can't copy more tha 9GB of new fies over. Stuck again.

When I tried to mount the NVME disk via /etc/fstab (after unmounting it in the Library section) moode didn't come back after the reboot. Since the system runs headless, I had no chance to debug.

Maybe this is a Samba settings or config issue. Or maybe I should mount the NVME disk via fstab right away instead of using moode Library's option.

Does anyone have an idea or has gone through a similar issue with a RPi5 setup with NMVE ssd? 

Cheers,
Matt
Reply
#2
Try editing /etc/samba/smb.conf and add a share block like below then restart SMB (Samba)

[NVMe3600]
comment = NVMe 3600 Mount
path = /mnt/NVME/3600
read only = No
guest ok = Yes

Then connect to the "NVMe3600" share from Windows and see if the correct size is reported.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
Creating an extra entry in smb.conf solved the problem. Size in Windows is now reported correctly. So simple...

Thank you very much, Tim!

Kind regards,
Matt
Reply


Forum Jump: