Linux Commands Examples

A great documentation place for Linux commands


set up a device to boot using GRUB

see also : grub-install - grub-mkimage - grub-mkrescue


grub-bios-setup [OPTION...] DEVICE

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


biosdisk ext2 part_msdos || exit 1
grub-bios-setup --verbose --directory=/boot/grub/i386-pc --device-map=/boot/grub/ /dev/$HDDEV
biosdisk ext2 part_msdos || exit 1
grub-bios-setup --verbose --directory=/boot/grub/i386-pc /dev/$HDDEV
echo "CONFIGURING GRUB (running grub-mkconfig in chroot)"
grub_setup="${sbindir}/`echo grub-bios-setup | sed ${transform}`"
if test "x$grub_setup" = x && [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" = "sparc64-ieee1275" ]; then


Set up images to boot from DEVICE.

You should not normally run this program directly. Use grub-install instead.
, --allow-floppy

make the drive also bootable as floppy (default for fdX devices). May break on some BIOSes.

-b, --boot-image=FILE

use FILE as the boot image [default=boot.img]

-c, --core-image=FILE

use FILE as the core image [default=core.img]

-d, --directory=DIR

use GRUB files in the directory DIR [default=/boot/grub]

-f, --force

install even if problems are detected

-m, --device-map=FILE

use FILE as the device map [default=/boot/grub/]

-s, --skip-fs-probe

do not probe for filesystems in DEVICE

-v, --verbose

print verbose messages.

-?, --help

give this help list


give a short usage message

-V, --version

print program version

Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options.

DEVICE must be an OS device (e.g. /dev/sda).

reporting bugs

Report bugs to <bug-grub[:at:]gnu[:dot:]org>.

see also

grub-install , grub-mkimage , grub-mkrescue

The full documentation for grub-setup is maintained as a Texinfo manual. If the info and grub-setup programs are properly installed at your site, the command

info grub-setup

should give you access to the complete manual.

How can this site be more helpful to YOU ?

give  feedback