Fedora 42
I booted my system yesterday from power off. Everything was working fine as far as I know when I powered it down (properly via “Application Launcher → Shut down” two days earlier.
Upon booting, one of my two external Western Digital drives was making all kinds of clicking noises as if the arm was being repositioned every 1/2 second, either from one end of its range to the other end, or being parked or something like that.
I unmounted, disconnected, and connected it to my laptop. I booted the laptop and no clicking noises. I could access all partitions on the drive and the files seemed intact.
I then shutdown my desktop, connected the drive, rebooted. I have not heard the clicking noises, and I can access all the data on the partitions.
But I noticed that the swap partition is no longer recognized. Below is some output I captured.
$ cat /proc/swaps
Filename Type Size Used Priority
/dev/zram0 partition 8388604 0 100
/dev/sda4\040(deleted) partition 134765564 908 200
$
$ swapon --show
NAME TYPE SIZE USED PRIO
/dev/zram0 partition 8G 0B 100
/dev/sda4 partition 128.5G 908K 200
$
$
$ cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Fri Nov 22 15:54:29 2024
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/'.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
#
# fs_spec fs_file fs_vfstype fs_mntops fs_freq fs_passno
UUID=4a972d32-b4a0-418e-8f6d-f1aabcbe6b5f / btrfs subvol=root,compress=zstd:1 0 0
UUID=0a70d693-9894-45d2-9668-122dffac9304 /boot ext4 defaults 1 2
UUID=EBC8-9DD9 /boot/efi vfat umask=0077,shortname=winnt 0 2
UUID=4a972d32-b4a0-418e-8f6d-f1aabcbe6b5f /home btrfs subvol=home,compress=zstd:1 0 0
LABEL=disk1s1 /mnt/disk1s1 ext4 auto,noexec,nosuid,nodev,nofail 0 0
LABEL=disk1s2 /mnt/disk1s2 ext4 defaults,nofail 0 0
LABEL=disk1s3 /mnt/disk1s3 ext4 defaults,nofail 0 0
LABEL=disk1s4 none swap defaults,nofail,pri=200 0 0
LABEL=disk2s1 /mnt/disk2s1 ext4 auto,noexec,nosuid,nodev,nofail 0 0
LABEL=disk2s2 /mnt/disk2s2 ext4 defaults,nofail 0 0
LABEL=disk2s3 /mnt/disk2s3 ext4 defaults,nofail 0 0
LABEL=disk2s4 none swap defaults,nofail,pri=200 0 0
$
It seems that there is an inconsistency between the output of “swapon” and the contents of /proc/swaps
I looked at the partitions using parted and it looks like the “swap” flag is properly set on the partition reserved for swap.
Any ideas are appreciated.