You are not logged in.
Pages: 1
Hello Everyone,
When I installed arch, about a year ago, I followed the instructions at: https://wiki.archlinux.org/index.php/swap and added a swap partition. It worked fine until about 2 months ago.
Since then, on boot, I get the error 'failed to activate swap' and more specifically `[DEPEND] dependency failed for swap.`
free shows indeed no swap is used
free -h
total used free shared buff/cache available
Mem: 15Gi 1.2Gi 12Gi 260Mi 1.3Gi 13Gi
Swap: 0B 0B 0B
Could you help me try to find out the missing dependency or other problems? Thank you
Last edited by minze (2020-11-20 10:29:28)
Offline
You're not supposed to mount, but swapon it - if there's a correct entry in /etc/fstab, that will happen. Otherwise systemd will try to detect and use swap partitions.
Please post the entire journal for a boot (sudo journalctl -b | curl -F 'f:1=<-' ix.io) as well as the outputs of "uname -a", "pacman -Qs linux", "lsblk -f" and "cat /etc/fstab"
Offline
Thanks for your reply:
Boot logs: http://ix.io/2EN6 (The full logs are too large to upload to any pastebin I could find, so I extracted the section I think is relevant.) You can see the error I referred to in the original post there as well.
uname -a
Linux yunglean 5.9.9-arch1-1 #1 SMP PREEMPT Wed, 18 Nov 2020 19:52:04 +0000 x86_64 GNU/Linux
lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
nvme0n1
├─nvme0n1p1 vfat FAT16 EFI System 78BC-F008 193.2M 24% /boot/efi
├─nvme0n1p2 ext4 1.0 boot b79b9b9d-0f1c-4c3c-bdec-884ab7ad810f 382.5M 14% /boot
└─nvme0n1p3 crypto_LUKS 2 a255ea71-e9c6-45ca-805e-544fe256b37b
└─luks_root ext4 1.0 root 91727345-3c99-4f44-9dce-d77431df12ac 483.6G 43% /
pacman -Qs linux
local/alsa-lib 1.2.4-3
An alternative implementation of Linux sound support
local/alsa-utils 1.2.4-2
Advanced Linux Sound Architecture - Utilities
local/archlinux-keyring 20201028-1
Arch Linux PGP keyring
local/avahi 0.8+15+ge8a3dd0-1
Service Discovery for Linux using mDNS/DNS-SD -- compatible with Bonjour
local/bridge-utils 1.7-1
Utilities for configuring the Linux ethernet bridge
local/efibootmgr 17-2
Linux user-space application to modify the EFI Boot Manager
local/filesystem 2020.09.03-1
Base Arch Linux files
local/iptables 1:1.8.6-1
Linux kernel packet control tool (using legacy interface)
local/keyutils 1.6.3-1
Linux Key Management Utilities
local/kmod 27-2
Linux kernel module management tools and library
local/lib32-alsa-lib 1.2.4-2
An alternative implementation of Linux sound support (32 bit)
local/lib32-keyutils 1.6.3-1
Linux Key Management Utilities (32-bit)
local/lib32-libaio 0.3.112-1
The Linux-native asynchronous I/O facility (aio) library
local/lib32-libxshmfence 1.3-2
a library that exposes a event API on top of Linux futexes (32-bit)
local/lib32-util-linux 2.36.1-1
Miscellaneous system utilities for Linux (32-bit)
local/libaio 0.3.112-2
The Linux-native asynchronous I/O facility (aio) library
local/libiec61883 1.2.0-6
A higher level API for streaming DV, MPEG-2 and audio over Linux IEEE 1394
local/libraw1394 2.1.2-3
Provides an API to the Linux IEEE1394 (FireWire) driver
local/libva 2.9.1-1
Video Acceleration (VA) API for Linux
local/libxshmfence 1.3-2
a library that exposes a event API on top of Linux futexes
local/linux 5.9.9.arch1-1
The Linux kernel and modules
local/linux-api-headers 5.8-1
Kernel headers sanitized for use in userspace
local/linux-firmware 20201113.2ea8667-1
Firmware files for Linux
local/linux-headers 5.9.9.arch1-1
Headers and scripts for building modules for the Linux kernel
local/lirc 1:0.10.1-6
Linux Infrared Remote Control utilities
local/man-pages 5.09-2
Linux man pages
local/mdadm 4.1-2
A tool for managing/monitoring Linux md device arrays, also known as Software RAID
local/mplayer 38157-3
Media player for Linux
local/net-tools 1.60.20181103git-2
Configuration tools for Linux networking
local/pacman-mirrorlist 20201031-1
Arch Linux mirror list for use by pacman
local/python-distro 1.5.0-1
Linux OS platform information API
local/python2-distro 1.5.0-1
Linux OS platform information API
local/slack-desktop 4.11.1-1
Slack Desktop (Beta) for Linux
local/syslinux 6.04.pre2.r11.gbf6db5b4-3
Collection of boot loaders that boot from FAT, ext2/3/4 and btrfs filesystems, from CDs and via PXE
local/teams 1.3.00.25560-1
Microsoft Teams for Linux is your chat-centered workspace in Office 365
local/teams-for-linux 1.0.5-1
Unofficial Microsoft Teams client for Linux using Electron.
local/util-linux 2.36.1-3
Miscellaneous system utilities for Linux
local/util-linux-libs 2.36.1-3
util-linux runtime libraries
local/v4l-utils 1.20.0-1
Userspace tools and conversion library for Video 4 Linux
local/vmware-workstation 16.0.0-1
The industry standard for running multiple operating systems as virtual machines on a single Linux PC.
local/alsa-lib 1.2.4-3
An alternative implementation of Linux sound support
local/alsa-utils 1.2.4-2
Advanced Linux Sound Architecture - Utilities
local/archlinux-keyring 20201028-1
Arch Linux PGP keyring
local/avahi 0.8+15+ge8a3dd0-1
Service Discovery for Linux using mDNS/DNS-SD -- compatible with Bonjour
local/bridge-utils 1.7-1
Utilities for configuring the Linux ethernet bridge
local/efibootmgr 17-2
Linux user-space application to modify the EFI Boot Manager
local/filesystem 2020.09.03-1
Base Arch Linux files
local/iptables 1:1.8.6-1
Linux kernel packet control tool (using legacy interface)
local/keyutils 1.6.3-1
Linux Key Management Utilities
local/kmod 27-2
Linux kernel module management tools and library
local/lib32-alsa-lib 1.2.4-2
An alternative implementation of Linux sound support (32 bit)
local/lib32-keyutils 1.6.3-1
Linux Key Management Utilities (32-bit)
local/lib32-libaio 0.3.112-1
The Linux-native asynchronous I/O facility (aio) library
local/lib32-libxshmfence 1.3-2
a library that exposes a event API on top of Linux futexes (32-bit)
local/lib32-util-linux 2.36.1-1
Miscellaneous system utilities for Linux (32-bit)
local/libaio 0.3.112-2
The Linux-native asynchronous I/O facility (aio) library
local/libiec61883 1.2.0-6
A higher level API for streaming DV, MPEG-2 and audio over Linux IEEE 1394
local/libraw1394 2.1.2-3
Provides an API to the Linux IEEE1394 (FireWire) driver
local/libva 2.9.1-1
Video Acceleration (VA) API for Linux
local/libxshmfence 1.3-2
a library that exposes a event API on top of Linux futexes
local/linux 5.9.9.arch1-1
The Linux kernel and modules
local/linux-api-headers 5.8-1
Kernel headers sanitized for use in userspace
local/linux-firmware 20201113.2ea8667-1
Firmware files for Linux
local/linux-headers 5.9.9.arch1-1
Headers and scripts for building modules for the Linux kernel
local/lirc 1:0.10.1-6
Linux Infrared Remote Control utilities
local/man-pages 5.09-2
Linux man pages
local/mdadm 4.1-2
A tool for managing/monitoring Linux md device arrays, also known as Software RAID
local/mplayer 38157-3
Media player for Linux
local/net-tools 1.60.20181103git-2
Configuration tools for Linux networking
local/pacman-mirrorlist 20201031-1
Arch Linux mirror list for use by pacman
local/python-distro 1.5.0-1
Linux OS platform information API
local/python2-distro 1.5.0-1
Linux OS platform information API
local/slack-desktop 4.11.1-1
Slack Desktop (Beta) for Linux
local/syslinux 6.04.pre2.r11.gbf6db5b4-3
Collection of boot loaders that boot from FAT, ext2/3/4 and btrfs filesystems, from CDs and via PXE
local/teams 1.3.00.25560-1
Microsoft Teams for Linux is your chat-centered workspace in Office 365
local/teams-for-linux 1.0.5-1
Unofficial Microsoft Teams client for Linux using Electron.
local/util-linux 2.36.1-3
Miscellaneous system utilities for Linux
local/util-linux-libs 2.36.1-3
util-linux runtime libraries
local/v4l-utils 1.20.0-1
Userspace tools and conversion library for Video 4 Linux
local/vmware-workstation 16.0.0-1
The industry standard for running multiple operating systems as virtual machines on a single Linux PC.
cat /etc/fstab
UUID=91727345-3c99-4f44-9dce-d77431df12ac / ext4 rw,relatime 0 1
# /dev/nvme0n1p2 LABEL=boot
UUID=b79b9b9d-0f1c-4c3c-bdec-884ab7ad810f /boot ext4 rw,relatime 0 2
# /dev/nvme0n1p1 LABEL=EFI\134x20System
UUID=78BC-F008 /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 2
/mnt/swap none swap defaults 0 0
Last edited by minze (2020-11-20 10:37:33)
Offline
There's no swap partition in that lsblk -f and that swap line in fstab wouldn't reference a relevant partition. did you intend to do a swapfile? Is the file mentioned there present? (... I wouldn't really choose /mnt as the base dir here, but that shouldn't be an inherent underlying issue)
Offline
Looks like I misunderstood this. Maybe it never worked and only lately the error occurred. I'll do some research and see if I can do this properly
Offline
Pages: 1