[haiku-bugs] Re: [Haiku] #8434: Building to GPT disks may write the wrong partition offset under Linux

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Mon, 02 Apr 2012 17:52:51 -0000

#8434: Building to GPT disks may write the wrong partition offset under Linux
----------------------------+----------------------------
   Reporter:  tqh           |      Owner:  bonefish
       Type:  bug           |     Status:  new
   Priority:  normal        |  Milestone:  R1
  Component:  Build System  |    Version:  R1/Development
 Resolution:                |   Keywords:
 Blocked By:                |   Blocking:
Has a Patch:  0             |   Platform:  All
----------------------------+----------------------------

Comment (by bonefish):

 Replying to [comment:14 tqh]:
 > Ah good to know. I plan to fix this bug, but I found out that with gdisk
 you can actually configure your mbr so it matches again, so until then
 there is a way to get past it.

 Sure, but if you're unaware of the problem, `makebootable` may write to
 the wrong partition, which, depending on what that partition contains,
 might cause a serious problem. So I'd rather have `makebootable` always
 fail when detecting a GPT disk than do what it does now. That would still
 allow a simple addition like a `--offset <...>` parameter that would just
 cause the tool to write the given offset to the given partition without
 any further checks.

 A more intelligent solution would, of course, be preferable.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8434#comment:17>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: