Jump to content

HELP TOPIC - for help in OS X Yosemite (10.10) and below


Deltac0
 Share

2,805 posts in this topic

Recommended Posts

Done. Had to use sudo

 

sudo VBoxManage internalcommands createrawvmdk -filename sda5.vmdk -rawdisk /dev/sda -partitions 5 -relative
[sudo] password for ananthakrishnan:
RAW host disk access VMDK file sda5.vmdk created successfully.

 

I am assuming my gparted work was ok. Also what about ML?

Link to comment
Share on other sites

Done. Had to use sudo

 

sudo VBoxManage internalcommands createrawvmdk -filename sda5.vmdk -rawdisk /dev/sda -partitions 5 -relative
[sudo] password for ananthakrishnan:
RAW host disk access VMDK file sda5.vmdk created successfully.

 

I am assuming my gparted work was ok. Also what about ML?

I am sorry. I did not give you a clear instruction.

Just delete sda*.vmdk, and try it again without sudo because you use VB not in su mode.

And, post result here.

 

Sorry, i missed the first line.

As a user, you do not have a permition to disk, neither VB.

So, you need to give a permition to a user for w.

There is a proper way to to do it, refer to VB User's Guide.

But, because you do not care about system security, let's do it simple way.

 

In "user setting" in linux, edit your login user; imake it as "disk" group also(and may be "root" group").

Refresh setting, and try again to make a vmdk file in user mode, not in su mode.

If you can not, maybe rebooting is needed.

Link to comment
Share on other sites

Here you go:

VBoxManage internalcommands createrawvmdk -filename sda5.vmdk -rawdisk /dev/sda -partitions 5 -relative
VBoxManage: error: Cannot open the raw disk '/dev/sda': VERR_ACCESS_DENIED
VBoxManage: error: The raw disk vmdk file was not created

Link to comment
Share on other sites

Here you go:

VBoxManage internalcommands createrawvmdk -filename sda5.vmdk -rawdisk /dev/sda -partitions 5 -relative
VBoxManage: error: Cannot open the raw disk '/dev/sda': VERR_ACCESS_DENIED
VBoxManage: error: The raw disk vmdk file was not created

I editted a previous post. There is an instruction for making a user vmdk.

Link to comment
Share on other sites

Done, I added to disk and root. Also had to restart.

 

I do not know if root was necessary.....

Yah, I don't know neither. You could try by take out root.

I did for other purpose. I want to login to root by su command instead typing sudo every time.

 

Anyway, now ready to restore an osx vm to a raw disk.

In your VM directory, you shold have two files; sda5.vmdk and sda5-pt.vmdk.

Check it.

 

1. In VB setting, add your sda5.vmdk to SATA controller.

2. Boot into SL.

3. Using Disk utility, format a partition of sda5.

4. Restore; sorce is your Lion partion, destination is sda5.

5. Install your Chameleon again to sda5 partition to make sure.

6. Power down, boot into a Lion that you made newly (raw disk).

 

If secessful, then you have Lion in your real HDD. Just one more step is left to finish.

Let me know after success, so we can proceed to make Lion bootable through grub.

Link to comment
Share on other sites

I guess after I finish it all off I can remove disk and root correct?

 

In disk utility, I directly saw my partition formatted in hfs+, so I did not need to do a partition format. I directly did a restore. Installed chameleon. It booted fine with the new raw disk :)

 

Okay - so now for the grub changes

 

I got 2 questions:

1. What about post installation, kexts etc?

2. Also I guess we are not going to get back to ML right?

Link to comment
Share on other sites

I guess after I finish it all off I can remove disk and root correct?

 

In disk utility, I directly saw my partition formatted in hfs+, so I did not need to do a partition format. I directly did a restore. Installed chameleon. It booted fine with the new raw disk :)

 

Okay - so now for the grub changes

 

I got 2 questions:

1. What about post installation, kexts etc?

2. Also I guess we are not going to get back to ML right?

VB User's manual and forum can give a proper way to do (handling a raw disk), so use that method.

For ML, method is the exactly same,; make a ML VM, restore to a raw disk.

Also, you could try X4, if not workin, then your extra tow cores may not be stable enough for OSX.

You may adjust core voltage, but extra careful; you may destroy your cpu.

And, for post instalation, you better ask to help form mac experts here.

I will be back within 30 min for grub instruction.

Link to comment
Share on other sites

Actually I still have not removed my OC / 2 extra core unlocking etc. I just wanted to try Lion before all that.

 

As for ML I have not had luck with VB - you know that, so I do not know how I can get ML to work.

Link to comment
Share on other sites

Actually I still have not removed my OC / 2 extra core unlocking etc. I just wanted to try Lion before all that.

 

As for ML I have not had luck with VB - you know that, so I do not know how I can get ML to work.

OK, here is for grub modification;

1. Edit grub.cfg in your /boot /(grub2 or grub depending on linux distro)

Maybe it is read only. Then give it +w permmition.

2. Add the following

 

menuentry 'Lion' --class osx --class os {

insmod hfsplus

 

set root='hd0,5'

multiboot /boot

}

 

There is a proper way to do using custum config.

The above method is just quick test. If you update grub, it may be overwritten.

So, follow grub manual for permanant.

One more thing is I do not know the requirment for OSX booting.

It may require OSX should be in primary partition.

Right now, OSX is in a logical parttion. Try it.

If inot working, then you need to switch between /home (sda3) and osx parttion.

This will be extensive work.

I hope it works.

When you boot into real osx through grub, you may face lots of problems

because now osx uses your real physical peripherals.

In that case, ask help from mac experts and go back to VB, correct it, try again.

 

Let me know your success. So, I can take a rest.

Good luck.

Link to comment
Share on other sites

I made the change to grub2.cfg. When I restarted I did see the Lion option in the grub screen but when I try to use it I get

error: File '/boot' not found.

 

Could this be because of os x not being in a primary partition?

Link to comment
Share on other sites

I made the change to grub2.cfg. When I restarted I did see the Lion option in the grub screen but when I try to use it I get

error: File '/boot' not found.

 

Could this be because of os x not being in a primary partition?

I have oSX in sda3, and works.

Check there is "boot" file in your root of osx.

and try

set root='hd0, msdos5'

in your grub.cfg.

 

EDIT:

I did quick test, putting "boot" file in logical drive.

When I try to boot from a logical drive, I have a different error because I did not put an OS there.

At least grub recognize a "boot" file. Yeh, it should.

But, your error tells grub does not recognize your OSX partition.

One reason may be that you did not format the partition inside osx.

If you still have the same error, then try restore OSX to a raw disk. This time, erase first.

Or, maybe you do not have "hfsplus" module for grub in your /boot/grub/i386-pc/ if you use ubuntu type linux.

If not there, make sure you use grub2.

Check it please.

Link to comment
Share on other sites

ananthakrishnan@ananthakrishnan ~ $ cd /boot/
ananthakrishnan@ananthakrishnan /boot $ cd grub2/
ananthakrishnan@ananthakrishnan /boot/grub2 $ ls
device.map fonts grub.cfg grubenv i386-pc locale splash.xpm.gz themes
ananthakrishnan@ananthakrishnan /boot/grub2 $

 

I think this means that I have grub2 correct?

 

Also I cannot seem to find a boot file in either my Mac Lion VB sata nor in my raw disk mac lion. Can I copy it from my SL of VB?

EDIT : There is no boot file in SL as well, am I blind or is it because of chameleon?

 

I will try the erase/restore option and let you know

 

EDIT 2:

 

No luck dkechoi, I did a erase/restore operation on the raw disk but still I get the identical error I mentioned before

Link to comment
Share on other sites

ananthakrishnan@ananthakrishnan ~ $ cd /boot/
ananthakrishnan@ananthakrishnan /boot $ cd grub2/
ananthakrishnan@ananthakrishnan /boot/grub2 $ ls
device.map fonts grub.cfg grubenv i386-pc locale splash.xpm.gz themes
ananthakrishnan@ananthakrishnan /boot/grub2 $

 

I think this means that I have grub2 correct?

 

Also I cannot seem to find a boot file in either my Mac Lion VB sata nor in my raw disk mac lion. Can I copy it from my SL of VB?

EDIT : There is no boot file in SL as well, am I blind or is it because of chameleon?

 

I will try the erase/restore option and let you know

 

EDIT 2:

 

No luck dkechoi, I did a erase/restore operation on the raw disk but still I get the identical error I mentioned before

First make sure hidden files are visible.

If still you don't see "boot" file in your root, let me know.

Link to comment
Share on other sites

Yeah, I do have show all files enabled. No boot

You should have "boot" file OSX partition.

 

1. Install chameleon again for each OS partition.

2. Open terminal form Application/Utility

3. Type "cd /V*/Mac*/usr/stand*/i386, thn you see "boot" file .

3 Type "cp boot /V*/Mac*/", repeat with name of raw HDD osx instead of "Mac"

 

Then try real booting.

Link to comment
Share on other sites

dkechoi

I installed chameleon on both my SL and Mac Lion (raw disk) partition.

I saw the boot file in the SL but still I did not see on in the raw disk.

 

So I dragged the SL's boot into the raw disk.

 

Rebooting and choosing Lion in grub still results in the same error :(

Link to comment
Share on other sites

dkechoi

I installed chameleon on both my SL and Mac Lion (raw disk) partition.

I saw the boot file in the SL but still I did not see on in the raw disk.

 

So I dragged the SL's boot into the raw disk.

 

Rebooting and choosing Lion in grub still results in the same error :(

I will figure out what to do.

Meanwhile, you can play with Lion VM.

I will get back to you soon.

Link to comment
Share on other sites

where i can find hd 6950 kexts?

 

look here

http://www.insanelym...-mountain-lion/

 

you should adjust the info.plist with your hardware device ID und Vendor ID. install the systeminfo tool so that you get all the details of yourHardware

Edited by spakk
  • Like 1
Link to comment
Share on other sites

Ok, thanks :)

Off to hit the sack - 2 AM here !!

 

OK, first try

sudo /usr/sbin/update-grub2

then check grub is adding OSX or not.

If it adds OSX.

then use this

 

menuentry 'Lion' --class osx --class os {

insmod part_msdos

insmod hfsplus

 

set root='hd0,msdos5'

multiboot ('hd0,msdos5')/boot

}

 

This should work for a logical partition also (I tested).

 

If grub does not add OSX menu, we need figure out what is wrong.

You can get answer from here; http://www.insanelym...r-its-possible/

 

Let me know result you got.

Link to comment
Share on other sites

@dkechoi

In /usr/sbin the only grub items that I see are:

grub2-bios-setup

grub2-mknetdir

grub2-reboot

grub2-install

grub2-ofpathname

grub2-set-default

grub2-mkconfig

grub2-probe

grub2-sparc64-setup

 

How exactly does one check if grub is adding os x?

Link to comment
Share on other sites

@dkechoi

 

I finally have some good news. It all worked. I changed the line

set root='hd0,5' to set root=(hd0,5)

And I copied the boot file from SL to the Lion raw disk (I already did this but it was missing again!) - I do not know how it stuck in this time.

But this time when I chose Lion from grub 2 it booted in os x fine. Screen shot attached

 

:) :)

 

So now if I want to add in some kexts etc I can just do it via SL VB and then boot using grub2 to see if it is working right.

 

One thing that I have no idea about - when I did a restart the machine just hung, I had to use the power button (cold boot) to restart. How does one fix this?

 

Thanks again for all the help :)

 

Peace

 

PS : What could be the reason for ML to nor work even on my VB?

post-1149290-0-45023700-1366525216_thumb.jpg

  • Like 1
Link to comment
Share on other sites

One thing that I have no idea about - when I did a restart the machine just hung, I had to use the power button (cold boot) to restart. How does one fix this?

 

Glad to know dkechoi was able to help you: congratulations to you both, and welcome to AMD hackintoshing. To solve restart/shutdown issues, install a kext called EvoReboot.kext. Later you can solve it by patching your DSDT.

 

All the best!

Link to comment
Share on other sites

 Share

×
×
  • Create New...