You are not logged in.

#1 2024-07-11 01:10:34

Dragin
Member
Registered: 2024-06-15
Posts: 35

Timed out waiting for swap

Recently, my laptop has been taking much longer to boot. It seems to be attempting to load my swap space, and failing to do so:
[ TIME ] Timed out waiting for device /dev/disk/[uuid].
[DEPEND] Dependency failed for /dev/disk/[uuid].
[DEPEND] Dependency failed for Swaps.

Note: I also have Windows and Pop!_OS installed.

Any idea why this could be happening?

Offline

#2 2024-07-11 06:55:33

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,939

Re: Timed out waiting for swap

Yes: /dev/disk/[uuid] doesn't show up. It probably doesn't even exist?

Offline

#3 2024-07-11 09:24:00

Nikolai5
Member
From: North West, England, UK
Registered: 2024-01-27
Posts: 275

Re: Timed out waiting for swap

What is the output of:

sudo blkid
cat /etc/fstab

When you installed Arch how did you set Swap up? Actual swap with a swap partition? zram?


Ryzen 7 9850X3D | AMD 7800XT | KDE Plasma

Offline

#4 2024-07-11 11:35:54

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Timed out waiting for swap

If this is on a GPT disk just delete the swap line from /etc/fstab.


Jin, Jîyan, Azadî

Offline

#5 2024-07-11 15:06:19

Dragin
Member
Registered: 2024-06-15
Posts: 35

Re: Timed out waiting for swap

seth wrote:

Yes: /dev/disk/[uuid] doesn't show up. It probably doesn't even exist?

"[uuid]" was just a replacement for the actual UUID, since it was quite long and I didn't think it was necessary to type it out, but the actual UUID is (according to my fstab file) 767c5917-c3f1-4b39-b621-72ae75b09867.

Last edited by Dragin (2024-07-11 15:16:54)

Offline

#6 2024-07-11 15:07:37

Dragin
Member
Registered: 2024-06-15
Posts: 35

Re: Timed out waiting for swap

Nikolai5 wrote:

What is the output of:

sudo blkid
cat /etc/fstab

/dev/nvme0n1p9: UUID="2a782540-82d4-43de-be5c-48afc4ca5f7c" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="8a5fef41-81bb-4293-bee4-b1f86a2ae38a"
/dev/nvme0n1p7: UUID="c12b84ee-7a46-4873-990b-893229bba5ec" TYPE="swap" PARTUUID="027d4456-a3e3-4b1b-b150-97cb55d58b17"
/dev/nvme0n1p5: LABEL="Image" BLOCK_SIZE="512" UUID="B0C6D2D4C6D29A44" TYPE="ntfs" PARTUUID="0b074f1c-576d-4e3f-ba8f-17867259e6ff"
/dev/nvme0n1p3: LABEL="OS" BLOCK_SIZE="512" UUID="EE2AD1922AD15863" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="de00d8b5-3b37-45ea-85f1-d89d9f1b327e"
/dev/nvme0n1p1: LABEL_FATBOOT="ESP" LABEL="ESP" UUID="E8CD-6821" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="00c2ac5f-bb8c-44c3-978f-4f0fa7165f24"
/dev/nvme0n1p8: UUID="554a9141-7e73-4ada-8c3c-d30c4732d2c6" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="ce1abba5-fe51-407a-9b25-e17565c45e41"
/dev/nvme0n1p10: UUID="3E2E-36EC" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="8bbb7232-5d7a-451e-b5c3-94a21b5b51a0"
/dev/nvme0n1p6: LABEL="DELLSUPPORT" BLOCK_SIZE="512" UUID="9C14D45D14D43C48" TYPE="ntfs" PARTUUID="1ef94d73-bdec-426c-847b-b6ab89ca381b"
/dev/nvme0n1p4: LABEL="WINRETOOLS" BLOCK_SIZE="512" UUID="24282F0F282EE012" TYPE="ntfs" PARTUUID="60344dc9-b5ca-44cb-8c81-d77906d88334"
/dev/nvme0n1p2: PARTLABEL="Microsoft reserved partition" PARTUUID="4352482b-2365-4a66-9657-86b162b8ec59"

# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/nvme0n1p8
UUID=554a9141-7e73-4ada-8c3c-d30c4732d2c6    /             ext4          rw,relatime    0 1

# /dev/nvme0n1p1 LABEL=ESP
UUID=E8CD-6821          /boot         vfat          rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro    0 2

# /dev/nvme0n1p7
UUID=767c5917-c3f1-4b39-b621-72ae75b09867    none          swap          defaults      0 0


Nikolai5 wrote:

When you installed Arch how did you set Swap up? Actual swap with a swap partition? zram?

An actual swap partition.

Offline

#7 2024-07-11 15:16:26

Dragin
Member
Registered: 2024-06-15
Posts: 35

Re: Timed out waiting for swap

Head_on_a_Stick wrote:

If this is on a GPT disk just delete the swap line from /etc/fstab.

From what I understand, fstab is just a list of partitions to mount/use, so wouldn't that just disable it entirely?

Offline

#8 2024-07-11 15:19:02

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Timed out waiting for swap

Not for a GPT disk under systemd: https://www.freedesktop.org/software/sy … rator.html

Pop!_OS probably reformatted your swap, which changed the UUID.


Jin, Jîyan, Azadî

Offline

#9 2024-07-11 15:40:00

Nikolai5
Member
From: North West, England, UK
Registered: 2024-01-27
Posts: 275

Re: Timed out waiting for swap

UUID for your swap "c12b84ee-7a46-4873-990b-893229bba5ec" does not match what you have in /etc/fstab.


Ryzen 7 9850X3D | AMD 7800XT | KDE Plasma

Offline

#10 2024-07-11 15:55:11

cryptearth
Member
Registered: 2024-02-03
Posts: 2,184

Re: Timed out waiting for swap

Head_on_a_Stick wrote:

Not for a GPT disk under systemd: https://www.freedesktop.org/software/sy … rator.html

Pop!_OS probably reformatted your swap, which changed the UUID.

sorry for hi-jacking: does this require systemd-boot?

Offline

#11 2024-07-11 16:02:49

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Timed out waiting for swap

No, it does not. The generator runs after the bootloader has finished.

EDIT: but you do need systemd in the initramfs if you want to omit the root partition identifier from the bootloader configuration.

Last edited by Head_on_a_Stick (2024-07-11 16:15:28)


Jin, Jîyan, Azadî

Offline

#12 2024-07-11 16:25:48

cryptearth
Member
Registered: 2024-02-03
Posts: 2,184

Re: Timed out waiting for swap

sounds neat - gonna give that a try

Offline

#13 2024-07-11 18:58:30

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,939

Re: Timed out waiting for swap

Otherwise use the correct UUID (c12b84ee-7a46-4873-990b-893229bba5ec)

I btw. got the placeholder thing, the reason why I was a bit snappy is https://bbs.archlinux.org/viewtopic.php?id=57855 (and admittedly yours was not the only thread this morning in that regard)

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Also in the future please use [code][/code] tags.

Offline

#14 2024-07-11 20:13:24

Dragin
Member
Registered: 2024-06-15
Posts: 35

Re: Timed out waiting for swap

Head_on_a_Stick wrote:

Not for a GPT disk under systemd: https://www.freedesktop.org/software/sy … rator.html

Pop!_OS probably reformatted your swap, which changed the UUID.

Ah, that makes sense.

I tried removing the line and it did not appear to fix it. It gives me the error "[FAILED] Failed to activate swap Swap Partition."

I also tried using swapon (sudo swapon -v /dev/nvme0n1p7):
swapon: /dev/nvme0n1p7: found signature [pagesize=4096, signature=swap]
swapon: /dev/nvme0n1p7: pagesize=4096, swapsize=8589934592, devsize=8589934080
swapon: /dev/nvme0n1p7: last_page 0x200000000 is larger than actual size of swapspace
swapon /dev/nvme0n1p7
swapon: /dev/nvme0n1p7: swapon failed: Invalid argument

Offline

#15 2024-07-11 20:38:26

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,939

Re: Timed out waiting for swap

Please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Also

fdisk -l /dev/nvme0n1
lsblk -f

Also: code tags …

Offline

#16 2024-07-11 20:56:15

Dragin
Member
Registered: 2024-06-15
Posts: 35

Re: Timed out waiting for swap

https://0x0.st/XMwM.txt

Disk /dev/nvme0n1: 953.87 GiB, 1024209543168 bytes, 2000409264 sectors
Disk model: PM9A1 NVMe Samsung 1024GB               
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: E6FDF862-4882-4827-831C-F9D319F30A50

Device               Start        End    Sectors   Size Type
/dev/nvme0n1p1        2048    1026047    1024000   500M EFI System
/dev/nvme0n1p2     1026048    1288191     262144   128M Microsoft reserved
/dev/nvme0n1p3     1288192  257288191  256000000 122.1G Microsoft basic data
/dev/nvme0n1p4  1973080064 1975967743    2887680   1.4G Windows recovery environ
/dev/nvme0n1p5  1975967744 1998151679   22183936  10.6G Windows recovery environ
/dev/nvme0n1p6  1998151680 2000383999    2232320   1.1G Windows recovery environ
/dev/nvme0n1p7   257288192  274065406   16777215     8G Linux swap
/dev/nvme0n1p8   274065408 1446385663 1172320256   559G Linux filesystem
/dev/nvme0n1p9  1446385664 1967812606  521426943 248.6G Linux filesystem
/dev/nvme0n1p10 1967812608 1973080062    5267455   2.5G EFI System

Partition table entries are not in disk order.
NAME FSTYPE FSVER LABEL       UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
nvme0n1
|                                                                                 
|-nvme0n1p1
|    vfat   FAT32 ESP         E8CD-6821                             140.3M    72% /boot
|-nvme0n1p2
|                                                                                 
|-nvme0n1p3
|    ntfs         OS          EE2AD1922AD15863                                    
|-nvme0n1p4
|    ntfs         WINRETOOLS  24282F0F282EE012                                    
|-nvme0n1p5
|    ntfs         Image       B0C6D2D4C6D29A44                                    
|-nvme0n1p6
|    ntfs         DELLSUPPORT 9C14D45D14D43C48                                    
|-nvme0n1p7
|    swap   1                 c12b84ee-7a46-4873-990b-893229bba5ec                
|-nvme0n1p8
|    ext4   1.0               554a9141-7e73-4ada-8c3c-d30c4732d2c6    383G    25% /
|-nvme0n1p9
|    ext4   1.0               2a782540-82d4-43de-be5c-48afc4ca5f7c                
`-nvme0n1p10
     vfat   FAT32             3E2E-36EC                                           

Offline

#17 2024-07-11 21:05:19

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,939

Re: Timed out waiting for swap

The partition table is ok, but I forgot that lsblk doesn't show the swap size…
Either way, run mkswap - https://wiki.archlinux.org/title/Swap#Swap_partition
I suspect you may have repartitioned the drive and that resulted in the different UUID and you probably also shrunk the swap partition?

Offline

#18 2024-07-12 00:19:28

Dragin
Member
Registered: 2024-06-15
Posts: 35

Re: Timed out waiting for swap

Thanks, that worked. I think that might break it in Pop!_OS though.

Offline

#19 2024-07-12 05:02:02

cryptearth
Member
Registered: 2024-02-03
Posts: 2,184

Re: Timed out waiting for swap

the solution is the same: clean up the fstab
as you have a linux running you can just mount the others os root partition

Offline

#20 2024-07-12 07:01:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,939

Re: Timed out waiting for swap

Ftr, you can use "mkswap -U"
The swap partition should™ have been broken in Pop and everywhere else anyway because the signature was created on a bigger partition.

Offline

Board footer

Powered by FluxBB