Swap & fstab on Linux Mint 17 Cinnamon

Discussion in 'General Linux' started by EmJay.Au, Aug 7, 2014.

  1. EmJay.Au

    EmJay.Au New Member

    Messages:
    10
    Likes Received:
    4
    Trophy Points:
    3
    Hiya guys!!!
    I'm trying to get two swap partitions running.
    Creating them was no problem.
    The problem is to get them the same priority for interleaving.
    One used to be able to change priority by just adding a line in fstab.
    I'm on Linux Mint 17 Cinnamon and there's not priority setting in fstab.
    Would anyone know where it is now hidden and how to proceed..


    Thanx a million
  2. rstanley

    rstanley Active Member

    Messages:
    107
    Likes Received:
    53
    Trophy Points:
    28
    Please see my response to your other message at:

    http://www.linux.org/threads/partitioning-tips-and-ideas.6322/page-2#post-22499
  3. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Messages:
    1,391
    Likes Received:
    454
    Trophy Points:
    83
    You can just add it to fstab.
    For example:
    Code:
    /dev/sda1 none swap defaults,pri=100 0 0
    /dev/sdb2 none swap defaults,pri=10  0 0
  4. EmJay.Au

    EmJay.Au New Member

    Messages:
    10
    Likes Received:
    4
    Trophy Points:
    3
    This what I have in the fstab file:

    # swap was on /dev/sda5/ during installation
    UUID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx none swap sw 0 0
    # swap was on /dev/mmcblk0p1/ during installation
    UUID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx none swap sw 0 0

    but in swapon summary, I have:

    /dev/sda5/ partition 2078716 -2
    /dev/mmcblk0p1/ partition 2080764 -1

    ?????
  5. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Messages:
    1,391
    Likes Received:
    454
    Trophy Points:
    83
    Code:
    /dev/mmcblk0p1/
    is an SD card. Is there an SD card inserted?
  6. EmJay.Au

    EmJay.Au New Member

    Messages:
    10
    Likes Received:
    4
    Trophy Points:
    3
    yes, that's right...
  7. curtaintwitcher

    curtaintwitcher New Member

    Messages:
    11
    Likes Received:
    1
    Trophy Points:
    3
    Multiple swap partitions (load balancing) for a single hard disk on a regular desktop system is completely pointless. Are you seeing high swap usage as it is or is this just some idea you've read about on some random blog?
  8. EmJay.Au

    EmJay.Au New Member

    Messages:
    10
    Likes Received:
    4
    Trophy Points:
    3
    Yes, I did read it and yes, call me Mythbuster if you wish, I thought I give it a thorough test, but doesn't answer my question... High swap usage will be determine by me through swappiness.. That particular system has only 2G of RAM...
    I do have another sys with a SSD Raid0 and SAS Raid0 systems onto which I am trying to dual-install Win7 with LM17C; haven't found a way yet, but that won't stop me from trying...

Share This Page