Jul 23 2005, 08:41 AM
Am trying to get the debian pocket workstation installed on my c1000.
I've a 1gb SD card which I've currently formatted as ext2
I'm trying to work out how to put the debian swapfile there. Any hints?
Jul 23 2005, 08:55 AM
I tried this:
# dd if=/dev/zero of=/mnt/card/swapfile bs=1048576 count=128
# mkswap /mnt/card/swapfile
# swapon /mnt/card/swapfile
And it created me a 128 mb file called swapfile, am hoping that's right
Jul 23 2005, 09:31 AM
What you did is correct. If you issue the command "free" from the shell prompt it will report your memory usage, including swap and you can check whether it's working.
Jul 23 2005, 11:14 AM
# cat /proc/swaps
itll tell you the status of your swapfile(s)
hey amazing I am learning, I didn't even have to look that one up:)
Jul 29 2005, 08:25 AM
I have a question regarding the swapfile. I installed PocketWorkstation on my C1000 and it created a 64MB swapfile, formatted it and initialised it using "swapon". It is working fine, "free" shows me the 64MB swap I have and something around 12MB of it or so gets used.
But, here's the question: how do I turn the swapfile off? "swapoff /mnt/card/swapfile" or "swapoff -a" doesn't seem to work, "free" still shows the swap. Trying to "umount" the SD card the swapfile is on (obviously without turning it off) seems to take forever, then the Zaurus crashes. After a reboot, swap is off ("free" shows 0 for swap) until I turn it on again.
Is this normal? With the swapfile being activated (and maybe being accessed), I can't umount or remove the SD card as this causes the Zaurus to hang. And it could wear out the card, couldn't it? So, does anyone have an idea how to turn the swap off (the best would be to turn it off after quitting PocketWorkstation)? I'm lost since "swapoff" doesn't work.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here