Interesting. I once used a Windows 10 swapfile in FreeBSD using FUSE NTFS and then load the file as md device. Kind of a bs solution but whatever. No problem at the next Windows boot. It doesn't care about what's currently in the file. What does linux do with this? We have a linear file, no need to add some kind of disk format structure...Linux only swaps to block devices that have a signature on them (made by mkswap). Swapping onto the same block device from FreeBSD would wipe out that signature.
So you need something like this for Linux in the startup scripts:
mkswap /dev/partition && swapon /dev/partition
Make extremely sure you get the partition id correctly.
zfs & zvol swap, Bad idea.Or share a zvol as swap?
What does linux do with this? We have a linear file, no need to add some kind of disk format structure...
More foolproof. That didn't happen to me yet.The reason behind the marking is that so that you don't unaccidentally swap to an unmarked partition.
one would figure the, uh, the partition type would be a sufficient marking, but what do we knowThe reason behind the marking is that so that you don't unaccidentally swap to an unmarked partition.
FreeBSD does any check on the swap partition or just assumes it's okay (if you know from the top of the head)?The reason behind the marking is that so that you don't unaccidentally swap to an unmarked partition.
one would figure the, uh, the partition type would be a sufficient marking, but what do we know![]()