Swap: From partition to file, now get “no matching swap device is available”











up vote
5
down vote

favorite
2












Running Ubuntu 18.04, I changed from a swap partition to a swap file.



swapon -s (summary) and free show the swapfile with the new size. /etc/fstab was changed, permission on the swapfile changed and the swap partition was deleted. When there are updates (apt-get update and upgrade), I get this error:




Setting up amd64-microcode (3.20180524.1~ubuntu0.18.04.2) ...
update-initramfs: deferring update (trigger activated)
amd64-microcode: microcode will be updated at next boot
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for initramfs-tools (0.130ubuntu3.1) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-29-generic
W: initramfs-tools configuration sets RESUME=UUID=c5a2c6f4-b67c-4d95-bc23-8333ed6c0f11
W: but no matching swap device is available.



The UUID listed there is for the old swap partition. I didn't think a swap file has a UUID, but I am not sure about that. Everything else seems to work fine. How should I proceed to troubleshoot and fix this?










share|improve this question
























  • What does this show? sudo swapon --show? And: ls -lh /swapfile
    – oldfred
    Jul 30 at 21:49










  • outputs are: NAME TYPE SIZE USED PRIO /swapfile file 3G 0B -2 and -rw------- 1 root root 3.0G Jul 10 13:00 /swapfile
    – rkeating
    Jul 30 at 21:54










  • Those look essentially the same as mine. What does fstab show? Post above to preserve formatting. cat /etc/fstab
    – oldfred
    Jul 30 at 23:28










  • Tried to post it above, but text was huge. Just going to put the last lines (about swap) here: # swap was on /dev/sdb5 during installation #UUID=c5a2c6f4-b67c-4d95-bc23-8333ed6c0f11 none swap #sw 0 0 # swap now in /swapfile /swapfile none swap sw 0 0
    – rkeating
    Jul 31 at 1:38















up vote
5
down vote

favorite
2












Running Ubuntu 18.04, I changed from a swap partition to a swap file.



swapon -s (summary) and free show the swapfile with the new size. /etc/fstab was changed, permission on the swapfile changed and the swap partition was deleted. When there are updates (apt-get update and upgrade), I get this error:




Setting up amd64-microcode (3.20180524.1~ubuntu0.18.04.2) ...
update-initramfs: deferring update (trigger activated)
amd64-microcode: microcode will be updated at next boot
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for initramfs-tools (0.130ubuntu3.1) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-29-generic
W: initramfs-tools configuration sets RESUME=UUID=c5a2c6f4-b67c-4d95-bc23-8333ed6c0f11
W: but no matching swap device is available.



The UUID listed there is for the old swap partition. I didn't think a swap file has a UUID, but I am not sure about that. Everything else seems to work fine. How should I proceed to troubleshoot and fix this?










share|improve this question
























  • What does this show? sudo swapon --show? And: ls -lh /swapfile
    – oldfred
    Jul 30 at 21:49










  • outputs are: NAME TYPE SIZE USED PRIO /swapfile file 3G 0B -2 and -rw------- 1 root root 3.0G Jul 10 13:00 /swapfile
    – rkeating
    Jul 30 at 21:54










  • Those look essentially the same as mine. What does fstab show? Post above to preserve formatting. cat /etc/fstab
    – oldfred
    Jul 30 at 23:28










  • Tried to post it above, but text was huge. Just going to put the last lines (about swap) here: # swap was on /dev/sdb5 during installation #UUID=c5a2c6f4-b67c-4d95-bc23-8333ed6c0f11 none swap #sw 0 0 # swap now in /swapfile /swapfile none swap sw 0 0
    – rkeating
    Jul 31 at 1:38













up vote
5
down vote

favorite
2









up vote
5
down vote

favorite
2






2





Running Ubuntu 18.04, I changed from a swap partition to a swap file.



swapon -s (summary) and free show the swapfile with the new size. /etc/fstab was changed, permission on the swapfile changed and the swap partition was deleted. When there are updates (apt-get update and upgrade), I get this error:




Setting up amd64-microcode (3.20180524.1~ubuntu0.18.04.2) ...
update-initramfs: deferring update (trigger activated)
amd64-microcode: microcode will be updated at next boot
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for initramfs-tools (0.130ubuntu3.1) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-29-generic
W: initramfs-tools configuration sets RESUME=UUID=c5a2c6f4-b67c-4d95-bc23-8333ed6c0f11
W: but no matching swap device is available.



The UUID listed there is for the old swap partition. I didn't think a swap file has a UUID, but I am not sure about that. Everything else seems to work fine. How should I proceed to troubleshoot and fix this?










share|improve this question















Running Ubuntu 18.04, I changed from a swap partition to a swap file.



swapon -s (summary) and free show the swapfile with the new size. /etc/fstab was changed, permission on the swapfile changed and the swap partition was deleted. When there are updates (apt-get update and upgrade), I get this error:




Setting up amd64-microcode (3.20180524.1~ubuntu0.18.04.2) ...
update-initramfs: deferring update (trigger activated)
amd64-microcode: microcode will be updated at next boot
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for initramfs-tools (0.130ubuntu3.1) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-29-generic
W: initramfs-tools configuration sets RESUME=UUID=c5a2c6f4-b67c-4d95-bc23-8333ed6c0f11
W: but no matching swap device is available.



The UUID listed there is for the old swap partition. I didn't think a swap file has a UUID, but I am not sure about that. Everything else seems to work fine. How should I proceed to troubleshoot and fix this?







swap resume uuid






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 23 at 10:51









Pablo Bianchi

2,1531527




2,1531527










asked Jul 30 at 21:23









rkeating

6011112




6011112












  • What does this show? sudo swapon --show? And: ls -lh /swapfile
    – oldfred
    Jul 30 at 21:49










  • outputs are: NAME TYPE SIZE USED PRIO /swapfile file 3G 0B -2 and -rw------- 1 root root 3.0G Jul 10 13:00 /swapfile
    – rkeating
    Jul 30 at 21:54










  • Those look essentially the same as mine. What does fstab show? Post above to preserve formatting. cat /etc/fstab
    – oldfred
    Jul 30 at 23:28










  • Tried to post it above, but text was huge. Just going to put the last lines (about swap) here: # swap was on /dev/sdb5 during installation #UUID=c5a2c6f4-b67c-4d95-bc23-8333ed6c0f11 none swap #sw 0 0 # swap now in /swapfile /swapfile none swap sw 0 0
    – rkeating
    Jul 31 at 1:38


















  • What does this show? sudo swapon --show? And: ls -lh /swapfile
    – oldfred
    Jul 30 at 21:49










  • outputs are: NAME TYPE SIZE USED PRIO /swapfile file 3G 0B -2 and -rw------- 1 root root 3.0G Jul 10 13:00 /swapfile
    – rkeating
    Jul 30 at 21:54










  • Those look essentially the same as mine. What does fstab show? Post above to preserve formatting. cat /etc/fstab
    – oldfred
    Jul 30 at 23:28










  • Tried to post it above, but text was huge. Just going to put the last lines (about swap) here: # swap was on /dev/sdb5 during installation #UUID=c5a2c6f4-b67c-4d95-bc23-8333ed6c0f11 none swap #sw 0 0 # swap now in /swapfile /swapfile none swap sw 0 0
    – rkeating
    Jul 31 at 1:38
















What does this show? sudo swapon --show? And: ls -lh /swapfile
– oldfred
Jul 30 at 21:49




What does this show? sudo swapon --show? And: ls -lh /swapfile
– oldfred
Jul 30 at 21:49












outputs are: NAME TYPE SIZE USED PRIO /swapfile file 3G 0B -2 and -rw------- 1 root root 3.0G Jul 10 13:00 /swapfile
– rkeating
Jul 30 at 21:54




outputs are: NAME TYPE SIZE USED PRIO /swapfile file 3G 0B -2 and -rw------- 1 root root 3.0G Jul 10 13:00 /swapfile
– rkeating
Jul 30 at 21:54












Those look essentially the same as mine. What does fstab show? Post above to preserve formatting. cat /etc/fstab
– oldfred
Jul 30 at 23:28




Those look essentially the same as mine. What does fstab show? Post above to preserve formatting. cat /etc/fstab
– oldfred
Jul 30 at 23:28












Tried to post it above, but text was huge. Just going to put the last lines (about swap) here: # swap was on /dev/sdb5 during installation #UUID=c5a2c6f4-b67c-4d95-bc23-8333ed6c0f11 none swap #sw 0 0 # swap now in /swapfile /swapfile none swap sw 0 0
– rkeating
Jul 31 at 1:38




Tried to post it above, but text was huge. Just going to put the last lines (about swap) here: # swap was on /dev/sdb5 during installation #UUID=c5a2c6f4-b67c-4d95-bc23-8333ed6c0f11 none swap #sw 0 0 # swap now in /swapfile /swapfile none swap sw 0 0
– rkeating
Jul 31 at 1:38










1 Answer
1






active

oldest

votes

















up vote
6
down vote



accepted










That line is in /etc/initramfs-tools/conf.d/resume so try deleting it.






share|improve this answer

















  • 2




    +1 Yes. Delete it or replace with RESUME=NONE or make it a comment (put a # in the beginning of the line).
    – sudodus
    Jul 30 at 21:36










  • Deleted it, reboot, reran apt update and upgrade. initramfs updated with no errors. Thanks!
    – rkeating
    Jul 30 at 22:04











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',
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%2f1060917%2fswap-from-partition-to-file-now-get-no-matching-swap-device-is-available%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








up vote
6
down vote



accepted










That line is in /etc/initramfs-tools/conf.d/resume so try deleting it.






share|improve this answer

















  • 2




    +1 Yes. Delete it or replace with RESUME=NONE or make it a comment (put a # in the beginning of the line).
    – sudodus
    Jul 30 at 21:36










  • Deleted it, reboot, reran apt update and upgrade. initramfs updated with no errors. Thanks!
    – rkeating
    Jul 30 at 22:04















up vote
6
down vote



accepted










That line is in /etc/initramfs-tools/conf.d/resume so try deleting it.






share|improve this answer

















  • 2




    +1 Yes. Delete it or replace with RESUME=NONE or make it a comment (put a # in the beginning of the line).
    – sudodus
    Jul 30 at 21:36










  • Deleted it, reboot, reran apt update and upgrade. initramfs updated with no errors. Thanks!
    – rkeating
    Jul 30 at 22:04













up vote
6
down vote



accepted







up vote
6
down vote



accepted






That line is in /etc/initramfs-tools/conf.d/resume so try deleting it.






share|improve this answer












That line is in /etc/initramfs-tools/conf.d/resume so try deleting it.







share|improve this answer












share|improve this answer



share|improve this answer










answered Jul 30 at 21:33









ubfan1

9,12141527




9,12141527








  • 2




    +1 Yes. Delete it or replace with RESUME=NONE or make it a comment (put a # in the beginning of the line).
    – sudodus
    Jul 30 at 21:36










  • Deleted it, reboot, reran apt update and upgrade. initramfs updated with no errors. Thanks!
    – rkeating
    Jul 30 at 22:04














  • 2




    +1 Yes. Delete it or replace with RESUME=NONE or make it a comment (put a # in the beginning of the line).
    – sudodus
    Jul 30 at 21:36










  • Deleted it, reboot, reran apt update and upgrade. initramfs updated with no errors. Thanks!
    – rkeating
    Jul 30 at 22:04








2




2




+1 Yes. Delete it or replace with RESUME=NONE or make it a comment (put a # in the beginning of the line).
– sudodus
Jul 30 at 21:36




+1 Yes. Delete it or replace with RESUME=NONE or make it a comment (put a # in the beginning of the line).
– sudodus
Jul 30 at 21:36












Deleted it, reboot, reran apt update and upgrade. initramfs updated with no errors. Thanks!
– rkeating
Jul 30 at 22:04




Deleted it, reboot, reran apt update and upgrade. initramfs updated with no errors. Thanks!
– rkeating
Jul 30 at 22:04


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1060917%2fswap-from-partition-to-file-now-get-no-matching-swap-device-is-available%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

flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

Mangá

Eduardo VII do Reino Unido