Author Topic: ChameleonPrefPane revived  (Read 25864 times)

0 Members and 1 Guest are viewing this topic.

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: ChameleonPrefPane revived
« Reply #45 on: December 06, 2011, 11:45:10 PM »
Hi Rek

I remember you saying here that only bootable partitions should be displayed. Is this still the case as I have non bootable partitions showing in the Startup Disk page? (See attached screenshot).

And here's my Diskutil list:
Code: [Select]
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.1 GB   disk0
   1:                        EFI                         209.7 MB   disk0s1
   2:                  Apple_HFS HackBoot                1.1 GB     disk0s2
   3:                  Apple_HFS MainSystem              100.0 GB   disk0s3
   4:       Microsoft Basic Data WINDOWS                 80.0 GB    disk0s4
   5:                  Apple_HFS BackupSystem            16.0 GB    disk0s5
   6:                  Apple_HFS Mac OS X Base System    8.0 GB     disk0s6
   7:                  Apple_HFS Store                   294.1 GB   disk0s7
/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.1 GB   disk1
   1:                        EFI                         209.7 MB   disk1s1
   2:                  Apple_HFS Mac                     80.0 GB    disk1s2
   3:       Microsoft Basic Data                         80.0 GB    disk1s3
   4:       Microsoft Basic Data SPARE                   339.8 GB   disk1s4

As it stands:
Volume/SPARE is empty.
Volume/WINDOWS is empty.
Disk1s3 (as the diskutil list) (would be disk0,3 n in the pref pane in this case) does contain a Windows 8 dev preview but that's not shown in the pref pane?

Can you throw some light on what I should be seeing?
Thanks

10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB

rekursor

  • VoodooLabs
  • Posts: 47
Re: ChameleonPrefPane revived
« Reply #46 on: December 07, 2011, 02:52:54 AM »
This is intended because indeed the booter will also display non bootable partitions (i.e. in Windows 7 with an efi 2.0 partition the actual  windows partition is not bootable itself, ..)
So I decided to also include these because if it were not the case, then one could not see some of the partitions that the booter would see, therefore it would make harder to identify the hd(x,y) partition to hide and/or rename in that case.

In future, I would like to share my thoughts with the guys currently working on the booter, and see how chameleon could add its own smbios handles ... !
If we manage to do that then we open the gate for new exciting features, including a better sync between the booter and the chameleon apps.

EDIT: I am filtering the oviously non bootable disks now, but like chameleon I am still permissive to win7 partitions that are not bootable because of an efi 2.0 partition booting it.

This was my plan a while ago, but then some company decided to hire me on an even more exciting development project, so I cant spend as much time as I would like to :)

-Rek
« Last Edit: December 07, 2011, 04:10:44 AM by rekursor »

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: ChameleonPrefPane revived
« Reply #47 on: December 10, 2011, 10:18:45 PM »
Hey Rek.

Sorry for any delay in my feedback but my working week is long at the moment and I haven't time for much hack related things.

I've tested the latest pref pane and now see my non bootable partitions are hidden - This is great.
Now this raises a question of should my non bootable FAT partitions be visible in Chameleon's GUI by default? because they are unless of course I hide them using the Hide Partition boot option.

but like chameleon I am still permissive to win7 partitions that are not bootable because of an efi 2.0 partition booting it.
My Win8 dev preview partition still doesn't show in the pref pane.

In future, I would like to share my thoughts with the guys currently working on the booter, and see how chameleon could add its own smbios handles ... !
If we manage to do that then we open the gate for new exciting features, including a better sync between the booter and the chameleon apps.
Cool. It's always encouraging to hear of future development plans/options.
The best way to contact some of the devs may be either by PM from here, or at irc.voodooprojects.org.
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB

rekursor

  • VoodooLabs
  • Posts: 47
Re: ChameleonPrefPane revived
« Reply #48 on: December 10, 2011, 10:35:54 PM »
but like chameleon I am still permissive to win7 partitions that are not bootable because of an efi 2.0 partition booting it.
My Win8 dev preview partition still doesn't show in the pref pane.
Interesting, Could you you dump the list of the file (hidden + not hidden) at the root of your partition, I don't have win8, don't plan to install one now so that could be useful :)
TIA

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: ChameleonPrefPane revived
« Reply #49 on: December 10, 2011, 10:42:46 PM »
Hi Rek.. Yes I'll do it now.. BRB.

Here you go:
Code: [Select]
drwxr-xr-x@  1 blackosx  staff           0 16 Sep 20:02 $Recycle.Bin
drwxr-xr-x   1 blackosx  staff       12288 17 Sep 09:10 .
drwxrwxrwt@ 13 root  admin         442 10 Dec 21:26 ..
srwxr-xr-x   1 blackosx  staff           0  2 May  2011 BOOTNXT
-rwxr-xr-x@  1 blackosx  staff        8192 17 Sep 04:54 BOOTSECT.BAK
drwxr-xr-x@  1 blackosx  staff        4096 17 Sep 04:54 Boot
drwxr-xr-x@  1 blackosx  staff           0 24 Aug 09:04 Documents and Settings
drwxr-xr-x   1 blackosx  staff           0 24 Aug 09:12 PerfLogs
drwxr-xr-x   1 blackosx  staff        4096 24 Aug 09:29 Program Files
drwxr-xr-x   1 blackosx  staff        4096 17 Sep 09:10 Program Files (x86)
drwxr-xr-x@  1 blackosx  staff        4096 30 Aug 23:26 ProgramData
drwxr-xr-x@  1 blackosx  staff           0 16 Sep 20:00 Recovery
drwxr-xr-x@  1 blackosx  staff        4096  6 Oct 17:41 System Volume Information
drwxr-xr-x   1 blackosx  staff        4096 16 Sep 20:00 Users
drwxr-xr-x   1 blackosx  staff       16384 17 Sep 09:19 Windows
-rwxr-xr-x@  1 blackosx  staff      367472 24 Aug 04:19 bootmgr
-rwxr-xr-x@  1 blackosx  staff  4824846336  7 Oct 18:09 hiberfil.sys
-rwxr-xr-x@  1 blackosx  staff  4292640768  7 Oct 18:09 pagefile.sys
« Last Edit: December 10, 2011, 10:45:05 PM by Blackosx »
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB

rekursor

  • VoodooLabs
  • Posts: 47
Re: ChameleonPrefPane revived
« Reply #50 on: December 10, 2011, 10:49:25 PM »
OK, no change with Win7 concerning the filtering, So:
the pb is IMHO that the microsoft basic data partition is not recognized please send me a dump of test_util with the partition info only (no smbios info) please :)

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: ChameleonPrefPane revived
« Reply #51 on: December 10, 2011, 11:00:09 PM »
Okay. Let me just boot to a separate OS X installation with Xcode 3.x so I can build it.. BRB.

EDIT:
The partition in question is disk0s3

diskutil list shows it without a name.
Code: [Select]
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.1 GB   disk0
   1:                        EFI                         209.7 MB   disk0s1
   2:                  Apple_HFS Mac                     80.0 GB    disk0s2
   3:       Microsoft Basic Data                         80.0 GB    disk0s3
   4:       Microsoft Basic Data SPARE                   339.8 GB   disk0s4
/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.1 GB   disk1
   1:                        EFI                         209.7 MB   disk1s1
   2:                  Apple_HFS HackBoot                1.1 GB     disk1s2
   3:                  Apple_HFS MainSystem              100.0 GB   disk1s3
   4:       Microsoft Basic Data WINDOWS                 80.0 GB    disk1s4
   5:                  Apple_HFS BackupSystem            16.0 GB    disk1s5
   6:                  Apple_HFS Mac OS X Base System    8.0 GB     disk1s6
   7:                  Apple_HFS Store                   294.1 GB   disk1s7

mount shows:
Code: [Select]
/dev/disk1s5 on / (hfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
/dev/disk0s2 on /Volumes/Mac (hfs, local, journaled)
/dev/disk1s2 on /Volumes/HackBoot (hfs, local, journaled)
/dev/disk1s3 on /Volumes/MainSystem (hfs, local, journaled)
/dev/disk0s3 on /Volumes/Untitled (ntfs, local, read-only, noowners)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
/dev/disk1s4 on /Volumes/WINDOWS (msdos, asynchronous, local, noowners)
/dev/disk0s4 on /Volumes/SPARE (msdos, asynchronous, local, noowners)
/dev/disk1s6 on /Volumes/Mac OS X Base System (hfs, local)
/dev/disk1s7 on /Volumes/Store (hfs, local, journaled)

test_util doesn't show it.
Code: [Select]
2011-12-10 22:04:18.312 test_util[374:707] List of existing bsd disk partitions:
 (
    disk0,
    disk0s1,
    disk0s2,
    disk0s3,
    disk0s4,
    disk1,
    disk1s1,
    disk1s2,
    disk1s3,
    disk1s4,
    disk1s5,
    disk1s6,
    disk1s7
)
2011-12-10 22:04:18.320 test_util[374:707] PartionBootable = 1
(
  bsdName        disk0s2
  deviceProtocol SATA
  deviceInternal 1
  volumeName     Mac
  volumeKind     hfs
  volumeUUID     E3EA05BB-E64C-3ED9-96C5-832B84677FE0
  mediaPath      IODeviceTree:/PCI0@0/SATA@1F,2/PRT1@1/PMP@0/@0:2
  mediaRemovable 0
)
2011-12-10 22:04:18.321 test_util[374:707] PartionBootable = 1
(
  bsdName        disk1s2
  deviceProtocol SATA
  deviceInternal 1
  volumeName     HackBoot
  volumeKind     hfs
  volumeUUID     80CF3629-91E3-3F3F-B577-7D79DAFFB552
  mediaPath      IODeviceTree:/PCI0@0/SATA@1F,2/PRT0@0/PMP@0/@0:2
  mediaRemovable 0
)
2011-12-10 22:04:18.321 test_util[374:707] PartionBootable = 1
(
  bsdName        disk1s3
  deviceProtocol SATA
  deviceInternal 1
  volumeName     MainSystem
  volumeKind     hfs
  volumeUUID     FE56DE3D-9461-364B-A6B1-447A18B47549
  mediaPath      IODeviceTree:/PCI0@0/SATA@1F,2/PRT0@0/PMP@0/@0:3
  mediaRemovable 0
)
2011-12-10 22:04:18.322 test_util[374:707] PartionBootable = 1
(
  bsdName        disk1s5
  deviceProtocol SATA
  deviceInternal 1
  volumeName     BackupSystem
  volumeKind     hfs
  volumeUUID     C973B5A8-BA80-3139-B81D-4F9D46B05204
  mediaPath      IODeviceTree:/PCI0@0/SATA@1F,2/PRT0@0/PMP@0/@0:5
  mediaRemovable 0
)
2011-12-10 22:04:18.322 test_util[374:707] PartionBootable = 1
(
  bsdName        disk1s6
  deviceProtocol SATA
  deviceInternal 1
  volumeName     Mac OS X Base System
  volumeKind     hfs
  volumeUUID     80315E1E-FC03-3082-A3C4-24FEF5048C4F
  mediaPath      IODeviceTree:/PCI0@0/SATA@1F,2/PRT0@0/PMP@0/@0:6
  mediaRemovable 0
)
2011-12-10 22:04:18.322 test_util[374:707]  Rename part Mac -> Test
2011-12-10 22:04:18.323 test_util[374:707]  Rename part MainSystem -> Fantastic
2011-12-10 22:04:18.323 test_util[374:707]  Rename part Mac -> DEF
String Test
options = -v darkwake ab= a=0 =abc -f
token: -v, left: -v, right: -v, trim: -v
token: darkwake, left: darkwake, right: darkwake, trim: darkwake
token: ab=, left: ab, right: , trim: ab=
token: a=0, left: a, right: 0, trim: a=0
token: =abc, left: , right: abc, trim: =abc
token: -f, left: -f, right: -f, trim: -f
logout
« Last Edit: December 10, 2011, 11:08:43 PM by Blackosx »
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB

rekursor

  • VoodooLabs
  • Posts: 47
Re: ChameleonPrefPane revived
« Reply #52 on: December 10, 2011, 11:08:32 PM »
Here BlackOSX:

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: ChameleonPrefPane revived
« Reply #53 on: December 10, 2011, 11:09:50 PM »
Thanks.. But I already did it  :P (see above).
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB

rekursor

  • VoodooLabs
  • Posts: 47
Re: ChameleonPrefPane revived
« Reply #54 on: December 10, 2011, 11:15:20 PM »
MMM see what is weird is that your disk  is that I don't see your disk listed in the test app :(
EDIT: please edit test_util.mm line 59 and replace temporarily:
#if 1
by
#if 0

this should make the alternative code showing the disk0s3[and s2] partition ...
« Last Edit: December 10, 2011, 11:18:01 PM by rekursor »

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: ChameleonPrefPane revived
« Reply #55 on: December 10, 2011, 11:18:22 PM »
Yeah, I know - If you want me to run anything for testing then just ask.
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB

rekursor

  • VoodooLabs
  • Posts: 47
Re: ChameleonPrefPane revived
« Reply #56 on: December 10, 2011, 11:19:58 PM »
yes there is an edit to to see my edit upper :)

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: ChameleonPrefPane revived
« Reply #57 on: December 10, 2011, 11:20:58 PM »
Here you go:
Code: [Select]
2011-12-10 22:20:40.773 test_util[519:707] Key: DADeviceInternal, Value: 1
2011-12-10 22:20:40.774 test_util[519:707] Key: DAMediaName, Value: Mac
2011-12-10 22:20:40.774 test_util[519:707] Key: DAMediaLeaf, Value: 1
2011-12-10 22:20:40.774 test_util[519:707] Key: DAMediaBlockSize, Value: 512
2011-12-10 22:20:40.775 test_util[519:707] Key: DAVolumeUUID, Value: <CFUUID 0x40030ed00> E3EA05BB-E64C-3ED9-96C5-832B84677FE0
2011-12-10 22:20:40.775 test_util[519:707] Key: DAMediaWhole, Value: 0
2011-12-10 22:20:40.775 test_util[519:707] Key: DADeviceRevision, Value: CR100-12
2011-12-10 22:20:40.776 test_util[519:707] Key: DABusPath, Value: IODeviceTree:/PCI0@0/SATA@1F,2/PRT1@1/PMP@0
2011-12-10 22:20:40.776 test_util[519:707] Key: DAVolumeName, Value: Mac
2011-12-10 22:20:40.776 test_util[519:707] Key: DAMediaEjectable, Value: 0
2011-12-10 22:20:40.777 test_util[519:707] Key: DAMediaSize, Value: 80000000000
2011-12-10 22:20:40.777 test_util[519:707] Key: DAVolumeNetwork, Value: 0
2011-12-10 22:20:40.777 test_util[519:707] Key: DABusName, Value: PMP
2011-12-10 22:20:40.778 test_util[519:707] Key: DADeviceProtocol, Value: SATA
2011-12-10 22:20:40.778 test_util[519:707] Key: DAMediaRemovable, Value: 0
2011-12-10 22:20:40.778 test_util[519:707] Key: DAVolumeKind, Value: hfs
2011-12-10 22:20:40.779 test_util[519:707] Key: DAMediaWritable, Value: 1
2011-12-10 22:20:40.779 test_util[519:707] Key: DAMediaBSDMajor, Value: 14
2011-12-10 22:20:40.779 test_util[519:707] Key: DADeviceModel, Value: SAMSUNG HD501LJ                         
2011-12-10 22:20:40.780 test_util[519:707] Key: DADevicePath, Value: IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@1F,2/AppleAHCI/PRT1@1/IOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlockStorageDevice
2011-12-10 22:20:40.780 test_util[519:707] Key: DAMediaBSDMinor, Value: 2
2011-12-10 22:20:40.780 test_util[519:707] Key: DAMediaUUID, Value: <CFUUID 0x40030f300> 15473CA9-015F-4CB2-8DA5-63CA832F5124
2011-12-10 22:20:40.781 test_util[519:707] Key: DAMediaContent, Value: 48465300-0000-11AA-AA11-00306543ECAC
2011-12-10 22:20:40.781 test_util[519:707] Key: DAMediaBSDUnit, Value: 0
2011-12-10 22:20:40.781 test_util[519:707] Key: DADeviceUnit, Value: 0
2011-12-10 22:20:40.782 test_util[519:707] Key: DAMediaPath, Value: IODeviceTree:/PCI0@0/SATA@1F,2/PRT1@1/PMP@0/@0:2
2011-12-10 22:20:40.782 test_util[519:707] Key: DAMediaIcon, Value: {
    CFBundleIdentifier = "com.apple.iokit.IOStorageFamily";
    IOBundleResourceFile = "Internal.icns";
}
2011-12-10 22:20:40.782 test_util[519:707] Key: DAVolumePath, Value: file://localhost/Volumes/Mac/
2011-12-10 22:20:40.783 test_util[519:707] Key: DAMediaKind, Value: IOMedia
2011-12-10 22:20:40.783 test_util[519:707] Key: DAMediaBSDName, Value: disk0s2
2011-12-10 22:20:40.784 test_util[519:707] Key: DAVolumeMountable, Value: 1
2011-12-10 22:20:40.784 test_util[519:707] Key: DAAppearanceTime, Value: 345247371.407952
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB

rekursor

  • VoodooLabs
  • Posts: 47
Re: ChameleonPrefPane revived
« Reply #58 on: December 10, 2011, 11:23:47 PM »
Nothing for disk0s3 (that dump is for disk0s2 (hfs))  :-\ ?
« Last Edit: December 10, 2011, 11:26:40 PM by rekursor »

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: ChameleonPrefPane revived
« Reply #59 on: December 10, 2011, 11:26:37 PM »
That's it. Other than the SMBIOS info before and the Test String stuff after.
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB