Ошибка dracut initqueue timeout CentOS 7 может встретиться вам при установке последних версий CentOS с флешки или ISO-образа. Сначала может показаться, что образ системы неверно загружен с интернета. Но это не так, с образом всё в порядке. Проблема кроется в методе записи образа на съемный носитель.
Если вы используете специальную утилиту для записи, то проблемы может и не быть, но при обычной распаковке файлов образа на флешку она очень часто встречается. В этой статье мы рассмотрим, как исправить ошибку centos dracut initqueue timeout и успешно установить CentOS.
Ошибка выглядит следующим образом. Сначала система очень долго грузится:
Если отключить заставку и перейти в текстовый режим, то вы увидите надпись «starting dracut initqueue hook», такая надпись будет показываться несколько минут:
А затем на экран будет выведено очень много строк с надписью «dracut initqueue timeout starting timeout scripts» и система перейдёт в режим восстановления:
Эта ошибка возникает потому, что загрузочный скрипт не может найти основные файлы системы и соответственно не может ничего загрузить. В конфигурационном файле grub нашего образа указано место, где надо искать эти файлы:
inst.stage2=hd:LABEL=CentOSx207x20x86_64
И если бы флешка была записана программой, то она бы имела метку CentOSx207x20x86_64, и тогда бы всё работало.
Чтобы исправить ошибку, можно записать образ на флешку с помощью любой из программ записи образов, например Etcher, или исправить метку в загрузчике. Второй способ сложнее, но он позволяет решить проблему, даже не загружая основную операционную систему.
В режиме восстановления, который открылся после возникновения ошибки, наберите blkid:
blkid
Здесь мы видим, что у раздела /dev/sdd1, на который записана CentOS, метка DATA. Эту метку надо запомнить. Теперь перезагружаем систему:
reboot
В меню выбора варианта загрузки Grub нажмите на первом пункте клавишу E:
В строке запуска ядра найдите опцию inst.stage2=hd:LABEL=CentOSx207x20x86_64 и замените метку CentOSx207x20x86_64 на DATA:
Затем нажмите F10 или Ctrl+X для продолжения загрузки. Теперь система запустится нормально, и вы сможете продолжить установку:
Выводы
В этой небольшой статье мы разобрали, как исправить ошибку «dracut initqueue timeout» CentOS 7, как видите, проблема вполне решаема. Если у вас остались вопросы, спрашивайте в комментариях.
Обнаружили ошибку в тексте? Сообщите мне об этом. Выделите текст с ошибкой и нажмите Ctrl+Enter.
Статья распространяется под лицензией Creative Commons ShareAlike 4.0 при копировании материала ссылка на источник обязательна .
Об авторе
Основатель и администратор сайта losst.ru, увлекаюсь открытым программным обеспечением и операционной системой Linux. В качестве основной ОС сейчас использую Ubuntu. Кроме Linux, интересуюсь всем, что связано с информационными технологиями и современной наукой.
-
GoodBytes
- Posts: 7
- Joined: 2017/09/04 18:02:11
Change VM — ‘Warning: dracut-initqueue timeout’ at startup
Hello everyone,
I have CentOS 7 installed with VMWare, and I would like to change the VM to VirtualBox. I have done so, however CentOS7 refuses to boot successfully.
Clean install of the OS is not an option as it contains days of works setting it up.
When I start my VM under Virtual Box, instead of booting successfully to Gnome as expected and configured, it fails with the following error:
dracut-initqueue[259]: Warning: dracut-initqueue timeout
Warning: /dev/centos/root does not exist
Warning: /dev/centos/swap does not exist
Warning: /dev/mapper/centos-root does not exist
To be more exact:
- boot.PNG (34.17 KiB) Viewed 168779 times
Here is what I tried:
- Boot from CentOS 7 installation ISO disk
- Hit Escape to get to the «Boot:» command, and executed: «linux rescue» command
- Wait until it loads, and then pick Option 1 (Continue) to get to the shell.
- s1.PNG (27.16 KiB) Viewed 168779 times
- Executed the following set of commands
Code: Select all
mount --bind /proc /mnt/sysimage/proc mount --bind /dev /mnt/sysimage/dev mount --bind /sys /mnt/sysimage/sys chroot /mnt/sysimage dracut -f exit cd / sync telinit 6
This sadly had no affect.
It must be noted that everything seems to be executed successfully, beside «dracut -f» where I am getting:
Kernel version 3.10.0-514.e17.x86_64 has no module directory /lib/modules/3.10.0-514.e17x86_64
Failed to install module vmxnet3
My assumption is that ‘vmxnet3’ is a VMWare driver and that is screwing it up with the startup. Is this correct? And, if that is the case how do I remove it?
-
Основатель и администратор сайта losst.ru, увлекаюсь открытым программным обеспечением и операционной системой Linux. В качестве основной ОС сейчас использую Ubuntu. Кроме Linux, интересуюсь всем, что связано с информационными технологиями и современной наукой.