swap not appearing in /etc/mtab - Suse

This is a discussion on swap not appearing in /etc/mtab - Suse ; Does this also apply to openSUSE? I don't see my swap partition in /etc/mtab either. Warning: Ubuntu/Arch Linux Slowdown? Check Your Swap http://the.linux-hardcore.com/node/11 -- email =~ s/nospam/fudokai/...

+ Reply to Thread
Results 1 to 7 of 7

Thread: swap not appearing in /etc/mtab

  1. swap not appearing in /etc/mtab

    Does this also apply to openSUSE? I don't see my swap partition in /etc/mtab
    either.

    Warning: Ubuntu/Arch Linux Slowdown? Check Your Swap
    http://the.linux-hardcore.com/node/11

    --
    email =~ s/nospam/fudokai/

  2. Re: swap not appearing in /etc/mtab

    On November 7, 2008 08:48, in alt.os.linux.suse, ajp (ajp@nospam.org.uk)
    wrote:

    > Does this also apply to openSUSE? I don't see my swap partition in
    > /etc/mtab either.


    You don't mount(8) or mount(2) swap partitions, and thus, swap partitions
    don't show up in /etc/mtab.

    --
    Lew Pitcher

    Master Codewright & JOAT-in-training | Registered Linux User #112576
    http://pitcher.digitalfreehold.ca/ | GPG public key available by request
    ---------- Slackware - Because I know what I'm doing. ------



  3. Re: swap not appearing in /etc/mtab

    On Fri, 7 Nov 2008, ajp wrote:-

    >Does this also apply to openSUSE?


    You mean active swap partitions not showing up in /etc/mtab? No, they
    don't, and I don't recall them ever showing up there. Looking at the
    earliest version I have still running, which is SuSE 9.1, there is no
    swap listed in mtab but, as you can see, it's certainly in use:

    davjam@thargon:~> free -t
    total used free shared buffers cached
    Mem: 158548 155996 2552 0 7276 19552
    -/+ buffers/cache: 129168 29380
    Swap: 530108 264780 265328
    Total: 688656 420776 267880


    >I don't see my swap partition in /etc/mtab
    >either.


    Why would it be? It's not like its a mounted file system.

    >Warning: Ubuntu/Arch Linux Slowdown? Check Your Swap
    >http://the.linux-hardcore.com/node/11


    That's a problem with the Ubuntu/Arch Linux installer putting an
    incorrect UUID for the swap partition into the fstab, and so the swap
    partition isn't enabled.


    Regards,
    David Bolt

    --
    Team Acorn: http://www.distributed.net/ OGR-NG @ ~100Mnodes RC5-72 @ ~1Mkeys/s
    SUSE 10.1 32 | | openSUSE 10.3 32b | openSUSE 11.0 32b
    | openSUSE 10.2 64b | openSUSE 10.3 64b | openSUSE 11.0 64b
    RISC OS 3.6 | TOS 4.02 | openSUSE 10.3 PPC | RISC OS 3.11

  4. Re: swap not appearing in /etc/mtab

    In
    [Snip...]

    > incorrect UUID for the swap partition into the fstab, and so the swap
    > partition isn't enabled.


    (Sorry for the off-topic in aols. FUs to aolu if that's better)

    Hmm...I'm running Kubuntu 8.04. It seems to be doing OK in swap, although
    /etc/fstab seems "bogus" in this fashion:

    root@aces:~# grep -i swap /var/log/messages
    Nov 7 04:46:20 aces kernel: [ 3284.596340] Adding 240932k swap on /dev/sdb6.
    Priority:-1 extents:1 across:240932k
    root@aces:~# grep -i swap /etc/fstab
    UUID=6f151619-2ba5-4ce5-9ead-34b88390d8d9 none swap sw 0 0
    root@aces:~# free
    total used free shared buffers cached
    Mem: 385620 378716 6904 0 9048 192624
    -/+ buffers/cache: 177044 208576
    Swap: 240932 33804 207128
    root@aces:~# grep -i swap /etc/mtab
    root@aces:~#

    Go figure...

    --
    Regards, Weird (Harold Stevens) * IMPORTANT EMAIL INFO FOLLOWS *
    Pardon any bogus email addresses (wookie) in place for spambots.
    Really, it's (wyrd) at airmail, dotted with net. DO NOT SPAM IT.
    I toss GoogleGroup posts from gitgo (http://improve-usenet.org).

  5. Re: swap not appearing in /etc/mtab

    On November 7, 2008 11:15, in alt.os.linux.suse, Harold Stevens
    (wookie@aces.localdomain) wrote:

    > In >
    > [Snip...]
    >
    >> incorrect UUID for the swap partition into the fstab, and so the swap
    >> partition isn't enabled.

    >
    > (Sorry for the off-topic in aols. FUs to aolu if that's better)
    >
    > Hmm...I'm running Kubuntu 8.04. It seems to be doing OK in swap, although
    > /etc/fstab seems "bogus" in this fashion:
    >
    > root@aces:~# grep -i swap /var/log/messages
    > Nov 7 04:46:20 aces kernel: [ 3284.596340] Adding 240932k swap on
    > /dev/sdb6.
    > Priority:-1 extents:1 across:240932k
    > root@aces:~# grep -i swap /etc/fstab
    > UUID=6f151619-2ba5-4ce5-9ead-34b88390d8d9 none swap sw 0 0


    Nothing bogus here (unless that UUID is not the UUID for /dev/sdb6).

    Remember: fstab(5) (/etc/fstab) is the configuration file for both mount(8)
    and swapon(8), while /etc/mtab is the report that mount(8) generates.
    mount(8) ignores the swap entries in the fstab(8) (the init scripts don't
    ask mount(8) to mount "swap" filesystems), so mount(8) doesn't record swap
    in /etc/mtab (because it doesn't mount it). OTOH, swapon(8) needs to know
    if and how to activate swap partitions, and it finds this out from
    the "swap" entries in fstab(5). swapon(8) doesn't record activated swap
    partitions in /etc/mtab.


    > root@aces:~# free
    > total used free shared buffers cached
    > Mem: 385620 378716 6904 0 9048 192624
    > -/+ buffers/cache: 177044 208576
    > Swap: 240932 33804 207128
    > root@aces:~# grep -i swap /etc/mtab


    Working as Designed. No trouble found.

    > root@aces:~#
    >
    > Go figure...


    Or, read the documentation ;-)

    --
    Lew Pitcher

    Master Codewright & JOAT-in-training | Registered Linux User #112576
    http://pitcher.digitalfreehold.ca/ | GPG public key available by request
    ---------- Slackware - Because I know what I'm doing. ------



  6. Re: swap not appearing in /etc/mtab

    In Lew Pitcher:

    [Snip...]

    > Nothing bogus here (unless that UUID is not the UUID for /dev/sdb6).


    Ah. Thankyou. (Non)Problem, solved.

    > Or, read the documentation ;-)


    Thanks again. I'm definitely lazy this today, and this helps.

    --
    Regards, Weird (Harold Stevens) * IMPORTANT EMAIL INFO FOLLOWS *
    Pardon any bogus email addresses (wookie) in place for spambots.
    Really, it's (wyrd) at airmail, dotted with net. DO NOT SPAM IT.
    I toss GoogleGroup posts from gitgo (http://improve-usenet.org).

  7. Re: swap not appearing in /etc/mtab

    Lew Pitcher wrote:

    > On November 7, 2008 08:48, in alt.os.linux.suse, ajp (ajp@nospam.org.uk)
    > wrote:
    >
    >> Does this also apply to openSUSE? I don't see my swap partition in
    >> /etc/mtab either.

    >
    > You don't mount(8) or mount(2) swap partitions, and thus, swap partitions
    > don't show up in /etc/mtab.
    >


    That was my understanding but this article implies that they should hence my
    confusion.

    --
    email =~ s/nospam/fudokai/

+ Reply to Thread