Lines Matching refs:grub
4 @setfilename grub.info
23 * GRUB: (grub). The GRand Unified Bootloader
24 * grub-install: (grub)Invoking grub-install. Install GRUB on your drive
25 * grub-md5-crypt: (grub)Invoking grub-md5-crypt. Encrypt a password
27 * grub-terminfo: (grub)Invoking grub-terminfo. Generate a terminfo
30 * grub-set-default: (grub)Invoking grub-set-default. Set a default boot
32 * mbchk: (grub)Invoking mbchk. Check for the format of a Multiboot kernel
117 * Invoking the grub shell:: How to use the grub shell
118 * Invoking grub-install:: How to use the GRUB installer
119 * Invoking grub-md5-crypt:: How to generate a cryptic password
120 * Invoking grub-terminfo:: How to generate a terminfo command
121 * Invoking grub-set-default:: How to set a default boot entry
182 Besides the GRUB boot loader itself, there is a @dfn{grub shell}
183 @command{grub} (@pxref{Invoking the grub shell}) which can be run when
472 using the utility @command{grub-install} (@pxref{Invoking
473 grub-install}) on a UNIX-like OS, or by running GRUB itself from a
482 @file{/usr/lib/grub/i386-pc}. If you do not use grub-install, then
484 @file{*stage1_5} to the directory @file{/boot/grub}, and run the
485 @command{grub-set-default} (@pxref{Invoking grub-set-default}) if you
488 initially placed (normally @file{/usr/lib/grub/i386-pc}) will be
490 loader needs to find them (usually @file{/boot/grub}) will be called
496 * Installing GRUB using grub-install::
516 # @kbd{cd /usr/lib/grub/i386-pc}
547 grub-install}.
557 grub> @kbd{root (hd0,0)}
564 grub> @kbd{find /boot/grub/stage1}
567 This will search for the file name @file{/boot/grub/stage1} and show the
574 grub> @kbd{setup (hd0)}
583 grub> @kbd{setup (hd0,0)}
595 @node Installing GRUB using grub-install
596 @section Installing GRUB using grub-install
608 as @sc{gnu}), invoke the program @command{grub-install} (@pxref{Invoking
609 grub-install}) as the superuser (@dfn{root}).
618 # @kbd{grub-install /dev/hda}
624 # @kbd{grub-install /dev/hd0}
630 # @kbd{grub-install '(hd0)'}
636 # @kbd{grub-install hd0}
649 # @kbd{grub-install --root-directory=/mnt fd0}
657 @command{grub-install} like this:
660 # @kbd{grub-install --root-directory=/boot /dev/hda}
664 correctly under a UNIX-like OS. Thus, @command{grub-install} will prompt
670 Note that @command{grub-install} is actually just a shell script and the
671 real task is done by the grub shell @command{grub} (@pxref{Invoking the
672 grub shell}). Therefore, you may run @command{grub} directly to install
673 GRUB, without using @command{grub-install}. Don't do that, however,
704 $ @kbd{mkdir -p iso/boot/grub}
710 $ @kbd{cp /usr/lib/grub/i386-pc/stage2_eltorito iso/boot/grub}
713 If desired, make the config file @file{menu.lst} under @file{iso/boot/grub}
720 $ @kbd{mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot \
721 -boot-load-size 4 -boot-info-table -o grub.iso iso}
724 This produces a file named @file{grub.iso}, which then can be burned
726 from the @kbd{boot/grub/stage2_eltorito} file, so there is no need to
818 grub> @kbd{rootnoverify (hd0,0)}
827 grub> @kbd{makeactive}
835 grub> @kbd{chainloader +1}
886 grub> @kbd{kernel /boot/gnumach root=hd0s1}
887 grub> @kbd{module /boot/serverboot}
911 grub> @kbd{kernel /vmlinuz root=/dev/hda1}
918 grub> @kbd{kernel /vmlinuz root=/dev/hda1 vga=ext}
929 grub> @kbd{initrd /initrd}
956 grub> @kbd{root (hd0,a)}
957 grub> @kbd{kernel /boot/loader}
958 grub> @kbd{boot}
978 grub> @kbd{kernel --type=netbsd /netbsd-elf}
1012 grub> @kbd{map (hd0) (hd1)}
1013 grub> @kbd{map (hd1) (hd0)}
1039 grub> @kbd{unhide (hd0,0)}
1040 grub> @kbd{hide (hd0,1)}
1041 grub> @kbd{rootnoverify (hd0,0)}
1042 grub> @kbd{chainloader +1}
1043 grub> @kbd{makeactive}
1044 grub> @kbd{boot}
1058 grub> @kbd{rootnoverify (hd1,0)}
1059 grub> @kbd{chainloader --force +1}
1060 grub> @kbd{makeactive}
1061 grub> @kbd{boot}
1074 grub> @kbd{rootnoverify (hd1,1)}
1075 grub> @kbd{chainloader +4}
1076 grub> @kbd{boot}
1158 time. For this, execute @command{grub-set-default} (@pxref{Invoking
1159 grub-set-default}):
1162 # @kbd{grub-set-default 1}
1236 However, you need to run @command{grub-set-default} (@pxref{Invoking
1237 grub-set-default}) when @samp{A} starts correctly or you fix @samp{A}
1243 # @kbd{grub-set-default 0}
1250 file @file{/boot/grub/default} (or @file{/grub/default} in
1255 manner. Therefore, you should use @command{grub-set-default} when you
1474 grub> @kbd{ifconfig --address=192.168.110.23 --server=192.168.110.14}
1489 grub> @kbd{bootp}
1495 grub> @kbd{root (nd)}
1496 grub> @kbd{kernel /tftproot/gnumach.gz root=sd0s1}
1497 grub> @kbd{module /tftproot/serverboot.gz}
1498 grub> @kbd{boot}
1579 grub> @kbd{serial --unit=0 --speed=9600}
1580 grub> @kbd{terminal serial}
1697 (@pxref{md5crypt}). For example, run the grub shell (@pxref{Invoking the
1698 grub shell}), and enter your password:
1702 grub> md5crypt
1714 password PASSWORD /boot/grub/menu-admin.lst
1717 In this case, GRUB will load @file{/boot/grub/menu-admin.lst} as a
1885 example is @samp{(hd0,0)/boot/grub/menu.lst}. This means the file
1886 @file{/boot/grub/menu.lst} in the first partition of the first hard
2312 In the grub shell, specify the file @var{file} as the actual drive for a
2319 grub> @kbd{device (fd0) /floppy-image}
2320 grub> @kbd{device (hd0) /dev/sd0}
2324 This command can be used only in the grub shell (@pxref{Invoking the
2325 grub shell}).
2438 can only be used in the grub shell and is used to specify the
2440 grub shell}).
2460 grub> @kbd{setkey capslock control}
2461 grub> @kbd{setkey control capslock}
2621 You can use the utility @command{grub-terminfo} to generate
2622 appropriate arguments to this command. @xref{Invoking grub-terminfo}.
2688 * quit:: Exit from the grub shell
2729 grub> @kbd{cat /etc/fstab}
2831 @code{/boot/grub/stage1}.
2855 Print the information for the drive @var{drive}. In the grub shell, you
2895 command can be used only in the Stage 2, but not in the grub shell.
2961 grub shell, if you cannot unmount the filesystem where your stage2 file
3041 grub> @kbd{map (hd0) (hd1)}
3042 grub> @kbd{map (hd1) (hd0)}
3098 Exit from the grub shell @command{grub} (@pxref{Invoking the grub
3099 shell}). This command can be used only in the grub shell.
3183 See also @ref{default} and @ref{Invoking grub-set-default}.
3202 in @file{/boot/grub} and @file{/grub}.
3263 encounter trouble. @xref{Invoking the grub shell}, if your problem is
3264 specific to the grub shell.
3490 @node Invoking the grub shell
3491 @chapter Invoking the grub shell
3493 This chapter documents the grub shell @command{grub}. Note that the grub
3501 * Basic usage:: How to use the grub shell
3502 * Installation under UNIX:: How to install GRUB via @command{grub}
3508 @section Introduction into the grub shell
3510 You can use the command @command{grub} for installing GRUB under your
3512 or when fixing a bug. @command{grub} is almost the same as the Stage 2,
3514 the same commands (@pxref{Commands}) in @command{grub}. It is emulated by
3517 The command @command{grub} accepts the following options:
3538 Probe the second floppy drive. If this option is not specified, the grub
3540 specify the device map file (@pxref{Device map}), the grub shell just
3545 @file{/boot/grub/menu.lst}. The format is the same as the normal GRUB
3576 @section How to install GRUB via @command{grub}
3580 @command{grub}-specific information is described here.
3582 What you should be careful about is @dfn{buffer cache}. @command{grub}
3590 unmount them before running @command{grub}.
3598 activity is being done on it while the command @command{grub} is
3618 # Use /usr/sbin/grub if you are on an older system.
3619 /sbin/grub --batch <<EOT 1>/dev/null 2>/dev/null
3632 the grub shell creates the @dfn{device map file} automatically unless it
3633 already exists. The file name @file{/boot/grub/device.map} is preferred.
3635 If the device map file exists, the grub shell reads it to map BIOS
3646 The reason why the grub shell gives you the device map file is that it
3651 Thus, edit the file if the grub shell makes a mistake. You can put any
3652 comments in the file if needed, as the grub shell assumes that a line is
3656 @node Invoking grub-install
3657 @chapter Invoking grub-install
3659 The program @command{grub-install} installs GRUB on your drive using the
3660 grub shell (@pxref{Invoking the grub shell}). You must specify the
3664 grub-install @var{install_device}
3670 @command{grub-install} accepts the following options:
3692 @kbd{grub-install --root-directory=/boot hd0}
3695 @item --grub-shell=@var{file}
3696 Use @var{file} as the grub shell. You can append arbitrary options to
3700 @kbd{grub-install --grub-shell="grub --read-only" /dev/fd0}
3704 Recheck the device map, even if @file{/boot/grub/device.map} already
3710 @node Invoking grub-md5-crypt
3711 @chapter Invoking grub-md5-crypt
3713 The program @command{grub-md5-crypt} encrypts a password in MD5 format.
3714 This is just a frontend of the grub shell (@pxref{Invoking the grub
3718 @command{grub-md5-crypt} accepts the following options:
3727 @item --grub-shell=@var{file}
3728 Use @var{file} as the grub shell.
3732 @node Invoking grub-terminfo
3733 @chapter Invoking grub-terminfo
3735 The program @command{grub-terminfo} generates a terminfo command from
3741 @command{grub-terminfo} accepts the following options:
3754 @kbd{grub-terminfo vt52}
3758 @node Invoking grub-set-default
3759 @chapter Invoking grub-set-default
3761 The program @command{grub-set-default} sets the default boot entry for
3763 your GRUB directory (i.e. @file{/boot/grub}), if it is not
3770 @command{grub-set-default} accepts the following options:
3785 You must specify a single argument to @command{grub-set-default}. This
3808 @kbd{grub-set-default 1}
3853 @uref{ftp://alpha.gnu.org/gnu/grub} or any of its mirrors. The file
3854 will be named grub-version.tar.gz. The current version is
3857 @uref{ftp://alpha.gnu.org/gnu/grub/grub-@value{VERSION}.tar.gz}
3862 @kbd{zcat grub-@value{VERSION}.tar.gz | tar xvf -}
3865 which will create a directory called @file{grub-@value{VERSION}} with
3872 @kbd{cd grub-@value{VERSION}}
3878 This will install the grub shell @file{grub} (@pxref{Invoking the grub
3883 @uref{http://savannah.gnu.org/cvs/?group=grub} for more information.
3895 see the @uref{http://www.gnu.org/software/grub/grub-faq.html, GNU GRUB FAQ}.
3945 @uref{http://savannah.gnu.org/bugs/?group=grub, Bug Tracking System}.
3947 @email{bug-grub@@gnu.org}, but we strongly recommend that you use the
3960 a look at @uref{http://www.gnu.org/software/grub/grub.html, the