Ok, so I am running Fedora 27 on my XPS 13 and I wanted to enable hibernation. So I changed the swap size from 8GB to 17GB, and disabled secure boot. I thought I was doing everything right until I booted up and greeted me with:
You are in emergency mode. After logging in type “journalctl -xb
on and on
cannot open access to console, the root account is locked. See sulogin(8) man page for more details.
Press Enter to continue.
What works now:
After many hours I got grub2 to initialize
** I could boot into kernels 4.15 or 4.14
I am able to boot off a live Fedora 27 USB and chroot into my root with /boot and /boot/efi both mounted properly
I don’t know what is going on here and I would like to boot normally.
On a side note, I don’t know if this is related to the matter, but on the live USB, my root partition (LVM) showed as using ~67GB. This is noteworthy because I just resized it to 97GB from 50GB. I think that this may mean that I have put my 17GB of swap in the root partition instead of in the swap LVM.
Thanks for any help.
Edit: The problem is solved! I still would like help hibernating if anyone knows how to.
Get some more info, boot your live USB and mount and chroot your system. (replace sda with the correct one for your system, you can check with lsblk)
mkdir /mnt/fedora
mount /dev/mapper/fedora-root /mnt/fedora
mount /dev/mapper/fedora-home /mnt/fedora/home
mount /dev/sda2 /mnt/fedora/boot
mount /dev/sda1 /mnt/fedora/boot/efi
cd /mnt/fedora
mount -o bind /dev dev
mount -o bind /proc proc
mount -o bind /sys sys
chroot /mnt/fedora
We can then get system info that you can link here, run: fpsate --sysinfo
grab the contends of your fstab: cat /etc/fstab | fpaste
OK. the problem is almost certainly that then.
You reduced the LVM partition size of fedora-home but you didnt reduce the ext4 file system to fit (i presume). So the file system thinks its using up 400gb (for example) when the partition size is now 300gb (for example).
when you resized the partition --resizefs should also be passed.
You can try the following to attempt to resize the file system to fit the partition size
resize2fs /dev/mapper/fedora-home
Its worth noting, this may not work, your meant to resize the file-system then the partition.
If it doesn’t work, you may have to increase the size of the home partition to its origonal size then reduce it again passing the --resizefs option. (im guessing, as ive not done this, and it may have been overwritten with the increase in your other partitions (which also need the -resizefs option to actually increase the filesystem size)