I have a swap partition but no swap space












0















I have a 27.8G swap partition; though I have no swap space, I'd like to change that.



Here is the pertinent output from top.



KiB Swap:  0 total,  0 free,  0 used


I believe I may have turned it off with the swapoff --all. That being said the swapon --all exits with swapon: /dev/sda6: swapon failed: Invalid argument.



Here is the swap entry in my /etc/fstab



# swap was on /dev/sdb6 during installation
UUID=aa0cdc90-ef01-446b-a6a2-fac368d16aca none swap defaults 0 0


I affirmed the UUID of my partition with the one in /etc/fstab.
Below is the output from blkid.



sudo blkid /dev/sda6
/dev/sda6: UUID="aa0cdc90-ef01-446b-a6a2-fac368d16aca" TYPE="swap" PARTUUID="6ddd3267-3895-40e5-9acc-56bfbc58039b"


My swap partiton is on /dev/sda6 not /dev/sdb6.
I presume /dev/sdb6 was the bootable USB I used to install the system.
This is a dual-booted, single-drive system.



Thanks in advance for your help.










share|improve this question




















  • 3





    Could you append the output of sudo blkid to our question?

    – Charles Green
    Jan 11 at 18:44











  • @CharlesGreen I appended the blkid output.

    – Inquisitor
    Jan 11 at 21:48











  • Your entry in /etc/fstab appears to be wrong. Try changing it to /dev/sda6 none swap defaults 0 0 or UUID=aa0cdc90-ef01-446b-a6a2-fac368d16aca none swap defaults 0 0

    – Sergiy Kolodyazhnyy
    Jan 11 at 21:52













  • Your PARTUUID looks odd for a partition of ID=82 type =Linux swap / Solaris. What does sudo fdisk -l /dev/sda6 |grep sda6 show?

    – ubfan1
    Jan 11 at 22:08











  • @SergiyKolodyazhnyy Thanks for the suggestion. Neither of those worked, unfortunately.

    – Inquisitor
    Jan 11 at 22:40
















0















I have a 27.8G swap partition; though I have no swap space, I'd like to change that.



Here is the pertinent output from top.



KiB Swap:  0 total,  0 free,  0 used


I believe I may have turned it off with the swapoff --all. That being said the swapon --all exits with swapon: /dev/sda6: swapon failed: Invalid argument.



Here is the swap entry in my /etc/fstab



# swap was on /dev/sdb6 during installation
UUID=aa0cdc90-ef01-446b-a6a2-fac368d16aca none swap defaults 0 0


I affirmed the UUID of my partition with the one in /etc/fstab.
Below is the output from blkid.



sudo blkid /dev/sda6
/dev/sda6: UUID="aa0cdc90-ef01-446b-a6a2-fac368d16aca" TYPE="swap" PARTUUID="6ddd3267-3895-40e5-9acc-56bfbc58039b"


My swap partiton is on /dev/sda6 not /dev/sdb6.
I presume /dev/sdb6 was the bootable USB I used to install the system.
This is a dual-booted, single-drive system.



Thanks in advance for your help.










share|improve this question




















  • 3





    Could you append the output of sudo blkid to our question?

    – Charles Green
    Jan 11 at 18:44











  • @CharlesGreen I appended the blkid output.

    – Inquisitor
    Jan 11 at 21:48











  • Your entry in /etc/fstab appears to be wrong. Try changing it to /dev/sda6 none swap defaults 0 0 or UUID=aa0cdc90-ef01-446b-a6a2-fac368d16aca none swap defaults 0 0

    – Sergiy Kolodyazhnyy
    Jan 11 at 21:52













  • Your PARTUUID looks odd for a partition of ID=82 type =Linux swap / Solaris. What does sudo fdisk -l /dev/sda6 |grep sda6 show?

    – ubfan1
    Jan 11 at 22:08











  • @SergiyKolodyazhnyy Thanks for the suggestion. Neither of those worked, unfortunately.

    – Inquisitor
    Jan 11 at 22:40














0












0








0








I have a 27.8G swap partition; though I have no swap space, I'd like to change that.



Here is the pertinent output from top.



KiB Swap:  0 total,  0 free,  0 used


I believe I may have turned it off with the swapoff --all. That being said the swapon --all exits with swapon: /dev/sda6: swapon failed: Invalid argument.



Here is the swap entry in my /etc/fstab



# swap was on /dev/sdb6 during installation
UUID=aa0cdc90-ef01-446b-a6a2-fac368d16aca none swap defaults 0 0


I affirmed the UUID of my partition with the one in /etc/fstab.
Below is the output from blkid.



sudo blkid /dev/sda6
/dev/sda6: UUID="aa0cdc90-ef01-446b-a6a2-fac368d16aca" TYPE="swap" PARTUUID="6ddd3267-3895-40e5-9acc-56bfbc58039b"


My swap partiton is on /dev/sda6 not /dev/sdb6.
I presume /dev/sdb6 was the bootable USB I used to install the system.
This is a dual-booted, single-drive system.



Thanks in advance for your help.










share|improve this question
















I have a 27.8G swap partition; though I have no swap space, I'd like to change that.



Here is the pertinent output from top.



KiB Swap:  0 total,  0 free,  0 used


I believe I may have turned it off with the swapoff --all. That being said the swapon --all exits with swapon: /dev/sda6: swapon failed: Invalid argument.



Here is the swap entry in my /etc/fstab



# swap was on /dev/sdb6 during installation
UUID=aa0cdc90-ef01-446b-a6a2-fac368d16aca none swap defaults 0 0


I affirmed the UUID of my partition with the one in /etc/fstab.
Below is the output from blkid.



sudo blkid /dev/sda6
/dev/sda6: UUID="aa0cdc90-ef01-446b-a6a2-fac368d16aca" TYPE="swap" PARTUUID="6ddd3267-3895-40e5-9acc-56bfbc58039b"


My swap partiton is on /dev/sda6 not /dev/sdb6.
I presume /dev/sdb6 was the bootable USB I used to install the system.
This is a dual-booted, single-drive system.



Thanks in advance for your help.







swap






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 11 at 22:43







Inquisitor

















asked Jan 11 at 18:36









InquisitorInquisitor

11




11








  • 3





    Could you append the output of sudo blkid to our question?

    – Charles Green
    Jan 11 at 18:44











  • @CharlesGreen I appended the blkid output.

    – Inquisitor
    Jan 11 at 21:48











  • Your entry in /etc/fstab appears to be wrong. Try changing it to /dev/sda6 none swap defaults 0 0 or UUID=aa0cdc90-ef01-446b-a6a2-fac368d16aca none swap defaults 0 0

    – Sergiy Kolodyazhnyy
    Jan 11 at 21:52













  • Your PARTUUID looks odd for a partition of ID=82 type =Linux swap / Solaris. What does sudo fdisk -l /dev/sda6 |grep sda6 show?

    – ubfan1
    Jan 11 at 22:08











  • @SergiyKolodyazhnyy Thanks for the suggestion. Neither of those worked, unfortunately.

    – Inquisitor
    Jan 11 at 22:40














  • 3





    Could you append the output of sudo blkid to our question?

    – Charles Green
    Jan 11 at 18:44











  • @CharlesGreen I appended the blkid output.

    – Inquisitor
    Jan 11 at 21:48











  • Your entry in /etc/fstab appears to be wrong. Try changing it to /dev/sda6 none swap defaults 0 0 or UUID=aa0cdc90-ef01-446b-a6a2-fac368d16aca none swap defaults 0 0

    – Sergiy Kolodyazhnyy
    Jan 11 at 21:52













  • Your PARTUUID looks odd for a partition of ID=82 type =Linux swap / Solaris. What does sudo fdisk -l /dev/sda6 |grep sda6 show?

    – ubfan1
    Jan 11 at 22:08











  • @SergiyKolodyazhnyy Thanks for the suggestion. Neither of those worked, unfortunately.

    – Inquisitor
    Jan 11 at 22:40








3




3





Could you append the output of sudo blkid to our question?

– Charles Green
Jan 11 at 18:44





Could you append the output of sudo blkid to our question?

– Charles Green
Jan 11 at 18:44













@CharlesGreen I appended the blkid output.

– Inquisitor
Jan 11 at 21:48





@CharlesGreen I appended the blkid output.

– Inquisitor
Jan 11 at 21:48













Your entry in /etc/fstab appears to be wrong. Try changing it to /dev/sda6 none swap defaults 0 0 or UUID=aa0cdc90-ef01-446b-a6a2-fac368d16aca none swap defaults 0 0

– Sergiy Kolodyazhnyy
Jan 11 at 21:52







Your entry in /etc/fstab appears to be wrong. Try changing it to /dev/sda6 none swap defaults 0 0 or UUID=aa0cdc90-ef01-446b-a6a2-fac368d16aca none swap defaults 0 0

– Sergiy Kolodyazhnyy
Jan 11 at 21:52















Your PARTUUID looks odd for a partition of ID=82 type =Linux swap / Solaris. What does sudo fdisk -l /dev/sda6 |grep sda6 show?

– ubfan1
Jan 11 at 22:08





Your PARTUUID looks odd for a partition of ID=82 type =Linux swap / Solaris. What does sudo fdisk -l /dev/sda6 |grep sda6 show?

– ubfan1
Jan 11 at 22:08













@SergiyKolodyazhnyy Thanks for the suggestion. Neither of those worked, unfortunately.

– Inquisitor
Jan 11 at 22:40





@SergiyKolodyazhnyy Thanks for the suggestion. Neither of those worked, unfortunately.

– Inquisitor
Jan 11 at 22:40










1 Answer
1






active

oldest

votes


















0














Have you ever changed it? Maybe you didn't set your swap.Personally,I recommend you use Gparted to edit your swap again, you can install Gparted in your terminal or I have write an answer here How to install Gparted(iso).After that the swap won't show up because it is not active,type:



sudo gedit /etc/fstab


add:



/swap/swapfile  swap      swap    defaults   0       0


reboot,and see if it is all right:



cat /proc/swaps





share|improve this answer
























  • /swap/swapfile has to exist first in order to be added. Also reboot is unnecessary, swapon command is sufficient

    – Sergiy Kolodyazhnyy
    Jan 12 at 3:19











  • Yeah,you are right.Just change the UUID will be all right.:)...I'll try not reboot next time,I always reboot after I edit about the disk partition...&_&

    – wjrforcyber
    Jan 12 at 4:11











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1108936%2fi-have-a-swap-partition-but-no-swap-space%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Have you ever changed it? Maybe you didn't set your swap.Personally,I recommend you use Gparted to edit your swap again, you can install Gparted in your terminal or I have write an answer here How to install Gparted(iso).After that the swap won't show up because it is not active,type:



sudo gedit /etc/fstab


add:



/swap/swapfile  swap      swap    defaults   0       0


reboot,and see if it is all right:



cat /proc/swaps





share|improve this answer
























  • /swap/swapfile has to exist first in order to be added. Also reboot is unnecessary, swapon command is sufficient

    – Sergiy Kolodyazhnyy
    Jan 12 at 3:19











  • Yeah,you are right.Just change the UUID will be all right.:)...I'll try not reboot next time,I always reboot after I edit about the disk partition...&_&

    – wjrforcyber
    Jan 12 at 4:11
















0














Have you ever changed it? Maybe you didn't set your swap.Personally,I recommend you use Gparted to edit your swap again, you can install Gparted in your terminal or I have write an answer here How to install Gparted(iso).After that the swap won't show up because it is not active,type:



sudo gedit /etc/fstab


add:



/swap/swapfile  swap      swap    defaults   0       0


reboot,and see if it is all right:



cat /proc/swaps





share|improve this answer
























  • /swap/swapfile has to exist first in order to be added. Also reboot is unnecessary, swapon command is sufficient

    – Sergiy Kolodyazhnyy
    Jan 12 at 3:19











  • Yeah,you are right.Just change the UUID will be all right.:)...I'll try not reboot next time,I always reboot after I edit about the disk partition...&_&

    – wjrforcyber
    Jan 12 at 4:11














0












0








0







Have you ever changed it? Maybe you didn't set your swap.Personally,I recommend you use Gparted to edit your swap again, you can install Gparted in your terminal or I have write an answer here How to install Gparted(iso).After that the swap won't show up because it is not active,type:



sudo gedit /etc/fstab


add:



/swap/swapfile  swap      swap    defaults   0       0


reboot,and see if it is all right:



cat /proc/swaps





share|improve this answer













Have you ever changed it? Maybe you didn't set your swap.Personally,I recommend you use Gparted to edit your swap again, you can install Gparted in your terminal or I have write an answer here How to install Gparted(iso).After that the swap won't show up because it is not active,type:



sudo gedit /etc/fstab


add:



/swap/swapfile  swap      swap    defaults   0       0


reboot,and see if it is all right:



cat /proc/swaps






share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 12 at 2:51









wjrforcyberwjrforcyber

11




11













  • /swap/swapfile has to exist first in order to be added. Also reboot is unnecessary, swapon command is sufficient

    – Sergiy Kolodyazhnyy
    Jan 12 at 3:19











  • Yeah,you are right.Just change the UUID will be all right.:)...I'll try not reboot next time,I always reboot after I edit about the disk partition...&_&

    – wjrforcyber
    Jan 12 at 4:11



















  • /swap/swapfile has to exist first in order to be added. Also reboot is unnecessary, swapon command is sufficient

    – Sergiy Kolodyazhnyy
    Jan 12 at 3:19











  • Yeah,you are right.Just change the UUID will be all right.:)...I'll try not reboot next time,I always reboot after I edit about the disk partition...&_&

    – wjrforcyber
    Jan 12 at 4:11

















/swap/swapfile has to exist first in order to be added. Also reboot is unnecessary, swapon command is sufficient

– Sergiy Kolodyazhnyy
Jan 12 at 3:19





/swap/swapfile has to exist first in order to be added. Also reboot is unnecessary, swapon command is sufficient

– Sergiy Kolodyazhnyy
Jan 12 at 3:19













Yeah,you are right.Just change the UUID will be all right.:)...I'll try not reboot next time,I always reboot after I edit about the disk partition...&_&

– wjrforcyber
Jan 12 at 4:11





Yeah,you are right.Just change the UUID will be all right.:)...I'll try not reboot next time,I always reboot after I edit about the disk partition...&_&

– wjrforcyber
Jan 12 at 4:11


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1108936%2fi-have-a-swap-partition-but-no-swap-space%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to make a Squid Proxy server?

Is this a new Fibonacci Identity?

Touch on Surface Book