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.
Click to show internal directories.
Click to hide internal directories.