How do I regenerate a GRUB device.map file?

Updated -

After hardware or hardware settings changed, you may sometimes need to force GRUB to rescan devices. To have GRUB rescan all of the devices and regenerate the /boot/grub/device.map, do the following:

  1. If the device.map already exists, move it to device.map.bak

     mv /boot/grub/device.map /boot/grub/device.map.bak
    

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content