@white
C:BootLoader is only used on classic Amigas/WinUAE.
I'm not sure if a SWAP partition is usable on a QEmu Pegasos2 (with -m 2048) at all. Unless something radically changed in AmigaOS 4.x in the last 20 years only the first 2 GB of the 32 bit virtual address space are usable for RAM (incl. SWAP partition), the upper 2 GB are used for the PCI(e) address space.
A real Pegasos2 is AFAIK limited to 1 GB RAM and with a SWAP partition you can extent it to 2 GB.
On other systems more than 2 or 4 GB physical RAM can be used with the ExtMem feature, but from
https://wiki.amigaos.net/wiki/Exec_Extended_MemoryQuote:
Pegasos 2 Warning
The extended memory feature currently does not work on the Pegasos II platform. Programmers are still encouraged to use ExtMem but may need to add an exception for the Pegasos II platform. Use IExpansion->GetMachineInfo() to verify which platform your code is executing on.
Quote:
I have not currently removed the SWAP
If I remove it, will it lead to invalidation of the disk ?
As long as you don't change anything in other partitions (moving, resizing, etc.) just deleting the SWAP partition is no problem.