A compact flash card is a very bad choice for a swap file, slow and the constant read/write cycles will likely destroy it in short order. So even if you find a way to do this, don't.
I have a spare Compact Flash card at the moment and I'm trying to put it to good use. If I boot with it in Knoppix detects it; unfortunately it doesn't detect it when it searches for "existing DOS partitions". (the lappy doesn't have enough RAM) Is there something I have to tweak to make it a usable partition for a swapfile?
A compact flash card is a very bad choice for a swap file, slow and the constant read/write cycles will likely destroy it in short order. So even if you find a way to do this, don't.
---
Verifying of md5 checksum and burning a CD at slow speed are important.

OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN
$155.00
Ubuntu Server 26.04.1 LTS Bootable USB Flash Drive – Latest September 2026
$12.99
ESET Server Security (File Security) | Variant Item | Download Version
$136.15
OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 512GB SSD 8x NIC QAT AES VPN
$128.00
All New Ubuntu 26.04 LTS Linux Bootable USB Flash Drive
$15.95
Toshiba Magnia SG20 VPN Linux server Web server (No HDD, *Read*) -
$60.00
1U Rackmount PC Intel Core i5-2520M 8GB RAM 500GB HDD Ubuntu Linux Server
$109.99
Microsoft SQL Server 2022 Standard 24 Core unlimited CAL Retail License Package
$199.00
Red Hat Enterprise Linux 5 Server DVD English OS Media Kit RHF0382US
$41.30
SQL Server 2022 Enterprise 96 Core License & DVD Unlimited CALs with CoA
$284.99