Upgraded to 17.1 and swap partition is not longer used
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
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
swap partitions
add a comment |Â
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
swap partitions
I doubt that this just happened during the upgrade. You could trysudo swapon -a
should mount your swap partition, you can check if swap is enabled withfree
. 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
add a comment |Â
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
swap partitions
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
swap partitions
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 trysudo swapon -a
should mount your swap partition, you can check if swap is enabled withfree
. 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
add a comment |Â
I doubt that this just happened during the upgrade. You could trysudo swapon -a
should mount your swap partition, you can check if swap is enabled withfree
. 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
add a comment |Â
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
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
add a comment |Â
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
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
add a comment |Â
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
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
add a comment |Â
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
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
edited Feb 11 at 5:06
answered Feb 10 at 19:22
![](https://i.stack.imgur.com/y7JEo.jpg?s=32&g=1)
![](https://i.stack.imgur.com/y7JEo.jpg?s=32&g=1)
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
add a comment |Â
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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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
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 withfree
. 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