Home | History | Annotate | Download | only in utils

Lines Matching refs:mbr

34     # MBR ID
66 " -id Specify MBR ID (default random)\n",
96 my $mbr = '';
102 $mbr .= chr(hex($byte));
105 return $mbr;
206 # Print the MBR and partition table
210 $mbr = get_hex_data();
212 if ( length($mbr) > 432 ) {
213 die "$0: Bad MBR code\n";
216 $mbr .= "\0" x (432 - length($mbr));
218 $mbr .= pack("VV", $de_lba*4, 0); # Offset 432: LBA of isolinux.bin
219 $mbr .= $id; # Offset 440: MBR ID
220 $mbr .= "\0\0"; # Offset 446: actual partition table
238 $mbr .= pack("CCCCCCCCVV", 0x80, $bhead, $bsect, $bcyl, $fstype,
241 $mbr .= "\0" x 16;
244 $mbr .= "\x55\xaa";
246 print FILE $mbr;