On Sat 30 Sep 2023 at 03:26:19 (-0400), gene heskett wrote: > On 9/29/23 17:32, Andy Smith wrote: > > On Fri, Sep 29, 2023 at 04:36:04PM -0400, gene heskett wrote: > > > 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 > > > > You didn't respond to the part about /etc/fstab so we have no idea > > if you found the information you needed. > > I didn't find the swap listed in the fstab, its apparently setup > someplace else in debian 12 for arm64's, so I've not finalized that > yet. Awaiting guidance. > > > Assuming you did find the errant entry in /etc/fstab, a sequence of: > > > > 1. swapoff -a > > 2. edit /etc/fstab to be correct > > 3. swapon -a > > I'd also point out that despite the presence of the above listed swap, > swapon -a and swapoff -a, does not enable it, I have to mount it by > hand. > > > > should change things to how you want them.
IMO you're being blinded by /etc/fstab and -a. Rather, use /proc/swaps to see what the kernel knows, and stop using -a. Cut and paste what you do and the output, rather than all this "doesn't work" etc. I'm guessing that on a parallel track, you need to examine the startup files of whatever this beast is, presumably not Debian, and find some occurrence of swapon that you can, in your jargon, "nuke". Cheers, David.