• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Drive ID problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drive ID problems


  • Subject: Re: Drive ID problems
  • From: Quinn <email@hidden>
  • Date: Wed, 30 Apr 2008 10:54:53 +0100

At 16:42 -0500 28/4/08, Paul Wasmund wrote:
On drives that use a guid partition table, disk id's of the form diskXsY where Y that is the partition index of the partition it identifies. With some effort you can end up where this isn't true. How can I find out what the actual disk ID is for a given partition index or what partition index a particular disk ID identifies?

You should be able to do this by mapping the BSD dev node name to the I/O Registry node, then extracting the UUID of the partition from that node.


For example, on my machine, the root volume is mounted on "disk0s2". Here's the relevant snippets of the I/O Registry:

$ ioreg -c IOMedia
[...]
+-o IOGUIDPartitionScheme  <...>
[...]
  +-o Apple_HFS_Untitled_1@2  <...>
  | | {
[...]
  | |   "BSD Name" = "disk0s2"
[...]
  | |   "UUID" = "E3FF81FC-364F-4503-9E03-0AF9301CF111"
[...]
  | | }
[...]

When you search by BSD name, you'll find the "Apple_HFS_Untitled_1@2" I/O Registry node. You can step up the service plane to confirm that this is a partition on a GPT device. You can then extract the "UUID" of the partition and use that to find it in the GPT.

S+E
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Drive ID problems (From: Paul Wasmund <email@hidden>)

  • Prev by Date: Any way to mark a BOOTCAMP partition to not auto-mount?
  • Next by Date: Re: Any way to mark a BOOTCAMP partition to not auto-mount?
  • Previous by thread: Drive ID problems
  • Next by thread: Any way to mark a BOOTCAMP partition to not auto-mount?
  • Index(es):
    • Date
    • Thread