Page 1 of 2

hard drive space not matching - samba - mac

Posted: Sat Jan 18, 2020 7:13 pm
by snoodler
I am trying to move files to the server that I made with my diet-pi but inside finder (mac) this is what I see:

Image

https://imgur.com/a/ksswJnT

it only shows 23,3 gb avilable and when i tr to move a bigger file it cautions me about being to big even when i have 1tb free. :?

any ideas?

Re: hard drive space not matching - samba - mac

Posted: Sat Jan 18, 2020 7:54 pm
by Joulinar
Hi,
many thanks for your report.

Basically on your dh -h command output you see on the first line /dev/root with a size of 29GB total and 22GB available. This is your SD card inside your DietPi device. I assume it's a 32GB SD card, correct?

The last 4 lines /dev/sda1-4 seems to be some external devices that you plugged into your SBC. These 4 external devices are mounted to

Code: Select all

/mnt/storage/Media
/mnt/storage/Cloud
/mnt/storage/Home
/mnt/storage/Time_Capsule
So they are mounted directly to these sub-directories and /mnt/storage is still part of your 32GB SD card ;)

Once you login into your SAMBA server, you will land on /mnt/storage and it's normal to see the available space of your SD card at this point. If you try to copy some data, they will be stored on your SD card as well. To have it copied to your external devices, you would need to change into one of the 4 sub-directories.

Re: hard drive space not matching - samba - mac

Posted: Mon Jan 20, 2020 3:44 pm
by snoodler
Yes it is a 32gb card.

Should I mount the drives somewhere else?

Im still confused.

Thanks

Re: hard drive space not matching - samba - mac

Posted: Mon Jan 20, 2020 5:05 pm
by Joulinar
You just need to change into one of the four sub directories and you should be able to store your data.

Re: hard drive space not matching - samba - mac

Posted: Tue Jan 21, 2020 10:49 am
by snoodler
Hey, I am still confused because when I enter those directories it shows them still at 23 GB
There is nothing else mapped.

https://imgur.com/a/qOYp9Ry

I think i moved files already inside my mac a few weeks ago but now it is impossible.

Re: hard drive space not matching - samba - mac

Posted: Tue Jan 21, 2020 10:58 am
by Joulinar
pls can you go to /mnt/storage/Media on your DietPi system and past the following

Code: Select all

df -h .

Re: hard drive space not matching - samba - mac

Posted: Tue Jan 21, 2020 11:05 am
by snoodler
just added it to the same link:

https://imgur.com/a/qOYp9Ry

Re: hard drive space not matching - samba - mac

Posted: Tue Jan 21, 2020 11:08 am
by Joulinar
what happen if you try to copy files directly into the Media folder?

Re: hard drive space not matching - samba - mac

Posted: Tue Jan 21, 2020 11:20 am
by snoodler

Re: hard drive space not matching - samba - mac

Posted: Tue Jan 21, 2020 11:50 am
by Joulinar
for testing purposes, pls can you add the following to the /etc/samba/smb.conf

Code: Select all

[test]
        comment = DietPi Share
        path = /mnt/storage/Media
        browseable = yes
        create mask = 0775
        directory mask = 0775
        valid users = dietpi
        writeable = yes
max connections = 8
pls restart SMB server afterwards.

Code: Select all

systemctl restart smbd.service
Now, you should be able to see a new shared folder test which is linked directly to your /mnt/storage/Media directory.