[haiku-bugs] [Haiku] #6301: DriveSetup writes MBR inconsistent with anyboot image.

  • From: "preroll" <trac@xxxxxxxxxxxx>
  • Date: Mon, 12 Jul 2010 08:21:58 -0000

#6301: DriveSetup writes MBR inconsistent with anyboot image.
---------------------------------------+------------------------------------
   Reporter:  preroll                  |        Owner:  stippi   
       Type:  bug                      |       Status:  new      
   Priority:  normal                   |    Milestone:  R1       
  Component:  Applications/DriveSetup  |      Version:  R1/alpha2
   Keywords:  MBR boot CHS bits        |   Blocked By:           
Has a Patch:  0                        |     Platform:  x86      
   Blocking:                           |  
---------------------------------------+------------------------------------
 Suspect 'DriveSetup' changes MBR partition entry
 (offsets 447,448,449), causing some BIOS's not to boot.

 Comparison of MBR partition table (from offset 446..)
 -----------------------------------------------
 Original IMG (r1alpha2-anyboot image)  (boots)
                                           80 FF
 FF FF EB FF FF FF 00 20 00 00 00 50 14 00 00 00

 -----------------------------------------------
 After DriveSetup+Installer  (no-boot)
                                           80 00
 00 00 EB 00 00 00 40 00 00 00 00 A8 FA 00 00 00
 -----------------------------------------------

 Original IMG is using "FF FF FF" for CHS data,
 while DriveSetup is using "00 00 00".

 Re-creation:
 Write IMG to USB drive.
 Delete 650mb partition
 Create and Initalise an active partition to use the whole drive.
 Install into created partition (using 'Installer').
 Compare the MBRs.

 Suggestion:
 Use "FF FF FF", as more BIOS types seem to agree with this, or
 better still calculate the actual CHS bits.

 Possibly Related:
 #5980, #5595

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6301>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: