Slow boot - "a start job is running for dev-disk-by..."

Asked 6 years, 9 months ago
Viewed 306k times
 
173

I don't recall when the issue started to occur but it's likely when I moved my VMWare Ubuntu image to an external SSD so that I can use the OS on any of my PCs. There aren't many links on Google about the issue but the ones that appear talk about fstab. For example, Slow boot - What is "A start job is running for dev-disk-by..." ? - OpenSUSE Forum.

Screenshot

Mentions having to delete the swap partition and creating it again.

I can try to do this with Gparted but my main concern is losing my current set up in Ubuntu as I'm not entirely sure what will happen if I mess with swap as suggested in the thread. Anyone able to help?

15 Answers

170
 

If you get

A start job is running for dev-disk-by...

followed by a 90 second delay during each boot, complete the following steps:

  1. Install GParted using the Software Center

  2. Open GParted and see what partitions Ubuntu is currently using

  3. Edit the fstab file using the line below.

    sudo -H gedit /etc/fstab

  4. If you have a device that you are not currently using, insert a # and a space at the beginning of that line comment it out.

  5. If you have an external device configured to automount (usually with a nofail option in it), add this to the option to the device: x-systemd.device-timeout=1ms. This sets the wait time of the device to be mounted on boot time to 1ms of the default 90 seconds. Example:

/dev/sdg1        /media/backup    jfs    nofail,x-systemd.device-timeout=1ms    0 0
  1. Save the fstab file (it would be nice to save a backup beforehand). Test your fstab file by running mount -a. If any syntax error occurs, it would be shown by this command.

  2. Reboot and the start job shouldn't appear again.

posted on   zxddesk  阅读(71)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· 没有源码,如何修改代码逻辑?
· PowerShell开发游戏 · 打蜜蜂
· 在鹅厂做java开发是什么体验
· WPF到Web的无缝过渡:英雄联盟客户端的OpenSilver迁移实战

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8
点击右上角即可分享
微信分享提示