recover grub centos 6 ( not working )
recently i install windows on my system knowing that i can recover grub easily.:doh:
so i setup a usb stick with centos 6 netinstall x64
i started rescue installed system, when asked for rescue image i selected /dev/sda1 ( where centos is installed )
and then i started the shell
after reboot i see windows logo ... starting
and i feel like this :banghead:
any suggestions ?
i'm i doing something wrong ?
Boot into single user using CD.
Mount the filesystems (including proc and sys)
chroot into your system
root (hd0,0) # change accordingly to your setup
If you get errors that hd0 does not exist for example, you could change the device.map file to map hd0 (or another name) to an actual drive (for example sda).
Be careful with doing this!
because i was to cocky about my knowledge i didn't even run fdisk -l knowing that /dev/sda1 can't change wonce the OS is installed, but apparently i was so wrong :(
the correct path was /dev/sdb1.
i solved the problem, thanks for the support,
|All times are GMT -5. The time now is 07:41 PM.|