pm: cannot find swap device, try swapon -a
![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
I've just rebuilt a laptop with xubuntu 18.04. I'm having issues getting hibernation to work, swapfile has been increased to slightly more than the 6GB of memory installed, and seems to be available:
swapon -s
Filename Type Size Used Priority
/swapfile file 6655996 1992 -2
When I try and hibernate I see the following messages on screen:
PM: Cannot find swap device, try swapon -a
PM: Cannot get swap writer
The syslog entries before that seem to suggest hibernation was going going OK up to then.
etc/default/grub contains:
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
Any words of wisdom gratefully received...
swap hibernate
add a comment |Â
up vote
1
down vote
favorite
I've just rebuilt a laptop with xubuntu 18.04. I'm having issues getting hibernation to work, swapfile has been increased to slightly more than the 6GB of memory installed, and seems to be available:
swapon -s
Filename Type Size Used Priority
/swapfile file 6655996 1992 -2
When I try and hibernate I see the following messages on screen:
PM: Cannot find swap device, try swapon -a
PM: Cannot get swap writer
The syslog entries before that seem to suggest hibernation was going going OK up to then.
etc/default/grub contains:
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
Any words of wisdom gratefully received...
swap hibernate
After some more digging I've updated GRUB_CMDLINE_LINUX="" to GRUB_CMDLINE_LINUX="resume=/dev/sda1 resume_offset=2047" and the current complaint is "PM: Swap header not found!". I thought that was covered by the resume_offset=2047? The offset is correct. @mike Sorry, I haven't got the hang of formatting stuff yet.
â Iain
May 20 at 18:06
I'm wondering if I've been wasting my time with trying to get hibernation working; Shutdown with the "Save session for future logins" seems to have more-or-less the same functionality. Apps that were open are remembered; pages open in Firefox need to refreshed, but the URLs have been remembered...
â Iain
May 20 at 19:15
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I've just rebuilt a laptop with xubuntu 18.04. I'm having issues getting hibernation to work, swapfile has been increased to slightly more than the 6GB of memory installed, and seems to be available:
swapon -s
Filename Type Size Used Priority
/swapfile file 6655996 1992 -2
When I try and hibernate I see the following messages on screen:
PM: Cannot find swap device, try swapon -a
PM: Cannot get swap writer
The syslog entries before that seem to suggest hibernation was going going OK up to then.
etc/default/grub contains:
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
Any words of wisdom gratefully received...
swap hibernate
I've just rebuilt a laptop with xubuntu 18.04. I'm having issues getting hibernation to work, swapfile has been increased to slightly more than the 6GB of memory installed, and seems to be available:
swapon -s
Filename Type Size Used Priority
/swapfile file 6655996 1992 -2
When I try and hibernate I see the following messages on screen:
PM: Cannot find swap device, try swapon -a
PM: Cannot get swap writer
The syslog entries before that seem to suggest hibernation was going going OK up to then.
etc/default/grub contains:
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
Any words of wisdom gratefully received...
swap hibernate
edited May 20 at 12:18
mikewhatever
22.5k76584
22.5k76584
asked May 20 at 11:50
Iain
62
62
After some more digging I've updated GRUB_CMDLINE_LINUX="" to GRUB_CMDLINE_LINUX="resume=/dev/sda1 resume_offset=2047" and the current complaint is "PM: Swap header not found!". I thought that was covered by the resume_offset=2047? The offset is correct. @mike Sorry, I haven't got the hang of formatting stuff yet.
â Iain
May 20 at 18:06
I'm wondering if I've been wasting my time with trying to get hibernation working; Shutdown with the "Save session for future logins" seems to have more-or-less the same functionality. Apps that were open are remembered; pages open in Firefox need to refreshed, but the URLs have been remembered...
â Iain
May 20 at 19:15
add a comment |Â
After some more digging I've updated GRUB_CMDLINE_LINUX="" to GRUB_CMDLINE_LINUX="resume=/dev/sda1 resume_offset=2047" and the current complaint is "PM: Swap header not found!". I thought that was covered by the resume_offset=2047? The offset is correct. @mike Sorry, I haven't got the hang of formatting stuff yet.
â Iain
May 20 at 18:06
I'm wondering if I've been wasting my time with trying to get hibernation working; Shutdown with the "Save session for future logins" seems to have more-or-less the same functionality. Apps that were open are remembered; pages open in Firefox need to refreshed, but the URLs have been remembered...
â Iain
May 20 at 19:15
After some more digging I've updated GRUB_CMDLINE_LINUX="" to GRUB_CMDLINE_LINUX="resume=/dev/sda1 resume_offset=2047" and the current complaint is "PM: Swap header not found!". I thought that was covered by the resume_offset=2047? The offset is correct. @mike Sorry, I haven't got the hang of formatting stuff yet.
â Iain
May 20 at 18:06
After some more digging I've updated GRUB_CMDLINE_LINUX="" to GRUB_CMDLINE_LINUX="resume=/dev/sda1 resume_offset=2047" and the current complaint is "PM: Swap header not found!". I thought that was covered by the resume_offset=2047? The offset is correct. @mike Sorry, I haven't got the hang of formatting stuff yet.
â Iain
May 20 at 18:06
I'm wondering if I've been wasting my time with trying to get hibernation working; Shutdown with the "Save session for future logins" seems to have more-or-less the same functionality. Apps that were open are remembered; pages open in Firefox need to refreshed, but the URLs have been remembered...
â Iain
May 20 at 19:15
I'm wondering if I've been wasting my time with trying to get hibernation working; Shutdown with the "Save session for future logins" seems to have more-or-less the same functionality. Apps that were open are remembered; pages open in Firefox need to refreshed, but the URLs have been remembered...
â Iain
May 20 at 19:15
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f1038364%2fpm-cannot-find-swap-device-try-swapon-a%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
After some more digging I've updated GRUB_CMDLINE_LINUX="" to GRUB_CMDLINE_LINUX="resume=/dev/sda1 resume_offset=2047" and the current complaint is "PM: Swap header not found!". I thought that was covered by the resume_offset=2047? The offset is correct. @mike Sorry, I haven't got the hang of formatting stuff yet.
â Iain
May 20 at 18:06
I'm wondering if I've been wasting my time with trying to get hibernation working; Shutdown with the "Save session for future logins" seems to have more-or-less the same functionality. Apps that were open are remembered; pages open in Firefox need to refreshed, but the URLs have been remembered...
â Iain
May 20 at 19:15