mbr

Master Boot Record (MBR)

npm install mbr
2 downloads in the last week
2 downloads in the last month

MBR - Master Boot Record

build status NPM version

Install via npm

$ npm install mbr

Usage

new MBR( buffer )

Buffer buffer (optional)

Properties:

  • type: String, defauts to 'CLASSIC'
  • tableOffset: Number, defauts to 0x1BE
  • partitionCount: Number, defauts to 4
  • partitions: Array

Methods:

  • parse( buffer ): MBR
    • Buffer buffer

new MBR.Partition( buffer )

Buffer buffer (optional)

Properties:

  • status: Number, defauts to 0x00
  • type: Number, defauts to 0x00
  • info: Array, type metadata (optional)
  • sectors: Number, defauts to 0
  • firstLBA: Number, defauts to 0
  • firstCHS: CHS
  • lastCHS: CHS

Methods:

  • parse( buffer ): MBR
    • Buffer buffer
npm loves you