You are not logged in.
I entered the following command into terminal and was surprised to receive
$ systemctl --state=failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● dev-disk-by\x2duuid-3ca23094\x2dc604\x2d467c\x2da125\x2dc4f292307545.swap load failed /dev/disk/by-uuid/3ca23094-c604-46
i looked to see if swap failed to load but it seems it loaded fine
swapon -s
Filename Type Size Used Priority
/dev/sda4 partition 4092 0 -1
journalctl -b | grep swap
[-@archBox ~]$ dmesg | grep swap
[ 8.610316] Adding 4092k swap on /dev/sda4. Priority:-1 extents:1 across:4092k FS
Here are my partitions
[-@archBox ~]$ lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1
├─sda2 ext4 57f95251-7127-4bd1-a3be-c88f31ae3d94
├─sda3 ext4 47748c67-e4bf-437b-92c5-c974c31198b9 /
├─sda4 swap 3ca23094-c604-467c-a125-c4f292307545 [SWAP]
├─sda5 ext4 051afe80-d1be-4b39-b410-ed3661050177 /var
└─sda6 ext4 4c1e0510-6249-4bae-b2a4-cf9bc5a92e61 /home
Here is my fstab
cat /etc/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda3
UUID=47748c67-e4bf-437b-92c5-c974c31198b9 / ext4 rw,relatime,data=ordered 0 1
# /dev/sda5
UUID=051afe80-d1be-4b39-b410-ed3661050177 /var ext4 rw,relatime,data=ordered 0 2
# /dev/sda6
UUID=4c1e0510-6249-4bae-b2a4-cf9bc5a92e61 /home ext4 rw,relatime,data=ordered 0 2
# /dev/sda4
UUID=3ca23094-c604-467c-a125-c4f292307545 none swap defaults 0 0
Swap seems to be loading fine ,but systemctl doesnt think so
Does anyone have any ideas on what could be causing this?
Any help would be very much appreciated !
Last edited by edm7707 (2014-12-22 14:10:16)
Offline
hi
Can you read this in the wiki?
https://wiki.archlinux.org/index.php/Sw … _partition
A+
Offline
Thanks for the response!
Reading through the wiki article, I commented out swap from the fstab, which solved the issue, but I am a bit confused as to why
It says that there are 2 ways the swap partition is activated,
1. systemd-fstab-generator
- Because this way reads the fstab file to activate swap , this executable spawned the failed process
2. systemd-gpt-auto-generator
- This auto generates the swap based on the partition type (83)
the solutions seem to disable either one way other the other for the activating the swap?
Is the resulting failure in systemd the result of trying to activate swap twice?
how do you set the attribute of the swap partition to 63 ( are they referring to partition type in the solutions)?
Offline