Difference between revisions of "How to fix GRUB initramdisk"

From HyperSecurity Wiki
Jump to: navigation, search
 
Line 11: Line 11:
  
 
This will update the initramfs as well as the grub.cfg file to match the new initrd. Reboot to confirm grub and booting is fixed.
 
This will update the initramfs as well as the grub.cfg file to match the new initrd. Reboot to confirm grub and booting is fixed.
 +
 +
RedHat:
 +
 +
https://wiki.centos.org/TipsAndTricks/CreateNewInitrd

Revision as of 00:03, 1 February 2016

When converting a physical live machine to vmware using vmware converter, there can be issues with booting due to how vmware recreates the initrd and grub.cfg. To fix this, do the following:

System Rescue CD Download

Boot the live CD and press option "E" to boot the / (root) parition

Once booted to a full OS, login to the OS as root and run the following in order:

update-initramfs -t -k all -u
update-grub 

This will update the initramfs as well as the grub.cfg file to match the new initrd. Reboot to confirm grub and booting is fixed.

RedHat:

https://wiki.centos.org/TipsAndTricks/CreateNewInitrd