You may create a special swap-partition.
In fdisk, you specify the partition-type 82 (Linux-swap) and call mkswap (man mkswap for correct parameters).
My old PC has on 48 Mb RAM.
I have done a HD install.
Before KDE starts, it tells me that there is not
enough memory and a swap file can be
created on a DOS partition.
I let it create a 300 Mb swap file in a 600 MB DOS partition.
This works fine. I use the PC for a few hours and then I shut down the PC.
Come back a few hours later and again - Before KDE starts,
it tells me that there is not enough memory and a swap
file can be created on a DOS partition. What happened
to the 300 Mb swap file we just created?
How can I make a swap file permament?
Do I need to use the DOS partition?
Can I create a swap file in the current ext3 partition?
You may create a special swap-partition.
In fdisk, you specify the partition-type 82 (Linux-swap) and call mkswap (man mkswap for correct parameters).
Thanks. That worked.

Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot
$285.90
SanDisk Ultra Luxe USB 3.1 Flash Drive – 5 Pack | Premium Metal USB Flash Drives
$39.99
Zero Trace Pen: All-in-one Tor Network Anonymous Drive + Cryptocurrency Wallet
$147.00
Microsoft Windows 11 Pro 64bit - New Sealed – Flash USB 1 PC
$49.99
USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack
$826.09
Sandisk 16GB 32GB 64GB 128GB Cruzer Blade Flash Drive Memory Stick USB Lot Pack
$88.90
LOT 10x SanDisk 32GB ULTRA USB 3.0 flash drive SDCZ48-032G 32 GB read 100 MB/s
$39.80
USB Type-A Flash Drive Metal Memory Stick High Speed USB Drive 128GB 256GB 512GB
$7.97
TESLA OEM Model S,3,X,Y USB Flash Drive for Dashcam 128GB READ DESCRIPTION BELOW
$21.00
Toshiba TransMemory USB 3.0 Flash Drive – Pack of 5 | Fast, Reliable & Porta Lot
$69.99