﷽
During conversion process of my running system from Hervester HCI to VMWare ESX, we experiencing the following error at progress 97%, the error messages is :
"An error occurred during the conversion: 'GrubInstaller::InstallGrub: ..."
The system is indeed already converted and ready on VMWare, but still it's unbootable, because the Grub is corrupted, eventough the rest of the files insyaAllah remain safe ... so ?
Here is the solution that might help you fix the error :
1. Boot the converted system (the one that unbootable) using Linux Live CD ( I use Kubuntu ).
2. Goto Shell/ Terminal /Command prompt, and then perform the following :
- Check available disk partition : sudo fdisk -l
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 87889919 87887872 41.9G 83 Linux
/dev/sda2 87891966 104855551 16963586 8.1G 5 Extended
/dev/sda5 87891968 104855551 16963584 8.1G 82 Linux swap / Solaris
- Check and show block device : sudo blkid
/dev/sda1: UUID="034aa43c-49af-4bf9-8fd4-18a08b2a844e" TYPE="ext4" PARTUUID="23e4b144-01"
/dev/sda5: UUID="e0b4f178-6d50-476a-9422-e8481f9ab9d6" TYPE="swap" PARTUUID="23e4b144-05"
/dev/sdb: UUID="2022-02-27-03-44-52-00" LABEL="cidata" TYPE="iso9660"
- Mount target partition (in my case is /dev/sda1) : sudo mount /dev/sda1 /mnt
- Mount recursively /dev /proc /sys to /mnt :
sudo mount --rbind /dev /mnt/dev
sudo mount --rbind /proc /mnt/proc
sudo mount --rbind /sys /mnt/sys
- Chroot to /mnt : sudo chroot /mnt bash
- Reinstall Grub, and make sure it's pointed to the correct harddrive, not a spesific partition (in my case is /dev/sda) : grub-install /dev/sda
***only if failed add boot directory : grub-install --boot-directory=/mnt/boot /dev/sda
- Update Grub : update-grub
- Restart the system.
*** Don't forget to adjust UUID in /etc/fstab & /boot/grub/grub.cfg to match information from blkid, to avoid system is running on read-only.
Hopefully this information helps to fix your issue.
No comments:
Post a Comment