/etc/rc.local

If you are running short of space on your hard drive, you can use the Windows page file for swap space.
If you mounted your primary NTFS partition as described elsewhere, simply add the following commands to your /etc/rc.local file:
# Use Windows page file as swap space
PAGEFILE=/mnt/restricted/windows/pagefile.sys
if [ -w $PAGEFILE ]
then
    mkswap $PAGEFILE
    swapon $PAGEFILE
fi

No comments:

Post a Comment