On 9/29/23 15:21, Andy Smith wrote:
Hello,
On Fri, Sep 29, 2023 at 03:15:54PM -0400, gene heskett wrote:
I have SSD's for swap on an rpi4b, so to lessen the abuse of the u-sd card I
need to turn off the swap file, and swapon -a the SSD stuff.
Have you looked in /etc/fstab where as you know filesystem mounts
are described? If the swap file is listed in there, remove it and
add one that's on your SSD.
If it's not in there, the situation is more of a mystery and I'd
suggest you paste the output of "swapon -s" so we can see what the
system, thinks it is currently swapping to.
I assume you don't need instruction on how to turn off an existing
swap source, and how to create a new swap file.
Swap file is the last thing I want, much slower than a swap partition.
Thanks,
Andy
cnc@rpi4:/etc$ sudo swapon -s
Filename Type Size
Used Priority
/dev/zram0 partition 1048572
98304 100
/dev/sda2 partition 9859068
0 -3
I need it to forget zram0 and use the swap on sda2, although I may try
to move /tmp to sda4 & ext4 now that I know how to run gparted on wayland.
Whats in zram0 ATM is lose able as I just built linuxcnc debs, docs and
all from a git clone.
Thanks Andy.
Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>