LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-10-2019, 04:00 AM   #1
ddenial
Member
 
Registered: Dec 2016
Distribution: CentOS, Fedora, Ubuntu
Posts: 359

Rep: Reputation: 56
Swap error - A start job is running for dev-disk....


Hello

I'm getting something like this error at boot:
Quote:
A start job is running for dev-disk by \x2duuid-.....1min:30 s
Dependency failed for Resume from hibernation
Following is from the error log
Code:
# journalctl -b | grep -i dependency
Apr 10 18:16:58 svr.nix.lan systemd[1]: Dependency failed for Resume from hibernation using device /dev/disk/by-uuid/1007f617-b81b-4c6e-a652-5ab26cb71a46.
Apr 10 18:16:58 svr.nix.lan systemd[1]: systemd-hibernate-resume@dev-disk-by\x2duuid-1007f617\x2db81b\x2d4c6e\x2da652\x2d5ab26cb71a46.service: Job systemd-hibernate-resume@dev-disk-by\x2duuid-1007f617\x2db81b\x2d4c6e\x2da652\x2d5ab26cb71a46.service/start failed with result 'dependency'.
What I did:
  1. Changed the swap from regular partition to lvm volume.
  2. Used that same uuid that was used for the earlier regular swap partition to new lvm volume.
  3. Formatted that regular partition and used it for another purpose (so the uuid has changed).
  4. Changed fstab, grub file; regenerated grub file.


Code:
# swapon -s
Filename				Type		Size	Used	Priority
/dev/sda4                              	partition	8388604	0	-2

# swapoff -a

# mkswap -L Swap -U 1007f617-b81b-4c6e-a652-5ab26cb71a46 /dev/dsk/swp

# grep swap /etc/fstab 
UUID=1007f617-b81b-4c6e-a652-5ab26cb71a46 swap                    swap    defaults        0 0 

# grep CMDLINE /etc/default/grub  
GRUB_CMDLINE_LINUX="resume=UUID=1007f617-b81b-4c6e-a652-5ab26cb71a46 rd.lvm.lv=dsk/rfs rhgb quiet" 

# grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

# dracut -f

# blkid | grep 'sda4\|swp'
/dev/sda4: LABEL="PrimeOS" UUID="e5d445e4-f59f-5158-b9c7-465f7009bc23" TYPE="ext4" PARTLABEL="PrimeOS Android" PARTUUID="3c9f9e39-801d-4825-8229-add772c60105"
/dev/mapper/dsk-swp: LABEL="Swap" UUID="1007f617-b81b-4c6e-a652-5ab26cb71a46" TYPE="swap"
But still, I'm getting this above error.

Appreciate any help. Thanks
 
Old 04-10-2019, 04:16 AM   #2
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
Does this help?

https://bbs.archlinux.org/viewtopic.php?pid=1558255
 
1 members found this post helpful.
Old 04-10-2019, 10:11 AM   #3
ddenial
Member
 
Registered: Dec 2016
Distribution: CentOS, Fedora, Ubuntu
Posts: 359

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by Lysander666 View Post
I just removed 'resume=xxx' from /etc/default/grub, and its booting fine now. I guess I can't use the hibernate feature now.

Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] A start job is running for dev-disk-by.device JosephS Linux - General 2 08-28-2017 11:23 PM
A start job is running for dev-disk-by.device JosephS Linux - General 1 04-11-2017 01:53 AM
Stuck on "Start job is running for dev-disk..." horizn SUSE / openSUSE 3 12-24-2016 09:13 AM
Fix Linux Boot Error message : "a start job is running for dev-disk-by..." andrehardianto Linux - Newbie 6 10-05-2016 11:24 PM
pseudo terminals: /dev/ptmx <-> /dev/pts/ vs. /dev/ptyp <-> /dev/ttyp rtspitz Linux - Software 2 12-02-2011 02:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration