Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Ubuntu doesn't recognize my swap partition

  1. #1
    Join Date
    Aug 2011
    Beans
    248
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    Unhappy Ubuntu doesn't recognize my swap partition

    I did some work with my swap, and I found out that I had two swap partitions that were each 4gb, and only one was active.
    The smart person would have deleted the inactive one, and resized the correct one, but folks, I am not a smart person :P
    I deleted both, and followed the ubuntuhelp site for setting up new swap partition, but it didn't work. How do I get Ubuntu to recognise my new 8gb swap partition?

  2. #2
    Join Date
    Nov 2008
    Location
    Sheffield, UK
    Beans
    1,514
    Distro
    Ubuntu

    Re: Ubuntu doesn't recognize my swap partition

    have you edited /etc/fstab to contain new swap?

  3. #3
    Join Date
    Aug 2011
    Beans
    248
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    Re: Ubuntu doesn't recognize my swap partition

    I tried, but I'm not sure I formatted it correctly, because that didn't work.

  4. #4
    Join Date
    Apr 2005
    Location
    Finland/UK
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Ubuntu doesn't recognize my swap partition

    Quote Originally Posted by bobman321123 View Post
    I tried, but I'm not sure I formatted it correctly, because that didn't work.
    Then could you post your current fstab contents and output from sudo blkid and sudo fdisk -l here?

  5. #5
    Join Date
    Nov 2008
    Location
    Sheffield, UK
    Beans
    1,514
    Distro
    Ubuntu

    Re: Ubuntu doesn't recognize my swap partition

    Quote Originally Posted by bobman321123 View Post
    I tried, but I'm not sure I formatted it correctly, because that didn't work.
    can you post output of

    cat /etc/fstab


    &

    sudo blkid

  6. #6
    Join Date
    Aug 2011
    Beans
    248
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    Re: Ubuntu doesn't recognize my swap partition

    cat /ect/fstab:
    Code:
    # /etc/fstab: static file system information.
    #
    # Use 'blkid -o value -s UUID' to print the universally unique identifier
    # for a device; this may be used with UUID= as a more robust way to name
    # devices that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    nodev,noexec,nosuid 0       0
    /dev/sda6       /               ext4    errors=remount-ro,user_xattr 0       1
    # swap was on /dev/sda7 during installation
    UUID=e3c460e6-bdf1-44b6-b166-d60818813186 none            swap    sw              0       0
    sudo blkid:
    Code:
    /dev/sda1: UUID="F4B435D2B43597D6" TYPE="ntfs" 
    /dev/sda5: UUID="7779a225-b8ba-4ed7-8dd7-ad1816c8c106" TYPE="ext4" 
    /dev/sda6: LABEL="swap" UUID="dbd88d03-e9fc-4510-b55e-596130b24613" TYPE="swap"

  7. #7
    Join Date
    Oct 2009
    Location
    Upminster, Essex, UK
    Beans
    544

    Thumbs down Re: Ubuntu doesn't recognize my swap partition

    Quote Originally Posted by bobman321123 View Post
    /dev/sda6 / ext4 errors=remount-ro,user_xattr 0 1
    # swap was on /dev/sda7 during installation
    UUID=e3c460e6-bdf1-44b6-b166-d60818813186 none swap sw 0 0
    [/CODE]

    sudo blkid:
    Code:
    /dev/sda1: UUID="F4B435D2B43597D6" TYPE="ntfs" 
    /dev/sda5: UUID="7779a225-b8ba-4ed7-8dd7-ad1816c8c106" TYPE="ext4" 
    /dev/sda6: LABEL="swap" UUID="dbd88d03-e9fc-4510-b55e-596130b24613" TYPE="swap"
    Replace the top bold bit in your quoted post with the bottom bold bit


    Your fstab entry for swap should look like:

    Code:
    UUID=dbd88d03-e9fc-4510-b55e-596130b24613 none            swap    sw              0       0
    Code:
    cd /fridge/beer | drink && fallover

  8. #8
    Join Date
    Aug 2011
    Beans
    248
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    Re: Ubuntu doesn't recognize my swap partition

    Thanks man, that did it

  9. #9
    Join Date
    Nov 2010
    Beans
    241

    Re: Ubuntu doesn't recognize my swap partition

    Next time don't go thru all that trouble, Linux can use as many swap partitions as you want same time. You even can add swap files to overall swap space.

  10. #10
    Join Date
    Aug 2011
    Beans
    248
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    Re: Ubuntu doesn't recognize my swap partition

    Oh? How would you add another swap partition to the system?

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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