A start job is running for dev disk by как исправить

Исправляем ошибку A start job is running for dev-disk-by, приводящую к долгой загрузке Linux.

Долгая загрузка Linux

Недавно столкнулся с тем, что при включении компьютера, система Elemntary OS стала загружаться вместо считанных секунд больше минуты.

Во время загрузки отображается логотип дистрибутива. Если нажать клавишу Esc, то можно увидеть лог загрузки. У меня выводилось следующее сообщение, и шел обратный отсчет секунд (90-секундный таймер, который и тормозил запуск):

A start job is running for dev-disk-byx2duuid-9e6e1490..device

Также чтобы просмотреть лог загрузки, можно воспользоваться командой:

cat /var/log/boot.log

У меня в логе были следующие сообщения:

[    **] A start job is running for dev-disk-byx2duuid-9e6e1490..
[ TIME ] Timed out waiting for device dev-disk-byx2duuid-9e6e1490..device.
[DEPEND] Dependency failed for /dev/disk/by-uuid/9e6e1490-3f0a-43a2-b06e-5f2e62a91a4f.
[DEPEND] Dependency failed for Swap.

Подобные сообщения означают, что система пытается подключить какой-либо раздел диска, но не может этого сделать. Чтобы исправить ситуацию необходимо отредактировать файл /etc/fstab.


Сначала выведите на экран информацию о разделах. Воспользуемся командой lsblk, которая выводит информацию о блочных устройствах в Linux:

lsblk -f

В моем случае вывод был следующим:

...
sda                                                        
├─sda7 swap           89451fcc-4edb-4f37-8b1a-cec7d6bd3d68 
├─sda5 ext4           b2ed2b09-b776-4e93-9147-db13dd23623a /
└─sda6 ext4           87b7470e-d9f5-4125-afe2-10fbaafb79f3 /home
...

Теперь откроем файл /etc/fstab для редактирования. Воспользуемся для этого редактором nano:

sudo nano /etc/fstab

У меня файл /etc/fstab выглядел так:

#                
# / was on /dev/sda5 during installation
UUID=b2ed2b09-b776-4e93-9147-db13dd23623a /               ext4    errors=remount-ro 0       1
# /home was on /dev/sda6 during installation
UUID=87b7470e-d9f5-4125-afe2-10fbaafb79f3 /home           ext4    defaults        0       2
# swap was on /dev/sda7 during installation
UUID=9e6e1490-3f0a-43a2-b06e-5f2e62a91a4f none            swap    sw              0       0

Вы должны проверить, что в данном файле нет записей о разделах диска, которые уже существуют или не используются. Если таковые имеются, то соответствующие записи нужно закомментировать (используя символ решетки #).

В моем случае ситуация была связана с тем, что для раздела swap в файле /etc/fstab указан неверный UUID. Изменение UUID произошло, когда я редактировал разделы диска для установки другого дистрибутива Linux. Поэтому я прописал для раздела swap верный UUID (UUID мы выводили выше командой lsblk -f).

Сохраните изменения и закройте файл. Теперь можно перезагрузить компьютер, если все было сделано правильно, то подобные сообщения больше не должны появляться.

Лайков: +5

Войдите, чтобы ставить лайкимне нравится

Смотрите также

  • Как узнать версию Linux
  • «Пара» слов о Solus 4.2 под KDE
  • Как отключить системный звук «Бип» (beep)
  • Сравнение систем инициализации (личный опыт)
  • Использование APT. Команды apt и apt-get
  • Объединение файлов командой cat
  • Добавление виртуальных хостов в Apache
  • Удаление программ в Ubuntu
  • Глючит правая кнопка мыши в Firefox
  • Поиск пакетов, содержащих определенный файл

Main Situation :

You need to check the UUID under those files (answered in details on other answers…)

/etc/crypttab 
/etc/fstab
/etc/grub.d/40_custom 
/boot/grub2/grub.cfg

Alternative Situation I — Udev :

This could be caused by udev if you have a rule script under /etc/udev/rules.d/ that is not meant to run at boot time, if the script fail it will make that fstab step go on forever, just edit your script to match your needs or delete it.

Alternative situation II — Crypted Dev :

Crypted partitions can be confusing because the main partition have an UUID and the mapped Decrypted one have an other UUID different from the main one for a single partition they have to be defined in different place etc/crypttab and /etc/fstab

# lsblk -o name,uuid,mountpoint
├─sda2                         727fa348-8804-4773-ae3d-f3e176d12dac
│ └─sda2_crypt (dm-0)          P1kvJI-5iqv-s9gJ-8V2H-2EEO-q4aK-sx4aDi

Real UUID need to be specified in etc/crypttab

# cat /etc/crypttab
sda2_crypt  UUID=727fa348-8804-4773-ae3d-f3e176d12dac  none  luks

Virtual UUID need to be at /etc/fstab

# cat /etc/fstab
UUID=P1kvJI-5iqv-s9gJ-8V2H-2EEO-q4aK-sx4aDi / ext4 defaults,errors=remount-ro 0 1

Alternative situation III — Ghost Dev :

A device that is setup to be mounted at boot time but is not present in the system or detached like an usb drive.

Checkout real connected devices with lsblk -o name,uuid,mountpoint and edit /etc/fstab to keep only the connected device
OR leave the unconnected device there but set them up to be ignored at boot with the option noauto and set the line like this

UUID=BLA-BLA-BLA /mount ext4 option,noauto,option 0 0

Checking the system logs

journalctl -ab 

systemd-analyze blame

systemd-analyze critical-chain

systemctl status dev-mapper-crypt_sda2.device

systemctl status systemd-udev-settle.service

Sources: Linuxhacks.org
Disclosure: I am the owner of Linuxhacks.org

EDIT:
This thread got a bit off topic as I found several errors with my system not relevant to the cause of this error for me. If you have this error at boot, I’ve summised the fix in the last post on the thread (post number 10), but double check this post too to see that you do have the same error first!
———————————————————————————————————————————-

Hi all,

So I finished my first ever Arch Linux install using the wiki beginners guide and other wiki pages, so just want to start with a big thank you to everyone who contributes and maintains the information; I’ve managed to get all set up with xfce and lxdm and get all my hardware working only having prior experience with Ubuntu/Ubuntu clones using just the wiki and one cry for help with my WiFi card, so you are doing a fantastic job!

My one remaining niggle is that when I boot, my boot pauses for 1min 30secs for ‘Job dev-disk-byx2duuid-b072209dx2d279ax2d41cdx’ before continuting as normal and seeming to work. using blkid, I’ve matched the UUID to my swap partition and I looked up the error messages:

$ journalctl -b
...
dev-disk-byx2duuid-b072209dx2d279ax2d41cdx2db4b3x2d16eab1a84d60.device: Job dev-disk-byx2duuid-b072209dx2d279ax2d41cdx
Timed out waiting for device dev-disk-byx2duuid-b072209dx2d279ax2d41cdx2db4b3x2d16eab1a84d60.device.
Dependency failed for /dev/disk/by-uuid/b072209d-279a-41cd-b4b3-16eab1a84d60.
Dependency failed for Swap.
swap.target: Job swap.target/start failed with result 'dependency'.
dev-disk-byx2duuid-b072209dx2d279ax2d41cdx2db4b3x2d16eab1a84d60.swap: Job dev-disk-byx2duuid-b072209dx2d279ax2d41cdx2d
dev-disk-byx2duuid-b072209dx2d279ax2d41cdx2db4b3x2d16eab1a84d60.device: Job dev-disk-byx2duuid-b072209dx2d279ax2d41cdx
...

Next I checked that my swap partition is working:

$ swapon && free
NAME      TYPE       SIZE USED PRIO
/dev/sdb9 partition 11.2G   0B   -1
              total        used        free      shared  buff/cache   available
Mem:       12190888      801380    10708160      181104      681348    11135672
Swap:      11718652           0    11718652

I was concerned that my swap may not be working because of the 0B used, so I decided to open a LOT of tabs in chromium and change swappiness to test my swap:

$ sudo sysctl vm.swappiness=100
vm.swappiness = 100

Give it a minute…

$ free
              total        used        free      shared  buff/cache   available
Mem:       12190888     1677076     9769028      142820      744784    10295964
Swap:      11718652           0    11718652

I also tried to hibernate the computer, but it just shutdown. I’m only guessing here, but it doesn’t seem like swap is working properly?

My fstab entry for swap is:

# Swap Partition /dev/sdb9
UUID=b072209d-279a-41cd-b4b3-16eab1a84d60       none    swap    defaults                                        0       0

Any help appreciated thanks all!

JJ

Last edited by Jj (2015-09-01 03:36:37)

I recently performed a VM disk resize, followed by a Gparted resize of /dev/sda1, followed by a dist-upgrade for Debian 8. I had to increase the VM disk size to accommodate the extra storage required for the upgrade.

Now, whenever I boot or reboot the VM, I get the following message along with its 1:30 second delay. The message is A start job is running for dev-disk-byx2duui...{UUID}.device.

enter image description here

Searching for terms like «Debian start job check disk» tells me Debian (and Linux) does not use tools like check disk :o

What do I need to do or run to stop this start job once and for all?

asked Sep 13, 2015 at 9:28

jww's user avatar

2

This message indicates a problem in /etc/fstab. Run the lsblk -f command to view a list of your devices and their UUIDs. Then make sure the entries in /etc/fstab are using the correct UUIDs.

When I encountered this problem, my /etc/fstab had an entry for a swap partition, but lsblk -f revealed that I had no swap partition! Removing that entry from /etc/fstab solved the problem.

Helpful link: A Start Job Is Running For dev-disk-by

answered Feb 19, 2016 at 15:34

Serp C's user avatar

Serp CSerp C

2082 silver badges6 bronze badges

2

Автор Palamar, 27 февраля 2017, 12:23:16

« назад — далее »

0 Пользователи и 1 гость просматривают эту тему.


Отключили/умер диск/раздел прописанный в fstab.

Следующая тема с подобным названием автоматически улетит в корзину.


Цитата: qupl от 27 февраля 2017, 12:30:47Отключили/умер диск/раздел прописанный в fstab.

Следующая тема с подобным названием автоматически улетит в корзину.

диск работает с ним всё норм,возможно это как-то исправить?


Cообщение объединено 27 Февраля 2017, 13:22:29


это случилось после установки драйвера на радеон.


Cообщение объединено 27 февраля 2017, 13:24:28


https://wiki.debian.org/ru/AtiHowTo


cat /etc/fstab
blkid
fdisk -l



Palamar, не видит раздел, который у вас монтировался в /dos . Сейчас он у вас отсутствует (по прежнему UUID). Приведите в соответствие записи в fstab с теми разделами, которые есть сейчас.


Цитата: qupl от 27 февраля 2017, 13:56:08Приведите в соответствие записи в fstab с теми разделами, которые есть сейчас.

я в этом ещё не совсем разбираюсь,не подскажете как это сделать?
кстати dos я ковырял после того как проблема началась,думал уже 7-ку ставить
из-за этого я не могу загрузится?


Palamar, извините я скриншоты в текст переводить не умею, так что придется немного включить руки и голову.  Закомментируйте в fstab строчку с разделом /dos


Цитата: qupl от 27 февраля 2017, 14:05:38Palamar, извините я скриншоты в текст переводить не умею, так что придется немного включить руки и голову.  Закомментируйте в fstab строчку с разделом /dos

люблю Вас,всё заработало. ;)
мне сейчас раздел dos просто пересоздать?fstab перезапишется и всё норм будет?


Цитата: Palamar от 27 февраля 2017, 14:13:12мне сейчас раздел dos просто пересоздать?fstab перезапишется и всё норм будет?

Если он у вас есть и отформатирован как надо, не нужно его пересоздавать. Замените в fstab его UUID на правильный (в выводе blkid он должен быть, если диск/раздел подключен)


  • Русскоязычное сообщество Debian GNU/Linux


  • Общие вопросы

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

Понравилась статья? Поделить с друзьями:
  • A socket error occurred during the download test a firewall could be blocking
  • A snapshot error occurred while scanning this drive run an offline scan and fix
  • A signed resource has been added modified or deleted сбербанк ошибка
  • A signed resource has been added modified or deleted как исправить
  • A severe error occurred on the current command the results if any should be discarded