LinuxCommandLibrary

grub-mkdevicemap

create GRUB device mapping file

TLDR

Generate device map

$ sudo grub-mkdevicemap
copy
Specify output file
$ sudo grub-mkdevicemap -m /boot/grub/device.map
copy
Verbose output
$ sudo grub-mkdevicemap -v
copy

SYNOPSIS

grub-mkdevicemap [options]

DESCRIPTION

grub-mkdevicemap creates a device map file for GRUB that maps BIOS drive numbers to Linux device names. The device map helps GRUB understand disk ordering.
The map is automatically generated but can be customized for special configurations where disk ordering needs to be explicitly controlled.

PARAMETERS

-m, --device-map FILE

Output device map file.
-n, --no-floppy
Skip floppy detection.
-v, --verbose
Verbose mode.
--help
Display help information.

CAVEATS

Deprecated in GRUB 2. May be needed for legacy setups. Disk order detection may vary.

HISTORY

grub-mkdevicemap was developed as part of GNU GRUB for device mapping between BIOS and Linux.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community