Results 1 to 3 of 3

Thread: swap space , which is correct?

  1. #1
    Join Date
    Oct 2009
    Location
    Dhaka,Bangladesh
    Posts
    251

    Default swap space , which is correct?

    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
    Fstab - ArchWiki
    Setting Up Swap Space

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: swap space , which is correct?

    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.

  3. #3
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: swap space , which is correct?

    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:

    Code:
    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:

    Code:
    man fstab
    --
    DenverD
    When it comes to chocolate, resistance is futile.
    CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •