Hi.
Recently I chose Netrunner as main OS for my work laptop. It’s a somehow old laptop with AMD Athlon Turion 64 ML-37 (1 core, 2GHz), ATI Radeon Xpress 200M, and 2G of RAM (maxed). Everything but the b43 wireless worked out of the box (fixed easily installing the firmware-b43-installer package). So Netrunner offered an awesome experience so far.
Because I have no much HDD space, and my partitions are packed with data, I decided not to create a swap partition knowing that I can use a file for swapping on a NTFS data partition in hdb. But don’t have enough knowledge to configure such (advanced?) settings. :dodgy:
Here’s what I did so far:
$ sudo mkdir /media/DATA
Mounted my NTFS data partition in /etc/fstab:
UUID=################ /media/DATA ntfs defaults 0 0
Created the file for swap:
$ sudo dd if=/dev/zero of=/media/DATA/linuxswap bs=999999 count=4k
$ sudo mkswap /media/DATA/linuxswap
Everything setup, time to test in current session:
Got rid of the /dev/zram0 swap then swap on /media/DATA/linuxswap :
$ sudo swapoff -a
$ sudo swapon /media/DATA/linuxswap
It worked!
My question is how to make use of this swap file on booting Netrunner?
Tried adding a script /etc/init.d/swapfile:
[code]#!/bin/sh
case “$1” in
start)
/sbin/swapoff -a
/sbin/swapon /media/DATA/linuxswap
;;
stop)
/sbin/swapoff /media/DATA/linuxswap
;;
restart|reload|force-reload)
/etc/init.d/swapfile stop
sleep 1
/etc/init.d/swapfile start
;;
esac[/code]
$ sudo chmod 755 /etc/init.d/swapfile
sudo service swapfile restart
Works too!
But it doesn’t work upon booting :huh:
How do I get rid of the /dev/zram0 swap and swap on my file everytime I boot Netrunner?
(next step would be enable hybernation, but for now I’ll be glad swapping as I want)