Artificial intelligent assistant

Error booting Linux. Root and swap does not exist I imported a VM with Oracle Linux 7.5 into XenServer but when I boot the linux the following error appears: dracut-initqueue[296]: Warning: Could not boot. dracut-initqueue[296]: Warning: /dev/ol/root does not exist dracut-initqueue[296]: Warning: /dev/ol/swap does not exist Warning: /dev/mapper/ol-root does not exist Warning: /dev/ol/root does not exist Warning: /dev/ol/swap does not exist Generating "/run/iniramfs/rdsosreport.txt" Entering emergency mode. Exit the shell to continue. Type "journalctl" to view system logs dracut:/# I rebooted and went into rescue mode, then typed dracut -f, but it did not work I need to recover the boot and I do not have the live cd. How can I do that?

You are most likely experiencing this.

Try running:


dracut --regenerate-all -f && grub2-mkconfig -o /boot/grub2/grub.cfg


This will rebuild `initramfs` and solve naming issues in block devices (`/dev/sda1` might now be `/dev/xvde1` or something similar).

It has saved me when migrating to OracleVM from VMWare.

More info on dracut here.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 99a5084b3e820e5da53b912c34b532b8