1installgrub(1M)         System Administration Commands         installgrub(1M)
2
3
4

NAME

6       installgrub - install GRUB in a disk partition or a floppy
7

SYNOPSIS

9       /sbin/installgrub [-fm] stage1 stage2 raw-device
10
11

DESCRIPTION

13       The  installgrub  command is an x86-only program. GRUB stands for GRand
14       Unified Bootloader.
15
16
17       installgrub installs GRUB stage 1 and stage 2 files on the boot area of
18       a  disk  partition.  If you specify the -m option, installgrub installs
19       the stage 1 file on the master boot sector of the disk.
20

OPTIONS

22       The installgrub command accepts the following options:
23
24       -f    Suppresses interaction when overwriting the master boot sector.
25
26
27       -m    Installs GRUB stage1 on the master boot sector interactively. You
28             must  use this option if Solaris is installed on an extended par‐
29             tition.
30
31

OPERANDS

33       The installgrub command accepts the following operands:
34
35       stage1        The name of the GRUB stage 1 file.
36
37
38       stage2        The name of the GRUB stage 2 file.
39
40
41       raw-device    The name of the device onto which  GRUB  code  is  to  be
42                     installed. It must be a character device that is readable
43                     and writable. For disk devices, specify the  slice  where
44                     the  GRUB  menu  file  is located. (For Solaris it is the
45                     root slice.) For a floppy disk, it is /dev/rdiskette.
46
47

EXAMPLES

49       Example 1 Installing GRUB on a Hard Disk Slice
50
51
52       The following command installs GRUB on a system where the root slice is
53       c0d0s0:
54
55
56         example# /sbin/installgrub /boot/grub/stage1 \
57                  /boot/grub/stage2 /dev/rdsk/c0d0s0
58
59
60       Example 2 Installing GRUB on a Floppy
61
62
63       The following command installs GRUB on a formatted floppy:
64
65
66         example# mount -F pcfs /dev/diskette /mnt
67         # mkdir -p /mnt/boot/grub
68         # cp /boot/grub/* /mnt/boot/grub
69         # umount /mnt
70         # cd /boot/grub
71         # /sbin/installgrub stage1 stage2 /dev/rdiskette
72
73

FILES

75       /boot/grub    Directory where GRUB files reside.
76
77

ATTRIBUTES

79       See attributes(5) for descriptions of the following attributes:
80
81
82
83
84       ┌─────────────────────────────┬─────────────────────────────┐
85       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
86       ├─────────────────────────────┼─────────────────────────────┤
87       │Availability                 │SUNWcsu                      │
88       ├─────────────────────────────┼─────────────────────────────┤
89       │Interface Stability          │Uncommitted                  │
90       └─────────────────────────────┴─────────────────────────────┘
91

SEE ALSO

93       boot(1M), fdisk(1M), fmthard(1M), kernel(1M), attributes(5)
94

WARNINGS

96       Installing  GRUB  on  the  master boot sector (-m option) overrides any
97       boot manager currently installed on the machine. The system will always
98       boot the GRUB in the Solaris partition regardless of which fdisk parti‐
99       tion is active.
100
101
102
103SunOS 5.11                        2 Jul 2009                   installgrub(1M)
Impressum