Skip to content

Swap over NFS

Florian Fuchs edited this page Jun 26, 2026 · 3 revisions

Sometimes it might be useful to have a little more usable RAM, that can be done by using a swapfile over the network via NFS.

You first mount the NFS share and then setup the swap. The swapfile should be created first on the hostsystem like:

dd if=/dev/zero of=/media/dc/swapfile bs=1M count=512 status=progress

And then mounted and configured on your Dreamcast:

mount -t nfs -o port=2049,nolock,proto=tcp 192.168.0.225:/media/dc/ /mnt

losetup /dev/loop0 /mnt/swapfile
mkswap /dev/loop0
swapon /dev/loop0

Clone this wiki locally