[SOLVED] no space on drive when there is 100+GB free

January 23, 2025, 17:24

iludw1g

i have a samba connection to my usb drive connected to my rpi5. its 115GB in size, but when i copy things over like 8GB, 5GB, it says there isn't enough space when i use filezilla to get it across it goes until around 4GB until it says the file already exists...... if i overwrite it will copy it again from the start, only until 4GB and stop. and if i just resume it doesn't copy it over either. i also tried to use mobaxterm to get it across, but same thing, once it finished there was only 4GB of the actual 8GB it most definitely has the space:
df -Th
Filesystem     Type      Size  Used Avail Use% Mounted on
/dev/sdc1      vfat      116G   22G   95G  19% /home/user/usb
on the other hand, i copied over a folder with multiple files in there, in total the folder being 16GB and it all copied over fine.. i'm not sure what's going on it could be because the files in the folder are all less than 4GB. but that still wouldn't make sense

iludw1g

i read this online, could this be the issue? "the problem might be the file system on the flash storage device set by default, FAT32. Formatting your flash drive allows you to switch the existing file system to exFAT, which is capable of storing files over 4GB."

oops.se

You can find the answer on wikipedia

timinytim

That is most definitely the issue Kensan! The maximum file size fort vFAT/FAT32 is 4GB. Like Oops.se said, Wikipedia is lengthy but SUPER useful - you're going to want to read up on file systems, and file allocation size. Were you able to solve your issue?

iludw1g

kensan- LOL. yeah i was able to do a quick format of the usb on my windows pc, exfat i believe, after that it was all good, i could copy over 8, 9GB file sizes just fine

iludw1g

i do believe at this moment all my issues are solved, thanks for the help, but this little bit i read here was enough for me to go and fix it. the tread became obsolete not long after i made it