Warning: /dev/root does not exist while installing centos 7

While installing centos 7, You may encounter error like “Warning: /dev/root does not exist”.

*> dracut-initqueue[685]: Warning: Could not boot
> dracut-initqueue[685]: Warning: /dev/root does not exist*

To fix this, when the dracut shell becomes available, create a directory:

mkdir /mnt/

Mount different block devices until you have found the one that contains the ISO. Once you find the /dev/ for the USB (for instance, if your system reads it virtual cd drive as /dev/sr0), perform the command blkid on the device:

blkid /dev/sr0

Reboot the server and when the installer menu is shown, press tab to edit the installation parameters

The line will look like

vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=CentOS\x207\x20x86_64 quiet nomodeset

Delete the label part and add the drive like the one below

vmlinuz initrd=initrd.img inst.stage2=hd:/dev/sr0  nomodeset

In this server, /dev/sr0 holds the virtual cd rom. Remove quiet if not needed and add nomodeset for especially Intel AMT boards.

Get more stuff like this
in your inbox

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Reply

Your email address will not be published. Required fields are marked *

Get more stuff like this
in your inbox

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.