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

  • From: "tqh" <trac@xxxxxxxxxxxx>
  • Date: Sun, 01 Apr 2012 12:13:34 -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 tqh):

 udev does look like an easy solution.
 {{{
 $ udevadm info --query=all --name=/dev/sda4
 ...
 UDISKS_PARTITION_OFFSET=44797263872
 ..
 }}}
 So get the udev_device and read the partition offset property. If that
 fails use partitionmap as before.

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

Other related posts: