swap partition doesn't unmount on reboot

Kernels & Hardware, configuring network, installing services

swap partition doesn't unmount on reboot

Postby PsySc0rpi0n » 2020-06-12 19:41

Hello.

Lately, when I reboot my laptop, I find myself in this situation:

https://www.youtube.com/watch?v=g_aIbapkKD0

And after more than 15 minutes or so I have this:
https://ibb.co/rZK03FT

I have the following in /proc/swaps
Code: Select all
$ cat /proc/swaps
Filename                                Type            Size    Used    Priority
/dev/sda5                               partition       5105660 0       -2


This UUID is in my /etc/fstab, so I don't know why this is happening.
User avatar
PsySc0rpi0n
 
Posts: 205
Joined: 2012-10-24 13:54
Location: Portugal

Re: swap partition doesn't unmount on reboot

Postby Head_on_a_Stick » 2020-06-12 21:09

First make the journal persistent:
Code: Select all
# mkdir -p /var/log/journal

Then reboot and see what it says about the problem:
Code: Select all
# journalctl -b -1

Remember to remove /var/log/journal when you've fixed things, it can delay the boot significantly if it gets too large.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12497
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: swap partition doesn't unmount on reboot

Postby PsySc0rpi0n » 2020-06-12 22:03

Head_on_a_Stick wrote:First make the journal persistent:
Code: Select all
# mkdir -p /var/log/journal

Then reboot and see what it says about the problem:
Code: Select all
# journalctl -b -1

Remember to remove /var/log/journal when you've fixed things, it can delay the boot significantly if it gets too large.


Ok, I've created the folder and will check its contents next time I reboot. Not sure if I'm going to reboot it today again.
User avatar
PsySc0rpi0n
 
Posts: 205
Joined: 2012-10-24 13:54
Location: Portugal

Re: swap partition doesn't unmount on reboot

Postby Head_on_a_Stick » 2020-06-12 22:25

You can try pressing <ctrl>+<alt>+<delete> more than 7 times in 2 seconds to force an immediate reboot. Doesn't always work though... *shakes fist at systemd*
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12497
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: swap partition doesn't unmount on reboot

Postby PsySc0rpi0n » 2020-06-12 22:37

Head_on_a_Stick wrote:You can try pressing <ctrl>+<alt>+<delete> more than 7 times in 2 seconds to force an immediate reboot. Doesn't always work though... *shakes fist at systemd*


I tried to press that key combination when I reboot earlier today but I think I didn't make 7 in less than 2 seconds. What I think happened is that the process of trying to unmount the swap partition just restarted.
User avatar
PsySc0rpi0n
 
Posts: 205
Joined: 2012-10-24 13:54
Location: Portugal

Re: swap partition doesn't unmount on reboot

Postby sunrat » 2020-06-12 22:59

Head_on_a_Stick wrote:First make the journal persistent:
Code: Select all
# mkdir -p /var/log/journal

Then reboot and see what it says about the problem:
Code: Select all
# journalctl -b -1

Remember to remove /var/log/journal when you've fixed things, it can delay the boot significantly if it gets too large.


One can limit its size in /etc/systemd/journal.conf. I have it set at "SystemMaxUse=50M". It's also possible to limit systemd timeout somewhere, I think I changed mine to 20s.

No idea why your swap is not unmounting though. Have you changed anything in your system recently that may have initiated this?

Maybe this will help - https://www.freedesktop.org/software/sy ... .swap.html
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 3193
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: swap partition doesn't unmount on reboot

Postby PsySc0rpi0n » 2020-06-12 23:13

sunrat wrote:
Head_on_a_Stick wrote:First make the journal persistent:
Code: Select all
# mkdir -p /var/log/journal

Then reboot and see what it says about the problem:
Code: Select all
# journalctl -b -1

Remember to remove /var/log/journal when you've fixed things, it can delay the boot significantly if it gets too large.


One can limit its size in /etc/systemd/journal.conf. I have it set at "SystemMaxUse=50M". It's also possible to limit systemd timeout somewhere, I think I changed mine to 20s.

No idea why your swap is not unmounting though. Have you changed anything in your system recently that may have initiated this?

Maybe this will help - https://www.freedesktop.org/software/sy ... .swap.html


I don't remember to have changed anything lately.

I'll take a look at that link in the meantime!
Thanks
User avatar
PsySc0rpi0n
 
Posts: 205
Joined: 2012-10-24 13:54
Location: Portugal


Return to System configuration

Who is online

Users browsing this forum: No registered users and 14 guests

fashionable