bootsect

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2020 License: MIT Imports: 2 Imported by: 1

Documentation

Overview

Package bootsect provides functions to parse the boot sector (also sometimes called Volume Boot Record, VBR, or $Boot file) of an NTFS volume.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootSector

type BootSector struct {
	OemId                        string
	BytesPerSector               int
	SectorsPerCluster            int
	MediaDescriptor              byte
	SectorsPerTrack              int
	NumberofHeads                int
	HiddenSectors                int
	TotalSectors                 uint64
	MftClusterNumber             uint64
	MftMirrorClusterNumber       uint64
	FileRecordSegmentSizeInBytes int
	IndexBufferSizeInBytes       int
	VolumeSerialNumber           []byte
}

BootSector represents the parsed data of an NTFS boot sector. The OemId should typically be "NTFS " ("NTFS" followed by 4 trailing spaces) for a valid NTFS boot sector.

func Parse

func Parse(data []byte) (BootSector, error)

Parse parses the data of an NTFS boot sector into a BootSector structure.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL