You are not logged in.

#1 2016-09-06 06:03:31

gobnat
Member
Registered: 2015-12-20
Posts: 7

[SOLVED] Dependency failed for swap on bootup

Hello,

background: I have several drives in my system all on sata. 1 SSD with windows (Including grub) and 1 with Arch. There are two other mechanical drives. I recently pulled my case apart to clean dust out of it. After putting it back together I am unable to boot into Arch. The recurring error seems to be 'Dependency failed for swap".

Logging in to emergency recovery as root I can confirm the above from journalctl -xb and if I can see from lsblk -f that my system is trying to access sda3 as a swap location when my arch drive has been assigned sdc (sdc3 being the correct swap location).

I read through this page: https://wiki.archlinux.org/index.php/pe … ice_naming

And upon checking my grub.cfg  on my arch drive I can see that UUID being used by grub for linux is set to the correct UUID (at least for the root drive). The correct drive being that of my Arch drive which I have confirmed by comparing the value with the output of: lsblk -no UUID /dev/sdc

I cannot see swap being set in grub.cfg. I can set it manually as root but when I reboot it again goes looking for sda3...

I can see a lot of questions are asked about drive naming conflicts but I cannot find one that has helped me get Arch booting...

I have resorted to randomly changing the physical connection order of my drives.... this does not appear to be working.

Last edited by gobnat (2016-09-07 00:47:42)

Offline

#2 2016-09-06 06:09:33

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Dependency failed for swap on bootup

Is swap listed in your fstab?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-09-06 06:14:54

gobnat
Member
Registered: 2015-12-20
Posts: 7

Re: [SOLVED] Dependency failed for swap on bootup

jasonwryan wrote:

Is swap listed in your fstab?

Forgot to mention that. Yes it is, but the wrong location.

Lists the correct linux root UUID but swap is given as the /sda3 location.

Offline

#4 2016-09-06 06:30:29

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Dependency failed for swap on bootup

Then change it to the correct location (and use a UUID so this doesn't happen again).


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2016-09-06 12:20:29

gobnat
Member
Registered: 2015-12-20
Posts: 7

Re: [SOLVED] Dependency failed for swap on bootup

jasonwryan wrote:

Then change it to the correct location (and use a UUID so this doesn't happen again).

Seems that somewhere along the line I got into my head fstab was auto-generated by grub and not editable. Thanks.

Offline

#6 2016-09-06 16:32:04

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Dependency failed for swap on bootup

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB