Re: About partition scheme.
Re: About partition scheme.
- Subject: Re: About partition scheme.
- From: Phil Jordan <email@hidden>
- Date: Wed, 04 Jul 2012 13:45:19 +0200
On Wed, Jul 4, 2012 at 8:14 AM, Li Flost.Dexiong <email@hidden> wrote:
> /dev/disk1
> #: TYPE NAME SIZE IDENTIFIER
> 0: *16.1 GB disk1
> 1: new_testdisk 16.1 GB disk1s1
>
>
> I'm wandering why there is a #0 on my disk, when and how does it create?
"disk 0" is the whole disk that the partition scheme sits inside. Look
at the IOMedia hierarchy in IORegistryExplorer and it'll make more
sense.
> Also, are there any reference about how the "disk1s1" string was generate and record on my system?
The "1" is generated from the location you set on your newly created
IOMedia object like so:
newMedia->setLocation("1");
This only happens if the IOMedia object isn't "whole". If it's whole,
a new diskX node is generated.
HTH
phil
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden