GenBootSector.exe

Name

GenBootSector.exe - Process Hard Drive Boot Sector

Synopsis

GenBootSector.exe [-v | -q | -d] [-m] -i <InputFile> -o <OutputFile>
GenBootSector.exe -l
GenBootSector.exe -h
GenBootSector.exe --version

Description

GenBootSector reads boot sector data of a drive into a file or write boot sector data to a drive from a file, depending on where the drive appear in the options. A drive letter must be specified at -i or -o option because boot sector is related with drives.

Options

If no options are specified, tool prints usage.

-h, --help Show this help message and exit
--version Show program's version number and exit
-d [DEBUG], --debug [DEBUG]
Output DEBUG statements, where DEBUG_LEVEL is 0 (min)
- 9 (max)
-v, --verbose Print informational statements
-q, --quiet Returns the exit code, error messages will be
displayed
-s, --silent Returns only the exit code; informational and error
messages are not displayed
-l, --list List disk drives
-i INPUT_FILENAME, --input INPUT_FILENAME
Input file name
-o OUTPUT_FILENAME, --output OUTPUT_FILENAME
Output file name
-m, --mbr Also process the MBR
--sfo Reserved for future use

Status codes returned

Return Value

Description

0

The action was completed as requested.

1

The action failed.

Example

  1. List information of all local drives.

c:/Tools/GenBootSector.exe -l
  1. Get boot sector data of drive a: and write them to data.com.

c:/Tools/GenBootSector.exe -i a: -o data.com
  1. Update boot sector of drive a: with data from data.com.

c:/Tools/GenBootSector.exe -i data.com -o a:

Bugs

No known issues.

Report bugs to [email protected]

Files

None.

See also

None.

License

Copyright (c) 1999 - 2016, Intel Corporation. All rights reserved.

This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at:

http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.