Name

map

Synopsis

                     map 
                     to from
                  

Map the from drive to the to drive. You need to do this when chainloading an operating system such as Windows, if it is not on the first drive. For example, if Windows is on (hd1):

grub> map (hd0) (hd1)
grub> map (hd1) (hd0)

This swaps the mappings of the first and second hard drives, tricking Windows into thinking it’s on the first drive so it can boot.

Get Linux in a Nutshell, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.