2 .\" Copyright 2015 Nexenta Systems Inc.
3 .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved
4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
5 .\" See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with
6 .\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
7 .TH INSTALLGRUB 1M "Jan 14, 2015"
9 installgrub \- install GRUB in a disk partition or a floppy
13 \fB/sbin/installgrub\fR [\fB-fm\fR] \fIstage1\fR \fIstage2\fR \fIraw-device\fR
18 The \fBinstallgrub\fR command is an x86-only program. GRUB stands for GRand
22 \fBinstallgrub\fR installs GRUB stage 1 and stage 2 files on the boot area of a
23 disk partition. If you specify the \fB-m\fR option, \fBinstallgrub\fR installs
24 the stage 1 file on the master boot sector of the disk.
27 The \fBinstallgrub\fR command accepts the following options:
34 Suppresses interaction when overwriting the master boot sector.
43 Installs GRUB \fIstage1\fR on the master boot sector interactively. You must
44 use this option if Solaris is installed on an extended FDISK or an EFI/GPT
50 The \fBinstallgrub\fR command accepts the following operands:
57 The name of the GRUB stage 1 file.
66 The name of the GRUB stage 2 file.
72 \fB\fIraw-device\fR\fR
75 The name of the device onto which GRUB code is to be installed. It must be a
76 character device that is readable and writable. For disk devices, specify the
77 slice where the GRUB menu file is located. (For Solaris it is the root slice.)
78 For a floppy disk, it is \fB/dev/rdiskette\fR.
83 \fBExample 1 \fRInstalling GRUB on a Hard Disk Slice
86 The following command installs GRUB on a system where the root slice is
92 example# /sbin/installgrub /boot/grub/stage1 \e
93 /boot/grub/stage2 /dev/rdsk/c0d0s0
98 \fBExample 2 \fRInstalling GRUB on a Floppy
101 The following command installs GRUB on a formatted floppy:
106 example# mount -F pcfs /dev/diskette /mnt
107 # mkdir -p /mnt/boot/grub
108 # cp /boot/grub/* /mnt/boot/grub
111 # /sbin/installgrub stage1 stage2 /dev/rdiskette
118 \fB\fB/boot/grub\fR\fR
121 Directory where GRUB files reside.
126 See \fBattributes\fR(5) for descriptions of the following attributes:
134 ATTRIBUTE TYPE ATTRIBUTE VALUE
136 Interface Stability Uncommitted
141 \fBboot\fR(1M), \fBfdisk\fR(1M), \fBfmthard\fR(1M), \fBkernel\fR(1M),
145 Installing GRUB on the master boot sector (\fB-m\fR option) overrides any boot
146 manager currently installed on the machine. The system will always boot the
147 GRUB in the Solaris partition regardless of which \fBfdisk\fR partition is