Installation

From Grub4Dos Wiki

Revision as of 19:20, 21 March 2009; view current revision
←Older revision | Newer revision→
Jump to: navigation, search

Contents

installation to MBR or VBR

For installation into Master Boot Record, Volume Boot Record of a harddisk (any connector) or floppy.

bootlace.com

supported operating systems

  • DOS
  • Win9x
  • Linux

syntax

Usage:
	bootlace.com  [OPTIONS]  DEVICE_OR_FILE
OPTIONS:
	--read-only		do everything except the actual write to the
				specified DEVICE_OR_FILE.
	--restore-mbr		restore the previous mbr.
	--mbr-no-bpb		do not copy BPB in the boot sector of the
				leading FAT partition to MBR.
	--no-backup-mbr		do not copy the old MBR to the second sector of
				DEVICE_OR_FILE.
	--force-backup-mbr	force the copy of old MBR to the second sector
				of DEVICE_OR_FILE.
	--mbr-enable-floppy	enable the search for GRLDR on floppy.
	--mbr-disable-floppy	disable the search for GRLDR on floppy.
	--mbr-enable-osbr	enable the boot of PREVIOUS MBR with invalid
				partition table(usually an OS boot sector).
	--mbr-disable-osbr	disable the boot of PREVIOUS MBR with invalid
				partition table(usually an OS boot sector).
	--duce			disable the feature of unconditional entrance
	                        to the command-line.

				Normally one can unconditionally get the
				command-line console by a keypress of `C',
				bypassing all config-files(including the
				preset-menu). This is a security hole. So we
				need this option to disable the feature.

				DUCE is for Disable Unconditional Command-line
				Entrance.
	--chs-no-tune		disable the feature of geometry tune.
	--boot-prevmbr-first	try to boot PREVIOUS MBR before the search for
				GRLDR.
	--boot-prevmbr-last	try to boot PREVIOUS MBR after the search for
				GRLDR.
	--preferred-drive=D	preferred boot drive number, 0 <= D < 255.
	--preferred-partition=P	preferred partition number, 0 <= P < 255.
	--serial-number=SN	setup a new serial number for the hard drive.
				SN must be non-zero.
	--time-out=T		wait T seconds before booting PREVIOUS MBR. if
				T is 0xff, wait forever. The default is 5.
	--hot-key=K		if the desired key K is pressed, start GRUB
				before booting PREVIOUS MBR. K is a word
				value, just as the value in AX register
				returned from int16/AH=1. The high byte is the
				scan code and the low byte is ASCII code. The
				default is 0x3920 for space bar. See "int 16
				keyboard scan codes" below.
	--floppy		if DEVICE_OR_FILE is floppy, use this option.
	--floppy=N		if DEVICE_OR_FILE is a partition on a hard
				drive, use this option. N is used to specify
				the partition number: 0,1,2 and 3 for the
				primary partitions, and 4,5,6,... for the
				logical partitions.
	--sectors-per-track=S	specifies sectors per track for --floppy.
				1 <= S <= 63, default is 63.
	--heads=H		specifies number of heads for --floppy.
				1 <= H <= 256, default is 255.
	--start-sector=B	specifies hidden sectors for --floppy=N.
	--total-sectors=C	specifies total sectors for --floppy.
				default is 0.
	--lba			use lba mode for --floppy. If the floppy BIOS
				has LBA support, you can specify --lba here.
				It is assumed that all floppy BIOSes have CHS
				support. So you would rather specify --chs.
				If neither --chs nor --lba is specified, then
				the LBA indicator(i.e., the third byte of the
				boot sector) will not be touched.
	--chs			use chs mode for --floppy. You should specify
				--chs if the floppy BIOS does not support LBA.
				We assume all floppy BIOSes have CHS support.
				So it is likely you want to specify --chs.
				If neither --chs nor --lba is specified, then
				the LBA indicator(i.e., the third byte of the
				boot sector) will not be touched.
	--fat12			FAT12 is allowed to be installed for --floppy.
	--fat16			FAT16 is allowed to be installed for --floppy.
	--fat32			FAT32 is allowed to be installed for --floppy.
	--vfat			FAT12/16/32 are allowed to be installed for
				--floppy.
	--ntfs			NTFS is allowed to be installed for --floppy.
	--ext2			EXT2 is allowed to be installed for --floppy.
	--install-partition=I	Install the boot record onto the boot area of
				partition number I of the specified hard drive
				or harddrive image DEVICE_OR_FILE.

exampels

(from grub4dos readme)

	Installing GRLDR boot code to MBR under Linux:
		bootlace.com  /dev/hda

	Installing GRLDR boot code to MBR under DOS:
		bootlace.com  0x80

	Installing GRLDR boot code to a harddisk image under DOS or Linux:
		bootlace.com  hd.img

	Installing GRLDR boot code to floppy under Linux:
		bootlace.com  --floppy --chs /dev/fd0

	Installing GRLDR boot code to floppy under DOS:
		bootlace.com  --floppy --chs 0x00

	Installing GRLDR boot code to a floppy image under DOS or Linux:
		bootlace.com  --floppy --chs floppy.img

grubinst.exe

supported operating systems

  • NT-based Windows (XP, Vista)

syntax

Usage:
        grubinst  [OPTIONS]  DEVICE_OR_FILE
OPTIONS:
        --help,-h               Show usage information
        --pause                 Pause before exiting
        --version               Show version information
        --verbose,-v            Verbose output
        --list-part,-l          List all logical partitions in DEVICE_OR_FILE
        --save=FN,-s=FN         Save the orginal MBR/BS to FN
        --restore=FN,-r=FN      Restore MBR/BS from previously saved FN
        --restore-prevmbr,-r    Restore previous MBR saved in the second sector
                                of DEVICE_OR_FILE
        --read-only,-t          do everything except the actual write to the
                                specified DEVICE_OR_FILE. (test mode)
        --no-backup-mbr         do not copy the old MBR to the second sector of
                                DEVICE_OR_FILE.
        --force-backup-mbr      force the copy of old MBR to the second sector
                                of DEVICE_OR_FILE.(default)
        --mbr-enable-floppy     enable the search for GRLDR on floppy.(default)
        --mbr-disable-floppy    disable the search for GRLDR on floppy.
        --mbr-enable-osbr       enable the boot of PREVIOUS MBR with invalid
                                partition table (usually an OS boot sector).
                                (default)
        --mbr-disable-osbr      disable the boot of PREVIOUS MBR with invalid
                                partition table (usually an OS boot sector).
        --duce                  disable the feature of unconditional entrance
                                to the command-line.
        --boot-prevmbr-first    try to boot PREVIOUS MBR before the search for
                                GRLDR.
        --boot-prevmbr-last     try to boot PREVIOUS MBR after the search for
                                GRLDR.(default)
        --preferred-drive=D     preferred boot drive number, 0 <= D < 255.
        --preferred-partition=P preferred partition number, 0 <= P < 255.
        --time-out=T,-t=T       wait T seconds before booting PREVIOUS MBR. if
                                T is 0xff, wait forever. The default is 5.
        --hot-key=K,-k=K        if the desired key K is pressed, start GRUB
                                before booting PREVIOUS MBR. K is a word
                                value, just as the value in AX register
                                returned from int16/AH=1. The high byte is the
                                scan code and the low byte is ASCII code. The
                                default is 0x3920 for space bar.
        --key-name=S            Specify the name of the hot key.
        --floppy,-f             if DEVICE_OR_FILE is floppy, use this option.
        --floppy=N              if DEVICE_OR_FILE is a partition on a hard
                                drive, use this option. N is used to specify
                                the partition number: 0,1,2 and 3 for the
                                primary partitions, and 4,5,6,... for the
                                logical partitions.
        --sectors-per-track=S   specifies sectors per track for --floppy.
                                1 <= S <= 63, default is 63.
        --heads=H               specifies number of heads for --floppy.
                                1 <= H <= 256, default is 255.
        --start-sector=B        specifies hidden sectors for --floppy=N.
        --total-sectors=C       specifies total sectors for --floppy.
                                default is 0.
        --lba                   use lba mode for --floppy. If the floppy BIOS
                                has LBA support, you can specify --lba here.
                                It is assumed that all floppy BIOSes have CHS
                                support. So you would rather specify --chs.
                                If neither --chs nor --lba is specified, then
                                the LBA indicator(i.e., the third byte of the
                                boot sector) will not be touched.
        --chs                   use chs mode for --floppy. You should specify
                                --chs if the floppy BIOS does not support LBA.
                                We assume all floppy BIOSes have CHS support.
                                So it is likely you want to specify --chs.
                                If neither --chs nor --lba is specified, then
                                the LBA indicator(i.e., the third byte of the
                                boot sector) will not be touched.
        --install-partition=I   Install the boot record onto the boot area of
        -p=I                    partition number I of the specified hard drive
                                or harddrive image DEVICE_OR_FILE.
        --boot-file=F,-b=F      Change the name of boot file.
        --load-seg=S            Change load segment for boot file.
        --grub2,-2              Load grub2 kernel g2ldr instead of grldr.
        --output,-o             Save embeded grldr.mbr to DEVICE_OR_FILE.
        --edit,-e               Edit external grldr/grldr.mbr.
        --skip-mbr-test         Skip chs validity test in mbr.
        --copy-bpb              Don't copy bpb of the first partition to mbr.

grbins16.exe

supported operating systems

  • DOS

syntax

Same as grubinst.

installation to CD/DVD

See grub4dos wiki article or grub4dos guide.

see also

Personal tools