InfiniteMac OSx86

InfiniteMac OSx86 (http://infinitemac.com/forum.php)
-   Leopard 10.5 (http://infinitemac.com/forumdisplay.php?f=85)
-   -   I installed Chameleon and linux doesn't show up? (http://infinitemac.com/showthread.php?t=2589)

oneshot 04-16-2009 04:30 AM

umm what is grub?

And as for the command lines to install it that handz posted. Do I have to be in the live CD or can I do this on my already installed linux partition. Also if I can only do this from the live CD am I going to have to reinstall it?


Another thing is. Can you install grub or whatever your saying to install to have chameleon detect linux without having to go through the command lines?

handz 04-16-2009 06:14 AM

Just follow the instructions exactly and you will be up and running.

oneshot 04-16-2009 07:18 AM

when I type in "su" it asks me for a password. I searched google and it says that there is no password for the live CD.

anyways I skiped the step and this is what I got
http://i116.photobucket.com/albums/o...untuubuntu.png

Dies 04-16-2009 10:05 PM

Ubuntu uses sudo just like OS X...


sudo su -

handz 04-16-2009 10:34 PM

Ya, just type "sudo grub", exclude the "su" altogether

oneshot 04-16-2009 10:35 PM

thank you =) so I was able to get to my root and I typed grub and did the commands and this is what I keep getting...

http://i41.tinypic.com/1zbdlki.png


I also tried assuming that my HD was hd0

Dies 04-17-2009 12:26 AM

sudo and su mean nothing inside the grub shell...

You have to follow handz instructions exactly if you want them to work. ;)

Better yet let's try a different approach, boot into your linux installation, not a live cd, and open a terminal then become root with

Code:

sudo su -
Now find out what your root partition is identified as

Code:

mount
this should give you some output like

Code:

/dev/sda6 on / type ext3 (rw)
/proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)

Now install grub into the part with

Code:

/usr/sbin/grub-install /dev/sda6
make sure to replace /dev/sda6 with whatever you got for your / partition.

oneshot 04-17-2009 12:54 AM

Thank you for the quick responce. I tried that and this is what I got...

http://i39.tinypic.com/21mvi95.png

cmdshft 04-17-2009 01:02 AM

Just boot your running install of Ubuntu and use:

Code:

sudo grub-install /dev/sdX
Where X is the drive number. Simple. After that, Chameleon will see Ubuntu.

Now, if you wanna make sure, you can dump the Ubuntu boot sector and run hexdump on it to check the signature.

To do so, boot OS X and launch terminal.

Code:

diskutil list
http://www.hara.ipwn.me/blog/wp-cont.../picture-1.png

Find the partition that says "Linux" in the list, and note it's /dev/ location. For me, it was /dev/disk0s1.

So now, to dump the bootsector of my Ubuntu drive, I did the following:

Code:

sudo dd if=/dev/disk0s1 of=./bs bs=512 count=1
You will get a bunch of info, ignore that.

Then:

Code:

hexdump ./bs
You will now see a bunch of hex data. If it's:

Code:

00001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0000200

Then the bootloader is not installed properly and you must go attempt it again.

If it is:

Code:

00001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa
0000200

Then it's installed correctly and Chameleon will see it. It checks for the last two bytes for 55 aa. This tells Chameleon the bootsector is valid.

Dies 04-17-2009 01:13 AM

a.) Not sure why you're trying to install grub to /dev/sda1 when the part mounted at root is

/host/ubuntu/disks/root.disk

b.) Not sure why you didn't mention this whole time that you were talking about a Wubi install and not a normal install...

c.) Now that I see you are working with a Wubi install and not a regular install into an actual partition on an actual hard drive. I can tell you that what you are trying to do will never work. Since your "install" is just a regular file within another partition, Chameleon will not bother with it.