Searched refs:MBR (Results 1 - 1 of 1) sorted by relevance

/haiku/src/bin/writembr/
H A Dwritembr.cpp19 #include "MBR.h"
26 "#\tRewrites the MBR for the specified device.\n"
79 unsigned char MBR[kMBRSize]; local
80 fs.read((char*)MBR, kMBRSize);
88 // update only the code area and the MBR signature
89 memcpy(MBR, kMBR, 0x1be);
90 MBR[0x1FE] = kMBR[0x1FE];
91 MBR[0x1FF] = kMBR[0x1FF];
93 cerr << "About to overwrite the MBR boot code on " << device.Path()
100 cerr << "MBR wa
[all...]

Completed in 38 milliseconds