Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When my netbook boots, it stalls for 1min 30sec while one "start job" tries and fails to complete. It times out and generates an error, but then the system boots. It's particularly a problem since I use this system to try testing kernels and other things, so I reboot it frequently.
The problem is, since this "start job" isn't a systemd "unit" I don't know how to find out what is wrong with it. I really don't know what this job is trying to do. The job is "dev-disk-by-uuid-<UUID>.device", where <UUID> looks like a UUID to me...except for two problems:
1) No such device with that UUID exists
2) I don't understand how these start jobs are created. I understand systemd units well enough, but I don't understand how to trace this failing job back to a broken unit or whatever is wrong.
Mine had been caused by a reformatted partition.
Reformatting changed the UUID of the partition, while the old UUID was still referred in GRUB configuration.
I just had to put the correct and new UUID in RUB configuration, rebuild it, and reboots were fixed.
For information the partition was the swap.
I checked my system, which is EFI, BTW, and this bogus UUID does not appear in the grub.cfg.
I liked what you are saying about a reformatted partition; that fits. A while ago, I tried to use ecryptfs-setup-swap script to encrypt the swap partition. I think I've used it successfully a couple times before, but, converting swap on this system didn't work.
Thinking of that gave me somewhere to start. Assuming it was a crypt-related service, I found the systemd-cryptsetup@cryptswap1.device in systemdctl list-units. 'systemdctl show' on that *did* have the bogus UUID in it. I didn't know how to fix that though. Poking around more led to /etc/crypttab, which I never touched, but must have been setup by ecryptfs-setup-swap. It also had the wrong UUID in it. I fixed this file, after reading about how it works. I then replaced the regular swap entry in /etc/fstab with /dev/mapper/cryptswap1, which is the device name I configured in /etc/crypttab. I rebooted and it *didn't* stall on that non-existent device!
Oddly, now I have both /dev/mapper/swap, the old swap device, and /dev/mapper/cryptswap1 which is the one that is now mounted as swap. I don't know what causes that, but I don't think it's broken. It might not be exactly right; I'm not sure.
Yeah, my active swap is the right one; it's the new one I encrypted. I'm just saying the old one is still around. Maybe it is okay. The old one is a LVM device; I guess they all get mapper names, now. So, the encrypted device is inside the LVM device. Yeah, I guess that's right. In the past, I think I had encrypted swap on raw partition, no LVM, so I my expectations may be inaccurate.
You mean /proc/cmdline? In mine, I see all LVM devices are listed, but there isn't anything that selects the swap device or hibernation device. Is there a kernel param that selects a file for hibernation independently of the swap device? I've never heard of that. AFAIK, it isn't possible to hibernate when using encrypted swap. If that has changed, I'm not aware of it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.