deleting WIN PAR brought system to grub rescue
Posted: 2024/03/21 20:51:57
Hello.
I was converting a dual boot centos7/win10 to a centos 7 ONLY system with its contents kept installed on the linux side.
i used gparted to resize NTFS partition as the linux disk could not interface with it. It when got brought to the type "extended".
using "lvextend /dev/cl/root -l100%FREE" command didnt work, so I used linux disk to delete the extended type.
Now system is in grub rescue and cant boot. im certain i didnt mess with the root partition.
booting with live usb into rescue centos mode and gaining a shell i read about a command "chroot /mnt/sysimage /bin/bash" but gets error "chroot: failed to run command /bin/bash".
also, under /boot I cant see a grub.cfg
doing grub2-install /dev/sda it responds with error usr/lib/grub/i386-pc/modinfo.sh doesnt exist.
please help. can provide with more info if needed
I was converting a dual boot centos7/win10 to a centos 7 ONLY system with its contents kept installed on the linux side.
i used gparted to resize NTFS partition as the linux disk could not interface with it. It when got brought to the type "extended".
using "lvextend /dev/cl/root -l100%FREE" command didnt work, so I used linux disk to delete the extended type.
Now system is in grub rescue and cant boot. im certain i didnt mess with the root partition.
booting with live usb into rescue centos mode and gaining a shell i read about a command "chroot /mnt/sysimage /bin/bash" but gets error "chroot: failed to run command /bin/bash".
also, under /boot I cant see a grub.cfg
doing grub2-install /dev/sda it responds with error usr/lib/grub/i386-pc/modinfo.sh doesnt exist.
please help. can provide with more info if needed