[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: create HFS partition



On Thu, Jan 16, 2003 at 01:18:52PM +0100, Michael Schmitz wrote:
> What bit needs to be set in the partition table? I see a bunch of flag
> definitions in the source (dpme.h), which one do you mean?
> 
>     u32     dpme_flags;
> #if 0
>     u32     dpme_reserved_2    : 23 ;  /* Bit 9 through 31.        */
>     u32     dpme_os_specific_1 :  1 ;  /* Bit 8.                   */
>     u32     dpme_os_specific_2 :  1 ;  /* Bit 7.                   */
>     u32     dpme_os_pic_code   :  1 ;  /* Bit 6.                   */
>     u32     dpme_writable      :  1 ;  /* Bit 5.                   */
>     u32     dpme_readable      :  1 ;  /* Bit 4.                   */
>     u32     dpme_bootable      :  1 ;  /* Bit 3.                   */
>     u32     dpme_in_use        :  1 ;  /* Bit 2.                   */
>     u32     dpme_allocated     :  1 ;  /* Bit 1.                   */
>     u32     dpme_valid         :  1 ;  /* Bit 0.                   */
> #endif

Bit 30 is apparently the magic "automount on boot" flag. Using Apple's
Disk Setup tool, turning off the "automatically mount" option, and then
booting into Linux and doing 'od -t x2 /dev/sda1' showed that that bit
was changed in the MacOS partition's layout.

-- 
Derrik Pates
dpates@dsdk12.net
dpates@voxel.net



Reply to: