hard drive space not matching - samba - mac Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
User avatar
snoodler
Posts: 23
Joined: Sun Dec 01, 2019 12:30 pm

hard drive space not matching - samba - mac

Post 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?

User avatar
Joulinar
Posts: 447
Joined: Fri Nov 15, 2019 11:49 pm

Re: hard drive space not matching - samba - mac

Post 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.

User avatar
snoodler
Posts: 23
Joined: Sun Dec 01, 2019 12:30 pm

Re: hard drive space not matching - samba - mac

Post by snoodler »

Yes it is a 32gb card.

Should I mount the drives somewhere else?

Im still confused.

Thanks

User avatar
Joulinar
Posts: 447
Joined: Fri Nov 15, 2019 11:49 pm

Re: hard drive space not matching - samba - mac

Post by Joulinar »

You just need to change into one of the four sub directories and you should be able to store your data.

User avatar
snoodler
Posts: 23
Joined: Sun Dec 01, 2019 12:30 pm

Re: hard drive space not matching - samba - mac

Post 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.

User avatar
Joulinar
Posts: 447
Joined: Fri Nov 15, 2019 11:49 pm

Re: hard drive space not matching - samba - mac

Post by Joulinar »

pls can you go to /mnt/storage/Media on your DietPi system and past the following

Code: Select all

df -h .

User avatar
snoodler
Posts: 23
Joined: Sun Dec 01, 2019 12:30 pm

Re: hard drive space not matching - samba - mac

Post by snoodler »

just added it to the same link:

https://imgur.com/a/qOYp9Ry

User avatar
Joulinar
Posts: 447
Joined: Fri Nov 15, 2019 11:49 pm

Re: hard drive space not matching - samba - mac

Post by Joulinar »

what happen if you try to copy files directly into the Media folder?

User avatar
snoodler
Posts: 23
Joined: Sun Dec 01, 2019 12:30 pm

Re: hard drive space not matching - samba - mac

Post by snoodler »


User avatar
Joulinar
Posts: 447
Joined: Fri Nov 15, 2019 11:49 pm

Re: hard drive space not matching - samba - mac

Post 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.

Post Reply