• 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
ContentHint Issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ContentHint Issue


  • Subject: ContentHint Issue
  • From: "Imran" <email@hidden>
  • Date: Tue, 22 Feb 2005 15:08:32 +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:

 

Top:level command (? for help): L

/dev/rdisk2  map block size=512

   #:                 type name                  length   base      ( size )

   1:  Apple_partition_map Apple                     63 @ 1       

   2:            Apple_HFS Extra              143374680 @ 64        ( 68.4G)

 

Device block size=512, Number of Blocks=143374744

DeviceType=0x0, DeviceId=0x0

 

/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/rdisk3  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_4 143112520 @ 262208    ( 68.2G)

   4:           Apple_Free                            0+@ 143374728

 

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

  • Follow-Ups:
    • Re: ContentHint Issue
      • From: Cliff Russell <email@hidden>
  • Prev by Date: Change Content hint of single partition
  • Next by Date: Re: ContentHint Issue
  • Previous by thread: Change Content hint of single partition
  • Next by thread: Re: ContentHint Issue
  • Index(es):
    • Date
    • Thread