LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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 (default: /boot/grub/device.map).
-n, --no-floppy
Skip floppy detection.
-s, --probe-second-floppy
Also probe the second floppy drive.
-v, --verbose
Verbose mode.
-h, --help
Display help information.

INSTALL

sudo apt install grub-common
copy

CAVEATS

Mostly unnecessary today since GRUB generates a device map on the fly and identifies disks by UUID or label in grub.cfg. Still useful to override detection, such as when a partition or logical volume is used as a virtual machine's disk.

HISTORY

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

SEE ALSO

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid