You are not logged in.

#1 2013-12-25 15:37:27

Lexworth
Member
Registered: 2012-01-19
Posts: 36

[SOLVED] Swap partition failing on boot

I get an error when booting that says swap is failing on boot. It tell me to check output from "systemctl status dev-sda3.swap" this gives the output:

dev-sda3.swap - /dev/sda3
   Loaded: loaded (/run/systemd/generator.late/dev-sda3.swap)
   Active: failed (Result: exit-code) since Wed 2013-12-25 09:18:09 EST; 1h 7min ago
     What: /dev/sda3

I think perhaps this is due to grub2 using UUID to specify partitions but I could be completely wrong?

Last edited by Lexworth (2013-12-26 19:43:57)

Offline

#2 2013-12-25 15:59:40

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] Swap partition failing on boot

I'm all about throwing grub under the bus, but it has absolutely no relevance here.

Assuming a few things: If you're using GPT, then chances are that systemd is already activating the swap and it doesn't need to be in /etc/fstab. The "error" you see is harmless.

Offline

#3 2013-12-25 19:30:55

Oedner
Member
Registered: 2013-11-25
Posts: 7

Re: [SOLVED] Swap partition failing on boot

my desktop always failed to mount swap properly, so i changed the UUID to /dev/sdaX (X being my swap partition) after that it worked.

Offline

#4 2013-12-26 13:58:47

Lexworth
Member
Registered: 2012-01-19
Posts: 36

Re: [SOLVED] Swap partition failing on boot

After booting "swapon -s" give me:

Filename                                Type            Size    Used    Priority
/dev/sda3                               partition       8388604 0       -1

So I assume that the swap partition is actually mounted and activated. However, resuming from hibernation always results in output which says "clearing orphan nodes." I know it has something to do with the swap because I was able to get resume to work by activating swap after I manually mounted swap after booting. I can't remember the exact process I used, whether it be through systemctl or swapon. I will see if I can get figure it out again.

Offline

#5 2013-12-26 17:07:35

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] Swap partition failing on boot

Lexworth wrote:

So I assume that the swap partition is actually mounted and activated.

You appear to have nicely dodged the posit from my last post.

Lexworth wrote:

However, resuming from hibernation always results in output which says "clearing orphan nodes." I know it has something to do with the swap...

No, this is a very typical message generated by e2fsck. It's entirely unrelated to swap.

Last edited by falconindy (2013-12-26 17:13:22)

Offline

#6 2013-12-26 19:43:20

Lexworth
Member
Registered: 2012-01-19
Posts: 36

Re: [SOLVED] Swap partition failing on boot

falconindy wrote:

You appear to have nicely dodged the posit from my last post.

No, this is a very typical message generated by e2fsck. It's entirely unrelated to swap.

Did not mean to make it seem like I was dodging your answer. I agree with you and thank you for clearing up that it is a harmless error.

So it seems I have an issue with suspend to disk actually going to the swap partition. I'm going to go ahead and mark this as solved since my original question has been answered. Thank you for your help.

Offline

Board footer

Powered by FluxBB