"Not enough space" when copying from iPhone to a NAS

By Isaac Griffiths, developer of SMBDrop ·

You copy photos or a long video from the iPhone to your NAS and it fails, saying there isn't enough space, or failing with no reason at all. The NAS's storage page says there's plenty free. Or the share really is full, and you want to know what filled it.

The space an SMB client sees isn't always the free space on the disks. It's what the server reports for that share and that account, after quotas, reservations, cache rules and snapshots. Here's where to look.

First: which side is out of space?

Two different things can run out:

Quotas on the user or the share

Most NAS systems can limit how much one user, group or shared folder may store. The account the iPhone signs in with may have hit its own quota while the volume has terabytes free.

Unraid: the cache pool is full

If a share writes to a cache pool first, new files land there until the mover runs. When the pool fills, writes fail even though the array has space. Each share and pool has a Minimum free space setting, and Unraid's guidance is to set it to at least the size of the largest file you'll copy, with a margin. Set the share so that when the pool is short of space, new files go to the array instead. The Unraid and TrueNAS guide covers share setup.

ZFS and Btrfs snapshots holding deleted files

Snapshots are a good defence against mistakes, but a file you delete stays on disk while a snapshot still refers to it. If you cleared space by deleting old videos and the free space didn't move, snapshots are the likely reason. On TrueNAS, one forum thread found shares on the same pool reporting different free space because of snapshots. Prune old snapshots, or shorten how long they're kept, rather than turning them off.

The recycle bin

Synology, QNAP, TerraMaster and others can keep files deleted over SMB in a recycle bin inside the share (on Synology it's the #recycle folder). Until it's emptied, deleting doesn't free anything. Empty it, or set a schedule to empty it.

FAT32 drives: a per-file limit

A USB drive formatted as FAT32 can't store any single file of 4 GB or more, however much free space it has. The error may say there isn't enough space, or just fail. Long 4K and ProRes videos pass that size quickly. Use exFAT, NTFS or ext4 instead, depending on the server. This comes up most with router USB drives and Raspberry Pi setups.

Samba reporting free space wrongly

On DIY Samba servers, the free space Samba reports for a share comes from the file system under it. Odd setups, such as a share on a mergerfs pool or a network mount, can report the wrong figure. Samba's dfree command option lets you supply your own script for the number, which is what people on the OpenMediaVault forum used for this. It's rarely needed, so rule out the causes above first.

Planning space for iPhone backups

iPhone videos are large. On recent iPhones, a minute of 4K at 60 fps takes roughly 400 MB in HEVC, and ProRes is far more. Leave a margin of at least the size of your biggest video, and remember snapshots and the recycle bin need room too. Copying iPhone videos without compression has more on sizes.

Where SMBDrop fits

Disclosure: I make SMBDrop. It can't make room on a share, change quotas or empty a recycle bin.

When a send fails after sign-in, SMBDrop says what went wrong in plain words rather than a generic error, and failed items wait in a retry queue, so once you've freed space you can retry instead of working out what's missing. Files already on the share with the same name and size are skipped. After a send, Review Uploaded Photos lets you choose which originals to delete from the iPhone, if it's the phone you're trying to free up. Freeing up iPhone storage with a NAS walks through doing that safely.

FAQ

Why does my NAS say not enough space when it has free space?

The share or user may have a quota, an Unraid cache pool may be full, snapshots or a recycle bin may still hold deleted files, or the drive may be FAT32, which can't store a single file of 4 GB or more.

Why didn't deleting files on my NAS free any space?

Usually because snapshots still refer to the deleted files, or because they went into the share's recycle bin. Empty the recycle bin and prune old snapshots.

Can the iPhone run out of space while copying to a NAS?

Yes. With Optimise iPhone Storage on, the iPhone downloads each original from iCloud before copying it, so a nearly full phone can make the copy fail. Send smaller batches, or free some space first.

How much space do iPhone videos need on a NAS?

A lot. A minute of 4K at 60 fps is roughly 400 MB in HEVC on recent iPhones, and ProRes is many times more. Leave a margin of at least your biggest video.

More guides

Try SMBDrop

Send original photos, videos and files from your iPhone straight to your own SMB share. One purchase, no account, no subscription.

Download SMBDrop on the App Store £9.99 once · no subscription · iOS 17+