Upgraded to 17.1 and swap partition is not longer used

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












And my box keeps grinding to a halt.



I had to upgrade, as 17.04 was no longer supported, but the upgrade appears to have given me a swap file, and no longer uses the swap partition.



How do I map back to the partition?



/etc/fstab :



# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=9de838cb-5616-47d1-9126-a00a8a14dc57 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=E60E-9AF6 /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0


sudo lsblk -f



NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1 vfat SYSTEM E60E-9AF6 /boot/efi
├─sda2
├─sda3 ntfs OS 449C129F9C128B94
├─sda4 ntfs RECOVERY F2DCDAA4DCDA6301
├─sda5 ext4 9de838cb-5616-47d1-9126-a00a8a14dc57 /
└─sda6 swap 694dc408-79f0-4bfb-8f6b-1299707ef8aa









share|improve this question























  • I doubt that this just happened during the upgrade. You could try sudo swapon -a should mount your swap partition, you can check if swap is enabled with free. if that doesn't work, can you show us your fstab file, cat /etc/fstab?
    – Robert Riedl
    Feb 9 at 14:59











  • Please edit your question and paste the output there, otherwise its very hard to read.
    – Robert Riedl
    Feb 10 at 16:51






  • 1




    The output of sudo lsblk -f would also be helpful.
    – stumblebee
    Feb 10 at 17:07














up vote
1
down vote

favorite












And my box keeps grinding to a halt.



I had to upgrade, as 17.04 was no longer supported, but the upgrade appears to have given me a swap file, and no longer uses the swap partition.



How do I map back to the partition?



/etc/fstab :



# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=9de838cb-5616-47d1-9126-a00a8a14dc57 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=E60E-9AF6 /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0


sudo lsblk -f



NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1 vfat SYSTEM E60E-9AF6 /boot/efi
├─sda2
├─sda3 ntfs OS 449C129F9C128B94
├─sda4 ntfs RECOVERY F2DCDAA4DCDA6301
├─sda5 ext4 9de838cb-5616-47d1-9126-a00a8a14dc57 /
└─sda6 swap 694dc408-79f0-4bfb-8f6b-1299707ef8aa









share|improve this question























  • I doubt that this just happened during the upgrade. You could try sudo swapon -a should mount your swap partition, you can check if swap is enabled with free. if that doesn't work, can you show us your fstab file, cat /etc/fstab?
    – Robert Riedl
    Feb 9 at 14:59











  • Please edit your question and paste the output there, otherwise its very hard to read.
    – Robert Riedl
    Feb 10 at 16:51






  • 1




    The output of sudo lsblk -f would also be helpful.
    – stumblebee
    Feb 10 at 17:07












up vote
1
down vote

favorite









up vote
1
down vote

favorite











And my box keeps grinding to a halt.



I had to upgrade, as 17.04 was no longer supported, but the upgrade appears to have given me a swap file, and no longer uses the swap partition.



How do I map back to the partition?



/etc/fstab :



# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=9de838cb-5616-47d1-9126-a00a8a14dc57 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=E60E-9AF6 /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0


sudo lsblk -f



NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1 vfat SYSTEM E60E-9AF6 /boot/efi
├─sda2
├─sda3 ntfs OS 449C129F9C128B94
├─sda4 ntfs RECOVERY F2DCDAA4DCDA6301
├─sda5 ext4 9de838cb-5616-47d1-9126-a00a8a14dc57 /
└─sda6 swap 694dc408-79f0-4bfb-8f6b-1299707ef8aa









share|improve this question















And my box keeps grinding to a halt.



I had to upgrade, as 17.04 was no longer supported, but the upgrade appears to have given me a swap file, and no longer uses the swap partition.



How do I map back to the partition?



/etc/fstab :



# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=9de838cb-5616-47d1-9126-a00a8a14dc57 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=E60E-9AF6 /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0


sudo lsblk -f



NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1 vfat SYSTEM E60E-9AF6 /boot/efi
├─sda2
├─sda3 ntfs OS 449C129F9C128B94
├─sda4 ntfs RECOVERY F2DCDAA4DCDA6301
├─sda5 ext4 9de838cb-5616-47d1-9126-a00a8a14dc57 /
└─sda6 swap 694dc408-79f0-4bfb-8f6b-1299707ef8aa






swap partitions






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 10 at 17:20

























asked Feb 9 at 14:56









dezzer10

1084




1084











  • I doubt that this just happened during the upgrade. You could try sudo swapon -a should mount your swap partition, you can check if swap is enabled with free. if that doesn't work, can you show us your fstab file, cat /etc/fstab?
    – Robert Riedl
    Feb 9 at 14:59











  • Please edit your question and paste the output there, otherwise its very hard to read.
    – Robert Riedl
    Feb 10 at 16:51






  • 1




    The output of sudo lsblk -f would also be helpful.
    – stumblebee
    Feb 10 at 17:07
















  • I doubt that this just happened during the upgrade. You could try sudo swapon -a should mount your swap partition, you can check if swap is enabled with free. if that doesn't work, can you show us your fstab file, cat /etc/fstab?
    – Robert Riedl
    Feb 9 at 14:59











  • Please edit your question and paste the output there, otherwise its very hard to read.
    – Robert Riedl
    Feb 10 at 16:51






  • 1




    The output of sudo lsblk -f would also be helpful.
    – stumblebee
    Feb 10 at 17:07















I doubt that this just happened during the upgrade. You could try sudo swapon -a should mount your swap partition, you can check if swap is enabled with free. if that doesn't work, can you show us your fstab file, cat /etc/fstab?
– Robert Riedl
Feb 9 at 14:59





I doubt that this just happened during the upgrade. You could try sudo swapon -a should mount your swap partition, you can check if swap is enabled with free. if that doesn't work, can you show us your fstab file, cat /etc/fstab?
– Robert Riedl
Feb 9 at 14:59













Please edit your question and paste the output there, otherwise its very hard to read.
– Robert Riedl
Feb 10 at 16:51




Please edit your question and paste the output there, otherwise its very hard to read.
– Robert Riedl
Feb 10 at 16:51




1




1




The output of sudo lsblk -f would also be helpful.
– stumblebee
Feb 10 at 17:07




The output of sudo lsblk -f would also be helpful.
– stumblebee
Feb 10 at 17:07










1 Answer
1






active

oldest

votes

















up vote
3
down vote



accepted










Your current configuration is using a swap file instead of a device. It is up to you if you chose to still use the file for swap. To enable swap on your device that is already configured:



sudo swapoff -a


sudo nano /etc/fstab and add this line



UUID=694dc408-79f0-4bfb-8f6b-1299707ef8aa none swap sw 0 0


If you do not want to use the file for swap then place a "#" at the beginning of the line or delete the line.



#/swapfile none swap sw 0 0


Then run:



sudo swapon -a





share|improve this answer






















  • This is the correct way to get from a swapfile to the swap partition. What still bugs me, is how OP got there by simply upgrading ?
    – Robert Riedl
    Feb 11 at 8:58










  • @ RobertRiedl It is strange, the swap partition should have been retained.
    – stumblebee
    Feb 11 at 19:26











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: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
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%2f1004584%2fupgraded-to-17-1-and-swap-partition-is-not-longer-used%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
3
down vote



accepted










Your current configuration is using a swap file instead of a device. It is up to you if you chose to still use the file for swap. To enable swap on your device that is already configured:



sudo swapoff -a


sudo nano /etc/fstab and add this line



UUID=694dc408-79f0-4bfb-8f6b-1299707ef8aa none swap sw 0 0


If you do not want to use the file for swap then place a "#" at the beginning of the line or delete the line.



#/swapfile none swap sw 0 0


Then run:



sudo swapon -a





share|improve this answer






















  • This is the correct way to get from a swapfile to the swap partition. What still bugs me, is how OP got there by simply upgrading ?
    – Robert Riedl
    Feb 11 at 8:58










  • @ RobertRiedl It is strange, the swap partition should have been retained.
    – stumblebee
    Feb 11 at 19:26















up vote
3
down vote



accepted










Your current configuration is using a swap file instead of a device. It is up to you if you chose to still use the file for swap. To enable swap on your device that is already configured:



sudo swapoff -a


sudo nano /etc/fstab and add this line



UUID=694dc408-79f0-4bfb-8f6b-1299707ef8aa none swap sw 0 0


If you do not want to use the file for swap then place a "#" at the beginning of the line or delete the line.



#/swapfile none swap sw 0 0


Then run:



sudo swapon -a





share|improve this answer






















  • This is the correct way to get from a swapfile to the swap partition. What still bugs me, is how OP got there by simply upgrading ?
    – Robert Riedl
    Feb 11 at 8:58










  • @ RobertRiedl It is strange, the swap partition should have been retained.
    – stumblebee
    Feb 11 at 19:26













up vote
3
down vote



accepted







up vote
3
down vote



accepted






Your current configuration is using a swap file instead of a device. It is up to you if you chose to still use the file for swap. To enable swap on your device that is already configured:



sudo swapoff -a


sudo nano /etc/fstab and add this line



UUID=694dc408-79f0-4bfb-8f6b-1299707ef8aa none swap sw 0 0


If you do not want to use the file for swap then place a "#" at the beginning of the line or delete the line.



#/swapfile none swap sw 0 0


Then run:



sudo swapon -a





share|improve this answer














Your current configuration is using a swap file instead of a device. It is up to you if you chose to still use the file for swap. To enable swap on your device that is already configured:



sudo swapoff -a


sudo nano /etc/fstab and add this line



UUID=694dc408-79f0-4bfb-8f6b-1299707ef8aa none swap sw 0 0


If you do not want to use the file for swap then place a "#" at the beginning of the line or delete the line.



#/swapfile none swap sw 0 0


Then run:



sudo swapon -a






share|improve this answer














share|improve this answer



share|improve this answer








edited Feb 11 at 5:06

























answered Feb 10 at 19:22









stumblebee

2,3063922




2,3063922











  • This is the correct way to get from a swapfile to the swap partition. What still bugs me, is how OP got there by simply upgrading ?
    – Robert Riedl
    Feb 11 at 8:58










  • @ RobertRiedl It is strange, the swap partition should have been retained.
    – stumblebee
    Feb 11 at 19:26

















  • This is the correct way to get from a swapfile to the swap partition. What still bugs me, is how OP got there by simply upgrading ?
    – Robert Riedl
    Feb 11 at 8:58










  • @ RobertRiedl It is strange, the swap partition should have been retained.
    – stumblebee
    Feb 11 at 19:26
















This is the correct way to get from a swapfile to the swap partition. What still bugs me, is how OP got there by simply upgrading ?
– Robert Riedl
Feb 11 at 8:58




This is the correct way to get from a swapfile to the swap partition. What still bugs me, is how OP got there by simply upgrading ?
– Robert Riedl
Feb 11 at 8:58












@ RobertRiedl It is strange, the swap partition should have been retained.
– stumblebee
Feb 11 at 19:26





@ RobertRiedl It is strange, the swap partition should have been retained.
– stumblebee
Feb 11 at 19:26


















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1004584%2fupgraded-to-17-1-and-swap-partition-is-not-longer-used%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Which professions warranted travel in Medieval times?

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Trouble downloading packages list due to a “Hash sum mismatch” error