/dev/sda5 swap swap defaults 0 0
/dev/sda5 none swap defaults 0 0
/dev/sda5 swap swap sw 0 0
The first is what I have on openSUSE. The second is an old form which you will still see in old manual pages, e.g. man 5 fstab. It seems to still work as I have it on other systems (Debian and Ubuntu). So the second field apparently affects nothing.
colao wrote:
> Code:
> --------------------
>
> /dev/sda5 swap swap defaults 0 0
> /dev/sda5 none swap defaults 0 0
> /dev/sda5 swap swap sw 0 0
>
> --------------------
>
> ‘Using a swap space’ (http://tldp.org/LDP/sag/html/using-swap.html)
> ‘Fstab - ArchWiki’ (http://wiki.archlinux.org/index.php/Fstab)
> ‘Setting Up Swap Space’
> (http://tldp.org/HOWTO/Partition/setting_up_swap.html)
>
>
it might be distro specific…that is, what do your man say?
that is, NOT the man on the net–because whatever you find there
may be for a 1996 Slacker distro, which may NOT be what your current
disto wants/needs/demands…
so, the only way to know what is “correct” for your system is to
look within your system…not with google, instead open a terminal
and do:
man fstab
and READ to find your answer for your system!
and when you sit down at (ssh into, etc) a different system, and look
at fstab and see it does not look like that on the last machine, don’t
assume both should be the same, instead type this on the new system:
man fstab
–
DenverD
When it comes to chocolate, resistance is futile.
CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]