You are not logged in.

#1 2013-04-20 14:03:20

Pacopag
Member
Registered: 2011-05-29
Posts: 287

A start job is running for dev-disk-by\x2dlabel-swapspace.device

Hi.  I've been getting the following message during startup

A start job is running for dev-disk-by\x2dlabel-swapspace.device

It just sort of hangs there for quite a while, then eventually finishes booting up.  Then, once I'm booted up, the swap is off and I have to turn it on manually via swapon.

It's sort of a pain in the butt.  Anyone know what's up?

Offline

#2 2013-04-22 18:54:33

Pacopag
Member
Registered: 2011-05-29
Posts: 287

Re: A start job is running for dev-disk-by\x2dlabel-swapspace.device

I guess this isn't a very common problem.  I can't seem to find anything about this on google.

I don't think this is a good fix, but I just changed the fstab entry

LABEL=swapspace  swap swap defaults 0 0  #or whatever label your swap has

to

/dev/sda5  swap swap defaults 0 0  #or whatever partition your swap is on

and it seems to boot up fine now.

Last edited by Pacopag (2013-04-22 18:55:03)

Offline

#3 2013-05-10 12:40:10

vkurup
Member
From: Chapel Hill, NC
Registered: 2012-11-02
Posts: 3
Website

Re: A start job is running for dev-disk-by\x2dlabel-swapspace.device

Thank you, this helped me. I was having a similar issue, using a UUID for my swapfile. Changing it from:

UUID=7db28ed4-aa17-4ec0-9619-853e11510ecf       none            swap         defaults  0 0

to

/swapfile       none            swap         defaults  0 0

fixed it.

Offline

#4 2013-05-14 16:13:49

Markus00000
Member
Registered: 2011-03-27
Posts: 323

Re: A start job is running for dev-disk-by\x2dlabel-swapspace.device

I have this problem also with non-swap partitions. It doesn't seem to prolong startup, but if I reboot soon after boot I get "A start job is running" messages blocking the reboot. Looking at my fstab, for example this line causes the problem:

UUID=<UUID> /media/usb ext4 rw,relatime,data=ordered,user,nofail 0 2

Adding a "noauto" "fixes" it.

Does anyone know what that "A start job" is?

Offline

#5 2013-05-14 17:46:44

Pacopag
Member
Registered: 2011-05-29
Posts: 287

Re: A start job is running for dev-disk-by\x2dlabel-swapspace.device

Is the problem resolved if you change the UUID to the corresponding device (e.g. /dev/sdb1)?  In your case I'm not sure if it would work because, at least on my system, usb devices can get assigned to sdb1 on one mount then the same device might be sdc1 on the next, etc.

Last edited by Pacopag (2013-05-14 17:47:24)

Offline

#6 2013-05-14 18:00:52

Markus00000
Member
Registered: 2011-03-27
Posts: 323

Re: A start job is running for dev-disk-by\x2dlabel-swapspace.device

The unreliable assignments (sdb becomes sdc and vice versa) have been the reason I switched to UUIDs. I also tried LABELs but that didn't resolve the problem. I tried to disable various start jobs (laptop-mode, preload and others) but failed to find the perpetrator.

Offline

#7 2013-05-14 18:04:31

Pacopag
Member
Registered: 2011-05-29
Posts: 287

Re: A start job is running for dev-disk-by\x2dlabel-swapspace.device

I'm curious why you have an fstab entry for usb device (maybe the device is for something other than mass storage?)  Have you tried udiskie or gvfs to automount?

Offline

#8 2013-05-14 18:12:30

Markus00000
Member
Registered: 2011-03-27
Posts: 323

Re: A start job is running for dev-disk-by\x2dlabel-swapspace.device

I didn't use auto-mounting initially, therefore I put some disks in my fstab. If I remember correctly, I didn't remove the entries when I noticed the drives would be auto-mounted where they were manually mounted before. I liked that. I guess those auto-mounters can be configured to use /media/<label> but I haven't bothered (yet).

At least we know that the problem can occur with swap and data partitions regardless whether they are mounted by label or by UUID.

Last edited by Markus00000 (2013-05-14 18:14:02)

Offline

#9 2013-05-14 18:29:21

Pacopag
Member
Registered: 2011-05-29
Posts: 287

Re: A start job is running for dev-disk-by\x2dlabel-swapspace.device

I think udiskie does mount to /media/<label>.

I like gvfs because it will detect the volume and list it in some file managers, but it won't mount the volume until it you click it.

What file manager do you use?

Last edited by Pacopag (2013-05-14 18:30:31)

Offline

#10 2013-05-14 18:44:49

Markus00000
Member
Registered: 2011-03-27
Posts: 323

Re: A start job is running for dev-disk-by\x2dlabel-swapspace.device

I think we should keep this thread on-topic to make it easier to read for others with the same problem. Sorry, if your questions are relevant to the start job problem and I just fail to see it. If so, keep asking.

(Occasionally I use Thunar or ranger. If you have further questions, feel free to use the "Email" link to ask. I'm looking into udiskie right now, thanks a lot for the hint!)

Offline

#11 2013-05-14 18:50:02

Pacopag
Member
Registered: 2011-05-29
Posts: 287

Re: A start job is running for dev-disk-by\x2dlabel-swapspace.device

Indeed.  You're right.

I hope udiskie does the trick for you.

Offline

#12 2014-01-26 20:41:14

koutheir
Member
From: Germany
Registered: 2013-11-07
Posts: 1

Re: A start job is running for dev-disk-by\x2dlabel-swapspace.device

I fixed this problem by changing the UUID that was generated in my /etc/fstab by the correct one.

I know my hard disk is /dev/sda. So I ask parted to show me the swap partition:
# sudo parted /dev/sda print free | grep swap
2      xxx  xxx   xxx  xxx  linux-swap(v1)

This means my swap partition is /dev/sda2. I check its UUID:
# ls -l /dev/disk/by-uuid | grep sda2
..... xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -> ../../sda2

So that is my correct swap partition UUID. I changed that in /etc/fstab. It seems to be generated wrongly during the Arch Linux installation (generated using "genfstab -U -p /mnt >> /mnt/etc/fstab"). Maybe someone could file a bug report after digging a bit more. Now it works, and no more boot delay, and "swapon -s" reports the swap space.

Last edited by koutheir (2014-01-26 20:42:20)

Offline

#13 2014-01-26 20:56:52

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: A start job is running for dev-disk-by\x2dlabel-swapspace.device

Are you using a swapfile or a swap partition? systemd should be able to find and activate swap partitions on its own.

Offline

#14 2014-10-25 15:45:38

arno13
Member
Registered: 2014-10-25
Posts: 1

Re: A start job is running for dev-disk-by\x2dlabel-swapspace.device

Hi all
I went across that same problem after editing my fstab file.
Here what has solved the issue for me : taking out a line describing how to mount an external drive that was unconnected at boot time.
The thing is, now I have to find a way to still mount it the way I want next time I plug it in.

Offline

#15 2015-08-28 17:04:48

puppylpg
Member
Registered: 2015-08-28
Posts: 2

Re: A start job is running for dev-disk-by\x2dlabel-swapspace.device

I think the only problem is the change of UUID of your disks/swapfile.
My situation is: I use "genfstab -U -p /mnt >> /mnt/etc/fstab" to generate a raw fstab file. My /dev/sda2 was used as swap at that time. Then after installing the OS, I delete and reformat my /dev/sda2, and put my /home directory on it.(Don't ask me why, just for fun. Knowledge comes from ZheTeng. =.= )I add new info about my /home to the fstab file. Then the problem occurs.

The key point is that after reformatting my /dev/sda2 disk, its UUID changed. However, the fstab file still use its former UUID, which caused the problem.

Way to do: use `lsblk -f` to view the new UUID and modify them to be correct ones in the fstab file.
Bingo!O(∩_∩)O~~

Offline

#16 2016-08-08 21:41:04

jblab
Member
Registered: 2016-08-08
Posts: 1

Re: A start job is running for dev-disk-by\x2dlabel-swapspace.device

I know I'm resurecting an old post, but adding noauto to the options of my swap in /etc/fstab did the trick for me on Debian Jessie.

Cheers

Offline

#17 2016-08-08 23:03:01

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

Re: A start job is running for dev-disk-by\x2dlabel-swapspace.device

Why would you knowingly necrobump a post with information about an unsupported distribution? Don't.


Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB