Note: Almost all content here will eventually be revised and merged into the live-manual. Please do not add new content to the wiki, but contribute to the manual directly. |
There are times when the physical memory available to the Live environment is just not enough. To this end, a local swap space can be enabled. This page assumes you have already mounted a local disk partition as described in DebianLive/Howto/Mount_Local_Partition.
# Pre-allocate the space to use as the swap file. The example below
# creates a 512MB swap file on the mounted drive (count=512x1024).
dd if=/dev/zero of=/localdisk/netboot/swapfile bs=1024 count=524288
# If creating the file was successful, enable the swap file now.
if [ -f /localdisk/netboot/swapfile ]; then
mkswap /localdisk/netboot/swapfile
swapon /localdisk/netboot/swapfile
fiTo make this happen automatically at boot, see this FAQ.
