How to Auto-Mount a Swap partition

Discussion in 'Linux Ubuntu' started by asvaldr, Jan 19, 2014.

  1. asvaldr

    asvaldr New Member

    Joined:
    Oct 18, 2013
    Messages:
    24
    Likes Received:
    0
    Hi All,

    I've created a swap partition. How do I auto mount it?

    UDOO doesn't have any disk editor GUI and apparently no "fstab" config since opening /etc/fstab shows a file with "UNCONFIGURED FSTAB FOR BASE SYSTEM"
     
  2. EBrown

    EBrown New Member

    Joined:
    Dec 9, 2013
    Messages:
    48
    Likes Received:
    0
    You could try installing GParted.

    Otherwise,

    First, check that the partition is SWAP:

    Code:
    sudo fdisk -l
    If you've done that, then you can check if it's mounted with:

    Code:
    cat /proc/meminfo
    You should have something like:
    Code:
    SwapTotal: 1046524
    SwapFree: 1046524
    If it's not mounted, simply add the line in FSTAB.

    Code:
    /dev/hd##  none  swap  sw
    Replace hd## with the value for the SWAP partition.

    Thanks,
    EBrown
     
  3. asvaldr

    asvaldr New Member

    Joined:
    Oct 18, 2013
    Messages:
    24
    Likes Received:
    0
    @EBrown
    Awesome, thank you very much. I was confused by the fstab file that stated it was unconfigured. Your instructions were spot on and gave me the confidence to go through with it.
     
  4. DangerousThing

    DangerousThing New Member

    Joined:
    Jan 23, 2014
    Messages:
    21
    Likes Received:
    0
    Thank you. I'll have to try this. I have my Udoo running from a SATA SSD so it should be a bit faster than running from the flash card.
     

Share This Page