Error /dev/hdX does not have any corresponding BIOS drive and Solution

Q. After windows XP installation I lost my Grub boot loader and now when I try to run grub-install command to restore Grub in master boot record. But I am getting an error that read as follows:
/dev/sda does not have any corresponding BIOS drive

How do I fix this problem?

A. grub-install is use to install GRUB on your drive. If you are getting error try to recheck device map.

Type the command as follows:
# grub-install --recheck /dev/sdaWhere,

  • –recheck: Probe a device map even if it already exists
  • /dev/sda : Replace /dev/sda with your actual device name.

Above command should fix the problem.

See also

Posted by: SXI ADMIN

The author is the creator of SXI LLC and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.