Difference between “none” and “swap” as a mountpoint for swap in fstab

fstabswap

I've seen that sometimes the entry for the swapfile in fstab is specified as "none" for the mount point and sometimes as "swap" instead. For example:

/swapfile none swap defaults 0 0

/swapfile swap swap defaults 0 0

The fsrtab man page says that "none" should be used, but Red Hat's documentation uses "swap" instead.

What is the difference between those two?

Best Answer

It's only a name. You can use any string, for example: pinkunicorn.

Related Question