0

When creating a new swap partition in Fedora 29 to enlarge it I removed the old one using GParted and removed their respective entries in /etc/fstab. I created new entries for the new swap partitions which work as intended.

However, the system still tries to mount the old partition at startup even though it is not in /etc/fstab - until it times out eventually.

The service also doesn't exist for any entry of systemctl status . I also have tried to run

systemctl reset-failed
systemctl daemon-reload

But to no avail. The following is the content of my fstab file:

# /etc/fstab
# Created by anaconda on Wed Nov 28 22:29:31 2018
#
# 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.
#
UUID=8efbb12d-bd38-420c-a33e-f02205e1a6e9 /                       ext4    defaults        1 1
UUID=ded23a91-0e22-48f4-b1ec-169f255961b6 /boot                   ext4    defaults        1 2
UUID=AEA0-2099          /boot/efi               vfat    umask=0077,shortname=winnt 0 2
UUID=3e9f87b8-0b25-4a2f-aa21-51ea8fc58020 swap                    swap    defaults        0 0
UUID=8743c19d-5d86-4651-a8b6-cf3477da8b13 swap                    swap    defaults        0 0

The following is from /var/log/boot.log

[*** ] A start job is running for dev-disk-by\x2duuid-5121042f\x2de8a6\x2d41ed\x2d981e[ TIME ] Timed out waiting for device dev-disk-by\x2duuid-5121042f\x2de8a6\x2d41ed\x2d981e\x2de9d224055ea2.device.

EDIT: As per Nasir Riley and sourcejedi's comments I checked my grub file where there was no mention of the partition and i ran grub2-mkconfig -o /boot/grub2/grub.cfg It might also be relevant that i run a dual boot windows on this system.

EDIT 2 It seems that the partition was mentioned in /proc but nowhere else. I have since reinstalled my system to fix this issue.

  • 2
    Did you update grub with the new swap partition? – Nasir Riley Jan 18 at 19:13
  • specifically, any reference to the old uuid in cat /proc/cmdline ? if so, fix should be to edit /etc/default/grub, and then "Changes to /etc/default/grub require rebuilding the grub.cfg file as follows" – sourcejedi Jan 18 at 21:50
1

After editing /etc/fstab You have to regenerate your initramfs.

dracut --regenerate-all --force
  • I have done this, it did not work unfortunately – dvanderleij Jan 28 at 14:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.