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

ADVERTISEMENTS

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

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
30 comments… add one
  • Huffers Aug 31, 2006 @ 16:15

    the answer is slightly wrong – you should use “–recheck” rather than “-recheck”

  • Huffers Aug 31, 2006 @ 16:16

    thats two dashes you should use (on my monitor it looks like one)

  • 🐧 nixCraft Aug 31, 2006 @ 18:54

    Huffers

    Dam html .. sorry for trouble I just put code tag around command.

    Appreciate your post.

  • Novice Linux User Oct 20, 2006 @ 14:07

    This is AWESOME HELP, THANK YOU.

    I am a newbie to Linux, have put it off for about two years.

    Spent three days with trying to reconfigure GRUB, internet search require EXTREMELY focussed searches to find articles like this. SAD, but true. Alls I could do is REINSTALL the ENTIRE LINUX OS, EACH TIME MY GRUB went bad. What an idiotic approach, to a simple problem.

    ClEAR IT ALL OUT in 3 steps:
    1) fdisk /mbr

  • 🐧 nixCraft Oct 20, 2006 @ 19:40

    Glad to know you liked our solution.

    Appreciate your post.

  • Igorf Jan 2, 2007 @ 9:12

    Thank You for Your help!

  • mrwiggles Jan 8, 2007 @ 3:43

    Thanks for the info! saved me a bunch of time :)

  • Polygon Jan 9, 2007 @ 13:22

    thank you for this, it helped me solve my problem with this error. Im bookmarking this page :D

  • Patrick B Jan 14, 2007 @ 3:54

    I have the same problem but when I do grub-install –recheck /dev/hda I get:

    The file /boot/grub/stage1 not read correctly

    I removed the file and I get the same error

  • 🐧 nixCraft Jan 14, 2007 @ 23:12

    Make sure you are using correct device name.

  • attila Jul 3, 2007 @ 21:36

    another thanks for here…

  • teak Sep 23, 2007 @ 8:20

    hmmm…
    i tried this and i still get
    /dev/sda1 does not have any corresponing BIOS drive

    not too sure what to do other than reinstalling debian…

  • Green Oct 26, 2007 @ 13:14

    Cheers, this one had me scratching my head for some time

  • rlouvot Dec 12, 2007 @ 11:09

    THANKS a lot. This simple option is the end of many days of discouragement !

  • Calin Damian Dec 18, 2007 @ 21:56

    If you are using devfs you will have no files under /dev in a rescue environment so this why you are getting this message:
    /dev/sda1 does not have any corresponing BIOS drive

    You may check if this is your case by mounting your root filesystem and issuing
    ls /dev
    you will have no files here

    or
    cat /etc/fstab
    and you will see devfs there :)

    As an workaround you may create temporarily devices with mknod

    Check

    Cheers,
    C.

  • she Dec 24, 2007 @ 22:03

    Yeah… this helped me too, thanks!

    PS: weird when google is better than official docu on this…

  • Deb Feb 3, 2008 @ 5:28

    Very nice. I had this problem because I was trying to use a Gentoo live CD to recover a Ubuntu install (after reinstalling Vista (blech)). Gentoo mapped the drives in a different order and made it so my real HD didn’t correspond to a BIOS drive.

  • Prashanth Jun 15, 2009 @ 8:44

    Thanks a lot…. It works fine…..

  • Federico Jul 10, 2009 @ 11:14

    THANKS A LOT!

  • alireza sadeh seighalan Aug 10, 2009 @ 5:45

    hi dear

    I check your tutorial i found that –recheck is correct.thanks for your kind of help.

  • alireza sadeh seighalan Aug 10, 2009 @ 5:47

    hi dear

    sorry I have typed wrong.I check your tutorial i found that –recheck is correct.thanks for your kind of help.

  • shterio Oct 9, 2009 @ 16:30

    Thanks it was a nice tip, it let me continue my work

    Cheers

  • Czajnick Mar 21, 2010 @ 1:59

    I had exactly the same problem. I found this topic after entering the error message in the search field. But when I run grub-install with “–recheck” parameter, another error appeared: “Buffer I/O error on device fd0, logical block 0”. I managed to solve the problem myself. This did the trick for me:

    sudo grub-install –no-floppy –recheck /dev/sda

  • Varrah Aug 3, 2010 @ 7:56

    Thanks for the solution!

  • umpirsky Jun 12, 2011 @ 17:44

    Still problems for me:

    [code]
    grub-install –recheck /dev/sda
    Probing devices to guess BIOS drives. This may take a long time.
    Unknown partition table signature
    Could not find device for /boot: Not found or not a block device.
    [/code]

    • Kalantas Gardens Aug 4, 2011 @ 13:12

      Same here:

      Could not find device for /boot: Not found or not a block device.

      • Kalantas Gardens Aug 10, 2011 @ 9:54

        The problem is simple. I already have a working system which is a Debian Squeeze. I need to restore it to another computer (same specification) after restore — I got this error.

        I’m sure there’s a better way or another way of solving this. Below is what solved mine:

        1. Use Parted Magic on the restored computer.
        2. Run the Super Grub 2 once Parted Magic has booted.
        3. Choose the one with the (……mbr…. something) option
        4. The above will give you a choice to run a system choose it to run.
        5. This opens up my Debian Desktop install and I am able to use it normally.
        6. Now open a terminal and run as root to run the command
        #grub-install –recheck /dev/sda
        7. reboot

        Number 6 will install the right grub — and you have your restore/clone computer.

  • jalal hajigholamali Aug 3, 2011 @ 16:21

    thanks for nice info

  • Patrick Aug 8, 2011 @ 20:54

    I’m getting this error:
    “Error 6: Mismatched or corrupt version of stage1/stage2”

    I’ve been researching google on this for HOURS now, just about ready to pull my hair out. Suggestions?

  • Ben Aug 10, 2011 @ 7:01

    Thanks for this solution.

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.