solio
(solio)
July 11, 2024, 7:36pm
1
Deleted swap partition in order to resize the root partition in order to be able to download system software updates.
After restarting, the boot stays stuck on Job dev-disk-by.
Cannot boot into any of the three kernels or rescue, but grub command line is accessible.
Running cat /proc/cmd/ gives error command not found. Running ls gives (memdisk) (proc) (hd0)…
As an alternative, booted a livecd, deleted the resume=x line from etc/default/grub, saved, restarted, but the boot remains stuck.
Without a new install, can anything be done to fix this boot issue?
boredsquirrel
(boredsquirrel)
Tags updated
July 11, 2024, 7:44pm
2
Hi and welcome to !
Did you increase the storage size of your root partition? Can you tell us where the swap partition was, and where the root partition was and is now?
This may be an issue in your fstab or something, trying to mount root but there is no first partition. But no idea.
try searching for it, many results that could match
alciregi
(Alessio)
July 11, 2024, 8:26pm
4
solio:
As an alternative, booted a livecd, deleted the resume=x line from etc/default/grub, saved, restarted, but the boot remains stuck.
Mh. I think that if you modify /etc/default/grub
you are supposed to rungrub2-mkconfig
in order to regenerate the grub configuration.
In addition. What about /etc/fstab
?
(However I installed a VM with a swap partition, deleted it, and the system boots anyway, so I think that your issue is more complex ).
3 Likes
solio
(solio)
July 11, 2024, 8:56pm
5
Thank you.
Yes, I increased the size of root.
Both the root and the swap partitions were under the same hard disk, altogether there were four partitions, now three.
Using the search results, I opened fstab and it contained:
overlay / overlay rw 0 0
tmpfs / tmp tmpfs nosuid,nodev 0 0
Crypttab contained:
# <target name> <source device> <key file> <options>
That looks like a header row, and there were no devices to comment out as I interpreted as the step that needs to be done.
your crypttab output is empty?
Also you can format your code using the code symbol in the edit window
1 Like
alciregi
(Alessio)
July 11, 2024, 9:20pm
7
I think that it is normal if the disk is not encrypted.
This looks strange, where is the root partition in example?
1 Like
alciregi
(Alessio)
July 11, 2024, 9:24pm
8
What program did you use?
Are you using Fedora Workstation or some other spin/edition?
Is the disk encrypted?
Can you provide (from the Live system) the result of the command
lsblk -o name,fstype,size
1 Like
solio
(solio)
July 11, 2024, 9:25pm
9
Removed the swap partition line from fstab, but can’t get or find how to run the grub2-mkconfig.
solio
(solio)
July 11, 2024, 9:50pm
10
I used the terminal to delete the swap partition and resize the root partition, and I am using Fedora Workstation. One of the partitions are encrypted, but not the root partition.
NAME FSTYPE SIZE
loop0 squashfs 1.6G
loop1 squashfs 457.5M
loop2 squashfs 868.1M
loop3 squashfs 74.2M
loop4 squashfs 4K
loop5 squashfs 269.6M
loop6 squashfs 10.7M
loop7 squashfs 505.1M
loop8 squashfs 137.3M
loop9 squashfs 116.7M
loop10 squashfs 91.7M
loop11 squashfs 10.3M
loop12 squashfs 476K
loop13 squashfs 38.7M
loop14 89.6M
loop15 89.6M
sda iso9660 14.6G
├─sda1 iso9660 5.7G
├─sda2 vfat 5M
├─sda3 300K
└─sda4 ext4 9G
sdb 28.9G
└─sdb1 vfat 28.9G
nvme0n1 953.9G
├─nvme0n1p1 vfat 500M
├─nvme0n1p2 ext4 27.5G
└─nvme0n1p4 crypto_LUKS 450G
the terminal is not the program that you used ;D
What command did you use to delete the partition? And if you followed instructions, where are they?
solio
(solio)
July 11, 2024, 10:17pm
12
I actually think I used Disks to unmount and delete the swap partition, and then used resize2fs to increase the size of root.
I didn’t want to delete the swap partition because there was available unallocated space on the disk, but couldn’t figure out how to do that.
vekruse
(Villy Kruse)
July 12, 2024, 6:27am
13
Before removing the swap partition from the disk, it is important to check if there are any references in the /etc/fstab
file to the swap partition or if you have a resume=
in the kernel command line. To check the kernel command line, run the command cat /proc/cmdline
.
Especially, the resume=
option would cause the system to wait forever for the swap partition to become available.
The command lsblk -fp
will show the UUIDs you should be looking for when check /proc/cmdline
and /etc/fstab
.
1 Like
On my system this file has a warning that it is not used.
$ cat /etc/inittab
# inittab is no longer used.
#
# ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
vekruse
(Villy Kruse)
July 12, 2024, 9:40am
15
Sorry; /etc/fstab
of course.
solio
(solio)
July 12, 2024, 2:10pm
16
Thanks to everyone for the help. This is all good to know.
After several attempts, I wasn’t able to do get it to boot, but had a backup so a new install resolved it.