Change Content hint of single partition
Change Content hint of single partition
- Subject: Change Content hint of single partition
- From: "Imran" <email@hidden>
- Date: Tue, 22 Feb 2005 15:41:26 +0530
Hi,
I have 2 partitions named Snap1 and Snap2 on the a disk /dev/rdisk1
and want to change ContentHint of one partition to MACOSX_MyContent
instead of Apple_HFS, so that my driver gets loaded only for that
particular partition whose ContentHint matches. How can I change the content
hint of single partition out of 2 partitions on a disk.
I have tried this using pdisk but it changes the partition type of whole
disk to MACOSX_MyContent and all the partitions disappear for /dev/rdisk1.
Steps taken to do the same are
# pdisk
Top:level command (? for help): e // to edit the partition
Top:level command (? for help): i // to initialize the disk /dev/rdisk1
Top:level command (? for help): t // to change partition type
Top:level command (? for help): w // to write the partition map
Below is the output of pdisk after changing partition type:
/dev/rdisk1 map block size=512
#: type name length base ( size )
1: Apple_partition_map Apple 63 @ 1
2: MACOSX_MyContent Extra 143374680 @ 64 ( 68.4G)
Device block size=512, Number of Blocks=143374744
DeviceType=0x0, DeviceId=0x0
/dev/rdisk0 map block size=512
#: type name length base ( size )
1: Apple_partition_map Apple 63 @ 1
2: Apple_Free 0+@ 64
3: Apple_HFS Apple_HFS_Untitled_2 64961408 @ 262208 (
31.0G)
4: Apple_Free 0+@ 65223616
5: Apple_HFS Apple_HFS_Untitled_3 64961408 @ 65485760 (
31.0G)
6: Apple_Free 0+@ 130447168
7: Apple_HFS Apple_HFS_Untitled_4 13252672 @ 130709312 (
6.3G)
8: Apple_Free 0+@ 143961984
9: Apple_HFS Apple_HFS_Untitled_5 12077344 @ 144224128 (
5.8G)
10: Apple_Free 0+@ 156301472
Device block size=512, Number of Blocks=156301488
DeviceType=0x0, DeviceId=0x0
Thanks and Regards,
Imran
_______________________________________________
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