overdue-scratch

Author Topic: boot0: error booting from 2TB Hitachi HD  (Read 6785 times)

0 Members and 1 Guest are viewing this topic.

Piesia

  • Entrant
  • Posts: 7
boot0: error booting from 2TB Hitachi HD
« on: August 23, 2010, 04:28:03 PM »
Hi,

This might be a similar problem to http://forum.voodooprojects.org/index.php/topic,1557.msg7834.html#msg7834. I can't use the fix as I do not have access to a copy of windows 7.

I have downloaded the latest (RC4) version of chameleon 2.0

The files in the i386 directory all have Dec 10 2009 dates (except for fdisk which has june 9th 2008).

I have installed the three files as outlined in the documentation in this forum: http://forum.voodooprojects.org/index.php/topic,351.0.html

% diskutil list
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *2.0 TB     disk0
   1:                        EFI                         209.7 MB   disk0s1
   2:                  Apple_HFS NRH  2.0 TB     disk0s2
/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *8.1 GB     disk1
   1:                        EFI                         209.7 MB   disk1s1
   2:                  Apple_HFS Empire EFI              40.0 MB    disk1s2
   3:                  Apple_HFS Mac OS X Install DVD    7.7 GB     disk1s3

when I run fdisk, however, it only shows me one large partition. I can't figure out how to set NRH as active. Do I need to download the unix gpart bootloader? is there a usb stick bootable version? I do f 2 <Enter> w <enter> q <enter> to no effect, 0 is always marked bootable in ./fdisk. I've also tried f 3 as the partitions in fdisk begin with 1 and not 0 to no effect.

Disk: /dev/rdisk0   geometry: -1539437/4/63 [-387938128 sectors]
Offset: 0   Signature: 0xAA55
         Starting       Ending
 #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
------------------------------------------------------------------------
 1: EE 1023 254  63 - 1023 254  63 [         1 - -387938129] GPT         
 2: 00    0   0   0 -    0   0   0 [         0 -          0] unused     
 3: 00    0   0   0 -    0   0   0 [         0 -          0] unused     
 4: 00    0   0   0 -    0   0   0 [         0 -          0] unused     
fdisk: 1> f 2
Partition 2 marked active.
fdisk:*1> w
Device could not be accessed exclusively.
A reboot will be needed for changes to take effect. OK? [n] y
Writing MBR at offset 0.
fdisk: 1> q

are those sizes NEGATIVE, btw, from fdisk?

thanks for any help!

P.

this is a foxxconn atom based hackintosh with 10.6.4 and it boots just fine from chameleon loaded from a usb stick, just not from the drive.

com.apple.Boot.plist

[/Extra] % cat com.apple.Boot.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
   <key>Boot Banner</key>
   <string>No</string>
   <key>Boot Graphics</key>
   <string>Yes</string>
   <key>GraphicsEnabler</key>
   <string>Yes</string>
   <key>Kernel</key>
   <string>mach_kernel.atom</string>
   <key>Kernel Flags</key>
   <string>arch=i386</string>
   <key>Legacy Logo</key>
   <string>Yes</string>
   <key>SMBIOSdefaults</key>
   <string>No</string>
   <key>Timeout</key>
   <string>5</string>
   <key>UHCIreset</key>
   <string>Yes</string>
   <key>device-properties</key>
   <string>c60000000100000002000000610000000200000002 010c00d041030a000000000101060000027fff040010000000 6d006f00640065006c0000000b000000474d41203935302000 00004100410050004c002c00480061007300500061006e0065 006c0000000800000001000000590000000200000002010c00 d041030a0000000001010600001b7fff0400180000006c0061 0079006f00750074002d00690064000000080000000c000000 160000006200750069006c0074002d0069006e000000050000 0001</string>
</dict>
</plist>

Piesia

  • Entrant
  • Posts: 7
Re: boot0: error booting from 2TB Hitachi HD
« Reply #1 on: August 24, 2010, 12:22:28 AM »
I have downloaded and created a gparted live boot cd. When I boot with the cd, the EFI partition has the Boot flag, the NRH partition where mac os x is installed does not.  If I add the Boot flag to the NRH partition, then it doesn't appear at the chameleon boot disk listing. I did modify EFI (which had a Boot flag on it) with the latest chameleon file (R4) and then set Boot again. I get the same errors ending in boot0: error at boot from the hard disk. Booting chameleon from usb and then starting from the NRH partition works fine.  So with Gparted, I'm now back where EFI has the Boot flag set and NRH does NOT have the Boot flag set. I can only start mac os x by first booting chameleon from usb stick.

I also found a reference to boot0hfs and found a copy of that, but it didn't help so I reinstalled chameleon 2.0 R4.

Thanks for any hints to get this partition booting by itself!

Best regards,

P.

Terc

  • Forum Moderator
  • Posts: 129
Re: boot0: error booting from 2TB Hitachi HD
« Reply #2 on: August 24, 2010, 12:46:29 AM »
I can't be sure, but I think those drives have the new, larger sectors?  Also, their 1.5TB models do too.

Piesia

  • Entrant
  • Posts: 7
Re: boot0: error booting from 2TB Hitachi HD
« Reply #3 on: August 24, 2010, 01:10:32 AM »
Terc,

Thanks for your reply! I'll try to dig up the specs on the drive to verify your suspicions. The strange thing is that the drive booted by itself through chameleon just fine until one day I needed to reformat and reinstall mac os x. I just don't remember how I'd installed it before when it worked. Could it be partition size  instead of drive size that's the problem? Perhaps I had more partitions the first time I tried it. (I seem to recall planning to install Windows at one point too, but by the reinstall I'd decided not to do that).

P.

Found it! It is hitachi PN 0S00164 Sata deskstar 3.5" 2.0TB, 32 mb cache, 7200 rpm, and says Mac OS compatible on the box.
Here is its listing at newegg:

http://www.newegg.com/Product/Product.aspx?Item=N82E16822145276

Terc

  • Forum Moderator
  • Posts: 129
Re: boot0: error booting from 2TB Hitachi HD
« Reply #4 on: August 24, 2010, 08:04:49 AM »
If it booted before, then you probably have some issue with the install. I am not aware of any issues with larger sector sizes affecting Chameleon.

Piesia

  • Entrant
  • Posts: 7
Re: boot0: error booting from 2TB Hitachi HD
« Reply #5 on: August 24, 2010, 07:26:06 PM »
Terc,

thanks, that's good news that there are no known problems with large disk sizes, that means my problem is probably fixable ;-)

I think part of my problem is a definite user error, I didn't realize that my NRH drive was booting chameleon from EFI.

Now my problem is that I can do the first two parts of the chameleon install to this EFI partition, but I can't manage to mount it so that I can copy over boot.

Diskutil list says:

   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *2.0 TB     disk0
   1:       Microsoft Basic Data                         209.7 MB   disk0s1
   2:                  Apple_HFS NRH                       2.0 TB     disk0s2

Please note that I must have somehow changed my EFI partition (maybe with gparted live cd?). I thought that it used to say type name EFI.

Do you know how I can change the type back to EFI? I thought it used to be Apple_HFS with name EFI, but I'm not sure.

When I try to mount this EFI partition to edit it, I get an error:

% sudo mount_hfs /dev/disk0s1 /Volumes/EFI
Password:
mount_hfs: Invalid argument

ls -l /Volumes/

drwxr-xr-x+  2 root  admin    68 Aug 24 13:05 EFI
lrwxr-xr-x   1 root  admin     1 Aug 24 13:01 NRH -> /

Basically, the system starts to boot now (I've tried -f to force caches to be rebuilt). I now get:

Version mis-match between kernel and CPU PM
com.apple.driver.AppleIntelCPUPowerManagement (105.10.0)

I understand that this is a kernel mismatch/sleepenabler.kext issue but don't know where to go from here if I can't mount the EFI partition.

Thanks again for any other assistance!

P.



Piesia

  • Entrant
  • Posts: 7
Re: boot0: error booting from 2TB Hitachi HD
« Reply #6 on: August 24, 2010, 10:34:39 PM »
OK, now my EFI partition is EFI again, but I still can't access it. Is this something that chameleon can be booting from?


% diskutil list
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *2.0 TB     disk0
   1:                        EFI                         209.7 MB   disk0s1
   2:                  Apple_HFS New Russian Hackintosh  2.0 TB     disk0s2

% ls -l /b*
-rw-r--r--@ 1 root  admin  320320 Aug 24 10:05 /boot

% ls -l boot
-rw-r--r--@ 1 root  admin  320320 Aug 24 10:05 boot
% sudo mv boot boot.atom
Password:
% sudo cp /Volumes/Mac\ OS\ X\ Install\ DVD/Chameleon-2.0-RC4-r684-bin/i386/boot .
% ls -l bo*
-rw-r--r--@ 1 root  wheel  320320 Aug 24 16:12 boot
-rw-r--r--@ 1 root  admin  320320 Aug 24 10:05 boot.atom
% fc boot boot.atom
%

so this IS the RC 4 boot file on the mac os x partition, I don't know what boot file is on the EFI partition, but I suspect it's out of date (which is why I'm getting the kernel panic that later versions of chameleon patch out on the fly at boot time, right?).

I'm a little nervous about reformatting EFI as mac os x and starting over. Is there an easy way to change JUST the efi partition? I'd like it to be mac os x mountable just in case I need to change it occasionally once I get it working... Is there a recommended way to set up an EFI partition? I found this, but it says it's deprecated:  http://osx86.net/archive/index.php/t-1609.html

There is also this one, which I haven't tried yet. http://tonymacx86.blogspot.com/2010/01/tweaking-your-system-install-chameleon.html. But this link says that boot should NOT be on the efi partition: http://forum.voodooprojects.org/index.php/topic,767.msg3921.html#msg3921http://forum.voodooprojects.org/index.php/topic,767.msg3921.html%23msg3921.

Is there something I need to do or not do with gparted to set this up right?

Thanks for your patience with my newbie questions!

P.

There is one section of the boot that mentions loading Extra/Extensions from rd(0,0). I THINK that's referring to the efi partition.

More info:

I can mount the EFI partition on my bootable USB stock with

mount_msdos /dev/disk1s1

This is an empty partition. The USB stick uses a 40 mb Apple HFS Empire EFI.

When I attempt to mount my hard disk's EFI partition with:

mount_msdos  /dev/disk0s1 /Volumes/EFI

I get this error:

Unsupported sector size (49294) from mount_msdos

« Last Edit: August 25, 2010, 11:45:05 AM by Piesia »

Piesia

  • Entrant
  • Posts: 7
Re: boot0: error booting from 2TB Hitachi HD
« Reply #7 on: August 25, 2010, 01:50:27 PM »
I have got a work-around, but it's not perfect.

I reformatted my EFI partition on the hard disk as HFS as outlined here:

http://tonymacx86.blogspot.com/2010/01/tweaking-your-system-install-chameleon.html

I then installed Chameleon 2.0 RC4 boot and accessory (boot0 and boot1h) files to the EFI partition/disk, copied over the /Extra folder from my USB stick boot and rebooted after removing the usb stick.

I couldn't get my /Extra file to work without the panic I mentioned above, even using Chameleon 2.0 RC4.

If anyone has a suggestion for how to set up a basic /Extra folder that can boot an Atom processor, I'd appreciate it. Thanks, Terc, for all your help!

I wish a good day to all!

P.