Swap in a read-only linux system
Hi I have managed to modify my /etc/fstab and various files to allow my root directory (/) to be read-only. I've also used tmpfs in a few special directories like /var/log.
However, I am concerned that there is swap space on my system being written to. This is a problem because the disk is a Compact Flash which cannot take too many write cycles before dieing (it's for a specialised embedded system). I would like to disable any swap space. How can I do this? Any help appreciated. Thanks. |
Remove the swap entry from /etc/fstab
|
Quote:
Code:
rootfs on / type rootfs (rw) |
What is the o/p of;
Code:
swapon -s |
Quote:
swapoff only works once i have booted in to the system.. i need permanent disabling. i will delete the swap partition and see what happens |
I believe shylock means "output". I'm interested, too.
|
Quote:
Btw are you using a swap file or swap partition? Since the swap partition should be in fstab :scratch: |
Quote:
Code:
Filename Type Size Used Priority |
Your swap is definitely off. I don' know why the Write LED is flashing at boot time. It maybe due to logging or something else.
|
If the swap has been disabled and you do not need it, then why not just remove CF ?
|
Quote:
|
All times are GMT -5. The time now is 11:59 PM. |