unable to disable swap after reboot
Question
why is my swap partition being used after reboot?
Context
My system has two swap areas in Linux Ubuntu:
sudo swapon --show
NAME TYPE SIZE USED PRIO
/dev/nvme0n1p7 partition 977M 0B -2
/media/EXT4/swapfile file 4G 0B -3
I disabled swap partition:
sudo swapon --show
NAME TYPE SIZE USED PRIO
/media/EXT4/swapfile file 4G 0B -3
and edited /etc/fstab:
UUID=8a098c42-9f6a-4f04-8dac-87298f1f460d / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/nvme0n1p2 during installation
UUID=CC3B-B509 /boot/efi vfat umask=0077 0 1
# swap was on /dev/nvme0n1p7 during installation
# UUID=0379c3e0-faa9-4bd8-a7ce-4bc1d2d1d9a2 none swap sw 0 0
# 4TB HDD, linux partition
UUID="847df9cc-ba11-469f-a36e-ac4228c005f8" /media/EXT4 ext4 user,errors=remount-ro,auto,exec,rw
# 4TB HDD, windows partition
UUID="2A2506563E8741C6" /media/NTFS ntfs user,errors=remount-ro,auto,exec,rw,uid=1000,gid=1000
/media/EXT4/swapfile none swap sw 0 0
Problem
after reboot the partition is used as swap area:
sudo swapon --show
NAME TYPE SIZE USED PRIO
/dev/nvme0n1p7 partition 977M 0B -2
/media/EXT4/swapfile file 4G 0B -3
Further information
Here is the information of linux-swap:

it shows the UUID in fstab is commented out for swap partition.
These are the flags for linux-swap: (none are used)

I do not have Autofs installed on my system.
16.04 boot mount swap
add a comment |
Question
why is my swap partition being used after reboot?
Context
My system has two swap areas in Linux Ubuntu:
sudo swapon --show
NAME TYPE SIZE USED PRIO
/dev/nvme0n1p7 partition 977M 0B -2
/media/EXT4/swapfile file 4G 0B -3
I disabled swap partition:
sudo swapon --show
NAME TYPE SIZE USED PRIO
/media/EXT4/swapfile file 4G 0B -3
and edited /etc/fstab:
UUID=8a098c42-9f6a-4f04-8dac-87298f1f460d / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/nvme0n1p2 during installation
UUID=CC3B-B509 /boot/efi vfat umask=0077 0 1
# swap was on /dev/nvme0n1p7 during installation
# UUID=0379c3e0-faa9-4bd8-a7ce-4bc1d2d1d9a2 none swap sw 0 0
# 4TB HDD, linux partition
UUID="847df9cc-ba11-469f-a36e-ac4228c005f8" /media/EXT4 ext4 user,errors=remount-ro,auto,exec,rw
# 4TB HDD, windows partition
UUID="2A2506563E8741C6" /media/NTFS ntfs user,errors=remount-ro,auto,exec,rw,uid=1000,gid=1000
/media/EXT4/swapfile none swap sw 0 0
Problem
after reboot the partition is used as swap area:
sudo swapon --show
NAME TYPE SIZE USED PRIO
/dev/nvme0n1p7 partition 977M 0B -2
/media/EXT4/swapfile file 4G 0B -3
Further information
Here is the information of linux-swap:

it shows the UUID in fstab is commented out for swap partition.
These are the flags for linux-swap: (none are used)

I do not have Autofs installed on my system.
16.04 boot mount swap
Don't you have a second fstab-line regarding the swap-file? Please show us the complete output ofcat /etc/fstab.
– mook765
Mar 10 at 13:54
yes, of course I have a couple of mounting points. I added the complete fstab, it shouldn't be relevant, though. There's also a/etc/fstab.bakwhich has the linux-swap.
– linuxUser123
Mar 10 at 14:07
add a comment |
Question
why is my swap partition being used after reboot?
Context
My system has two swap areas in Linux Ubuntu:
sudo swapon --show
NAME TYPE SIZE USED PRIO
/dev/nvme0n1p7 partition 977M 0B -2
/media/EXT4/swapfile file 4G 0B -3
I disabled swap partition:
sudo swapon --show
NAME TYPE SIZE USED PRIO
/media/EXT4/swapfile file 4G 0B -3
and edited /etc/fstab:
UUID=8a098c42-9f6a-4f04-8dac-87298f1f460d / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/nvme0n1p2 during installation
UUID=CC3B-B509 /boot/efi vfat umask=0077 0 1
# swap was on /dev/nvme0n1p7 during installation
# UUID=0379c3e0-faa9-4bd8-a7ce-4bc1d2d1d9a2 none swap sw 0 0
# 4TB HDD, linux partition
UUID="847df9cc-ba11-469f-a36e-ac4228c005f8" /media/EXT4 ext4 user,errors=remount-ro,auto,exec,rw
# 4TB HDD, windows partition
UUID="2A2506563E8741C6" /media/NTFS ntfs user,errors=remount-ro,auto,exec,rw,uid=1000,gid=1000
/media/EXT4/swapfile none swap sw 0 0
Problem
after reboot the partition is used as swap area:
sudo swapon --show
NAME TYPE SIZE USED PRIO
/dev/nvme0n1p7 partition 977M 0B -2
/media/EXT4/swapfile file 4G 0B -3
Further information
Here is the information of linux-swap:

it shows the UUID in fstab is commented out for swap partition.
These are the flags for linux-swap: (none are used)

I do not have Autofs installed on my system.
16.04 boot mount swap
Question
why is my swap partition being used after reboot?
Context
My system has two swap areas in Linux Ubuntu:
sudo swapon --show
NAME TYPE SIZE USED PRIO
/dev/nvme0n1p7 partition 977M 0B -2
/media/EXT4/swapfile file 4G 0B -3
I disabled swap partition:
sudo swapon --show
NAME TYPE SIZE USED PRIO
/media/EXT4/swapfile file 4G 0B -3
and edited /etc/fstab:
UUID=8a098c42-9f6a-4f04-8dac-87298f1f460d / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/nvme0n1p2 during installation
UUID=CC3B-B509 /boot/efi vfat umask=0077 0 1
# swap was on /dev/nvme0n1p7 during installation
# UUID=0379c3e0-faa9-4bd8-a7ce-4bc1d2d1d9a2 none swap sw 0 0
# 4TB HDD, linux partition
UUID="847df9cc-ba11-469f-a36e-ac4228c005f8" /media/EXT4 ext4 user,errors=remount-ro,auto,exec,rw
# 4TB HDD, windows partition
UUID="2A2506563E8741C6" /media/NTFS ntfs user,errors=remount-ro,auto,exec,rw,uid=1000,gid=1000
/media/EXT4/swapfile none swap sw 0 0
Problem
after reboot the partition is used as swap area:
sudo swapon --show
NAME TYPE SIZE USED PRIO
/dev/nvme0n1p7 partition 977M 0B -2
/media/EXT4/swapfile file 4G 0B -3
Further information
Here is the information of linux-swap:

it shows the UUID in fstab is commented out for swap partition.
These are the flags for linux-swap: (none are used)

I do not have Autofs installed on my system.
16.04 boot mount swap
16.04 boot mount swap
edited Mar 11 at 1:03
linuxUser123
asked Mar 10 at 13:35
linuxUser123linuxUser123
275
275
Don't you have a second fstab-line regarding the swap-file? Please show us the complete output ofcat /etc/fstab.
– mook765
Mar 10 at 13:54
yes, of course I have a couple of mounting points. I added the complete fstab, it shouldn't be relevant, though. There's also a/etc/fstab.bakwhich has the linux-swap.
– linuxUser123
Mar 10 at 14:07
add a comment |
Don't you have a second fstab-line regarding the swap-file? Please show us the complete output ofcat /etc/fstab.
– mook765
Mar 10 at 13:54
yes, of course I have a couple of mounting points. I added the complete fstab, it shouldn't be relevant, though. There's also a/etc/fstab.bakwhich has the linux-swap.
– linuxUser123
Mar 10 at 14:07
Don't you have a second fstab-line regarding the swap-file? Please show us the complete output of
cat /etc/fstab.– mook765
Mar 10 at 13:54
Don't you have a second fstab-line regarding the swap-file? Please show us the complete output of
cat /etc/fstab.– mook765
Mar 10 at 13:54
yes, of course I have a couple of mounting points. I added the complete fstab, it shouldn't be relevant, though. There's also a
/etc/fstab.bak which has the linux-swap.– linuxUser123
Mar 10 at 14:07
yes, of course I have a couple of mounting points. I added the complete fstab, it shouldn't be relevant, though. There's also a
/etc/fstab.bak which has the linux-swap.– linuxUser123
Mar 10 at 14:07
add a comment |
0
active
oldest
votes
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1124531%2funable-to-disable-swap-after-reboot%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1124531%2funable-to-disable-swap-after-reboot%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
Don't you have a second fstab-line regarding the swap-file? Please show us the complete output of
cat /etc/fstab.– mook765
Mar 10 at 13:54
yes, of course I have a couple of mounting points. I added the complete fstab, it shouldn't be relevant, though. There's also a
/etc/fstab.bakwhich has the linux-swap.– linuxUser123
Mar 10 at 14:07