You are not logged in.

#1 2018-04-09 05:42:54

Flowingisart
Member
Registered: 2017-11-21
Posts: 16

SWAP has failed [SOLVED]

Hello Arch Community~

Last month I migrated to a new system;
Since then a few problems have turned up and I am attempting to fix them as carefully as possible.
This issue has to do with my swap partition that was working properly on the last system.

I've read through some other posts/articles but no avail.

If anyone out there would mind walking me though this issue it would be appreciated.

systemd[1]: dev-disk-by\x2duuid-F77dbe9d\x2d5a05\x2d474d\x2daac2\x2d60ddb74a6392.device: Job dev-disk-by\x2duuid-F77dbe9d\x2d5a05\x2d474d\x2daac2\x2d60ddb74a6392.device/start timed out.
systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-F77dbe9d\x2d5a05\x2d474d\x2daac2\x2d60ddb74a6392.device.
systemd[1]: Dependency failed for /dev/disk/by-uuid/F77dbe9d-5a05-474d-aac2-60ddb74a6392.

Before I continue upgrading I would prefer to fix these things.

Thank you for reading.

Last edited by Flowingisart (2018-04-10 01:00:53)

Offline

#2 2018-04-09 06:30:04

seth
Member
Registered: 2012-09-03
Posts: 50,008

Offline

#3 2018-04-09 14:54:40

Flowingisart
Member
Registered: 2017-11-21
Posts: 16

Re: SWAP has failed [SOLVED]

$ lsblk -f
NAME                    FSTYPE      LABEL UUID                                   MOUNTPOINT

sda                                                                             
├─sda1                  ext2              7df9b31d-86a1-4eeb-b723-f8dcd7c50244   /boot
└─sda2                  crypto_LUKS       fb274889-5116-4278-8534-efd43a3e1a56   
  └─volgroup0           LVM2_member       LEmENC-ZMSm-e0vC-f92k-cbvB-rKn2-gwwqri
    ├─volgroup0-lv_root ext4              80d6b1c3-f4e1-4022-b357-4fa449727a8d   /
    ├─volgroup0-lv_swap swap              f77dbe9d-5a05-474d-aac2-60ddb74a6392   
    └─volgroup0-lv_home ext4              f96dcb71-a4e9-4d32-99f0-c036bb6d3c9c   /home

and as a bonus here is my fstab

#
# /etc/fstab: static file system information
#
# <file system>    <dir>    <type>    <options>    <dump>    <pass>
# /dev/mapper/volgroup0-lv_root
UUID=80d6b1c3-f4e1-4022-b357-4fa449727a8d    /             ext4          rw,discard,relatime,data=ordered    0 1

# /dev/sda1
UUID=7df9b31d-86a1-4eeb-b723-f8dcd7c50244    /boot         ext2          rw,relatime,block_validity,barrier,user_xattr,acl    0 2

# /dev/mapper/volgroup0-lv_home
UUID=f96dcb71-a4e9-4d32-99f0-c036bb6d3c9c    /home         ext4          rw,discard,relatime,data=ordered    0 2

UUID=F77dbe9d-5a05-474d-aac2-60ddb74a6392    none        swap        defaults        0 0

Offline

#4 2018-04-09 15:35:01

jean_no
Member
Registered: 2007-09-18
Posts: 48

Re: SWAP has failed [SOLVED]

Hi

In the output of lsblk -f : UUID swap = f77dbe9d-5a05-474d-aac2-60ddb74a6392
In your fstab : UUID swap = F77dbe9d-5a05-474d-aac2-60ddb74a6392
A+

Last edited by jean_no (2018-04-09 15:36:28)

Offline

#5 2018-04-09 15:39:33

seth
Member
Registered: 2012-09-03
Posts: 50,008

Re: SWAP has failed [SOLVED]

UUIDs are case insensitive (they're hex numbers) and I don't think systemd fails on that (though, hey ...)
The device isn't decrypted when systemd tries to mount fstab, so instead try to just comment the swap line and have systemd automount/swapon the swap partition.

Did your former system have an encrypted LVM container?

nB. that there're various posts complaining about this setup to be dead slow and grinding your system to the grade of being unusable when swapping :-(

Offline

#6 2018-04-10 00:56:45

Flowingisart
Member
Registered: 2017-11-21
Posts: 16

Re: SWAP has failed [SOLVED]

@jean_no That did it! Thank you for pointing that out.

@seth What you said about the hex numbers makes sense to me. I've worked with them before. This system has the ssd from my last system. They are one in the same. The encrypted volume has not given me any problems really. I believe my problems that I am facing are due to transplanting the ssd. If you have any more questions feel free to message me.

I don't believe I messed with the UUID's. Swap did not give me any troubles on my last system.

Either way the problem is fixed so at this point so I will mark the thread as solved.

Last edited by Flowingisart (2018-04-10 01:00:14)

Offline

#7 2018-04-10 07:18:10

seth
Member
Registered: 2012-09-03
Posts: 50,008

Re: SWAP has failed [SOLVED]

Unbelievable m(
I mean, I belive you and oc. never was eager enough to press SHIFT while typing a UUID (if I ever did), but ftr., that /is/ a hexadec number and no string and case insensitive: https://www.ietf.org/rfc/rfc4122.txt

Offline

Board footer

Powered by FluxBB