You are not logged in.

#1 2015-03-19 14:56:46

motaito
Member
Registered: 2015-02-07
Posts: 63

Failed to start swap partition [SOLVED]

Hi,

Every now and then I get a start up message telling me that the system failed to start the swap partition. However, once the system is up and running, swap is working just fine. Should I be worried about that message or is it safe to ignore it? Does anyone know why that is happening?

Last edited by motaito (2015-03-19 18:40:21)

Offline

#2 2015-03-19 15:47:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Failed to start swap partition [SOLVED]

Post your fstab. Anything interesting in systemd's journal?

Offline

#3 2015-03-19 16:56:01

motaito
Member
Registered: 2015-02-07
Posts: 63

Re: Failed to start swap partition [SOLVED]

My fstab looks like this:

# 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
# /dev/sda1
UUID=0925-619C      	/boot     	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro	0 2
# /dev/sda2
UUID=6c35788a-07f6-4bf8-b86b-e66e500b6fa0	/         	ext4      	defaults,noatime	0 1
# /dev/sda3
UUID=a3a7a31d-1a8c-4886-a3ca-64625f628840	none      	swap      	defaults  	0 0
# /dev/sda4
UUID=d35698d5-48a4-46b2-aa78-c1fc35748ffc	/home     	ext4      	defaults,noatime	0 2
# /dev/sda5
UUID=2ba2b71e-19b3-46a3-9f81-72634cc9f96a	/game     	ext4      	defaults,noatime	0 2

In journal I get:

journalctl -b | grep -i failed
Mar 19 17:44:24 kurama kernel: ACPI Error: Method parse/execution failed [\_SB_.PCI0.LPCB.EC__._REG] (Node ffff8802268af2f8), AE_NOT_EXIST (20141107/psparse-536)
Mar 19 17:44:28 kurama systemd[1]: Failed to activate swap Swap Partition.
Mar 19 17:44:28 kurama systemd[1]: Unit dev-sda3.swap entered failed state.
Mar 19 17:44:28 kurama swapon[297]: swapon: /dev/sda3: swapon failed: Device or resource busy
Mar 19 17:44:53 kurama dbus[354]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.NetworkManager.service': Unit dbus-org.freedesktop.NetworkManager.service failed to load: No such file or directory.
Mar 19 17:44:53 kurama dbus[354]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.NetworkManager.service': Unit dbus-org.freedesktop.NetworkManager.service failed to load: No such file or directory.
Mar 19 17:44:57 kurama pulseaudio[709]: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files

In the very same session after getting that message I also have:

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

I can use an application where I know it will use swap and swap works just fine. So, I am inclined not to worry about the message. However, I don't really like it. If everything is fine, the message should not appear...

Thanks for you help!

Offline

#4 2015-03-19 17:30:51

aorith
Member
Registered: 2013-04-19
Posts: 10

Re: Failed to start swap partition [SOLVED]

remove the swap entry on fstab, it should mount automatically now

Offline

#5 2015-03-19 18:07:19

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Failed to start swap partition [SOLVED]

aorith wrote:

remove the swap entry on fstab, it should mount automatically now

+1
See https://wiki.archlinux.org/index.php/Sw … by_systemd

Offline

#6 2015-03-19 18:40:03

motaito
Member
Registered: 2015-02-07
Posts: 63

Re: Failed to start swap partition [SOLVED]

Nice, that seams to have solved the problem. I rebooted a couple times and did not get the error again. From the wiki entry I thought that if systemd-fstab-generator finds a swap partition in fstab the second mechanism will not trigger. But it seams the error was that systemd-gpt-auto-generator tried to activate swap again and failed because it was already active. I have it now removed (commented) in /etc/fstab and it seams to work as expected without any errors.

Thanks for the help!

Offline

Board footer

Powered by FluxBB