Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

swap partition doesn't unmount on reboot

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
User avatar
PsySc0rpi0n
Posts: 322
Joined: 2012-10-24 13:54
Location: Bitcoin World
Has thanked: 8 times
Been thanked: 1 time

swap partition doesn't unmount on reboot

#1 Post by PsySc0rpi0n »

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
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: swap partition doesn't unmount on reboot

#2 Post by Head_on_a_Stick »

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.
deadbang

User avatar
PsySc0rpi0n
Posts: 322
Joined: 2012-10-24 13:54
Location: Bitcoin World
Has thanked: 8 times
Been thanked: 1 time

Re: swap partition doesn't unmount on reboot

#3 Post by PsySc0rpi0n »

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
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: swap partition doesn't unmount on reboot

#4 Post by Head_on_a_Stick »

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*
deadbang

User avatar
PsySc0rpi0n
Posts: 322
Joined: 2012-10-24 13:54
Location: Bitcoin World
Has thanked: 8 times
Been thanked: 1 time

Re: swap partition doesn't unmount on reboot

#5 Post by PsySc0rpi0n »

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
sunrat
Administrator
Administrator
Posts: 6498
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 118 times
Been thanked: 476 times

Re: swap partition doesn't unmount on reboot

#6 Post by sunrat »

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
PsySc0rpi0n
Posts: 322
Joined: 2012-10-24 13:54
Location: Bitcoin World
Has thanked: 8 times
Been thanked: 1 time

Re: swap partition doesn't unmount on reboot

#7 Post by PsySc0rpi0n »

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

Post Reply