InfiniteMac OSx86  


Reply
 
Thread tools Display modes
  #11  
Old 04-16-2009, 04:30 AM
oneshot's Avatar
oneshot oneshot is offline
Panther
 
Join Date: Nov 2008
Location: Sacramento, CA
Posts: 242
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?

Mac OS X 10.5.5 Voodoo 9.5.0 2.7 GHz AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ 2 GB 1334 MHz DDR2 NVIDIA GeForce 9500M-M MB Maxtor 75 GB IDE
Reply With Quote
  #12  
Old 04-16-2009, 06:14 AM
handz handz is offline
Cheetah
 
Join Date: Sep 2008
Posts: 10
Just follow the instructions exactly and you will be up and running.
Reply With Quote
  #13  
Old 04-16-2009, 07:18 AM
oneshot's Avatar
oneshot oneshot is offline
Panther
 
Join Date: Nov 2008
Location: Sacramento, CA
Posts: 242
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

Mac OS X 10.5.5 Voodoo 9.5.0 2.7 GHz AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ 2 GB 1334 MHz DDR2 NVIDIA GeForce 9500M-M MB Maxtor 75 GB IDE
Reply With Quote
  #14  
Old 04-16-2009, 10:05 PM
Dies Dies is offline
Jaguar
 
Join Date: Sep 2008
Posts: 89
Ubuntu uses sudo just like OS X...


sudo su -
Reply With Quote
  #15  
Old 04-16-2009, 10:34 PM
handz handz is offline
Cheetah
 
Join Date: Sep 2008
Posts: 10
Ya, just type "sudo grub", exclude the "su" altogether
Reply With Quote
  #16  
Old 04-16-2009, 10:35 PM
oneshot's Avatar
oneshot oneshot is offline
Panther
 
Join Date: Nov 2008
Location: Sacramento, CA
Posts: 242
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...




I also tried assuming that my HD was hd0

Mac OS X 10.5.5 Voodoo 9.5.0 2.7 GHz AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ 2 GB 1334 MHz DDR2 NVIDIA GeForce 9500M-M MB Maxtor 75 GB IDE
Reply With Quote
  #17  
Old 04-17-2009, 12:26 AM
Dies Dies is offline
Jaguar
 
Join Date: Sep 2008
Posts: 89
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.
Reply With Quote
  #18  
Old 04-17-2009, 12:54 AM
oneshot's Avatar
oneshot oneshot is offline
Panther
 
Join Date: Nov 2008
Location: Sacramento, CA
Posts: 242
Thank you for the quick responce. I tried that and this is what I got...


Mac OS X 10.5.5 Voodoo 9.5.0 2.7 GHz AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ 2 GB 1334 MHz DDR2 NVIDIA GeForce 9500M-M MB Maxtor 75 GB IDE
Reply With Quote
  #19  
Old 04-17-2009, 01:02 AM
cmdshft's Avatar
cmdshft cmdshft is offline
Panther
 
Join Date: Dec 2008
Location: Hackensack, NJ
Posts: 240
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


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.

Mac OS X Leopard 10.5.8 (9L30) | Chameleon 2.0 RC3 | Intel Pentium 4 3Ghz 800Mhz FSB HyperThread 1MB L2 cache SSE3 1MB L2 cache works, cosmetic display of 512KB L2 cache | Asus P4V8X-MX VIA Chipset, VIA-VT8237 Southbridge | AC97 VIA8237 | Dual 1GB 333Mhz DDR SDRAM | nVidia PNY GeForce 7600GS 512MB 8x AGP DVI/TV-Out/VGA [NVinject 0.2.1; QE/CI/QuartzGL/Rotation] | Darwin Kernel Version 9.7.0: Sun Jun 14 20:48:28 IST 2009; Voodoo 2.0 Intel alpha3 :xnu-1228.12.14/BUILD/obj/RELEASE_I386 i386
Reply With Quote
  #20  
Old 04-17-2009, 01:13 AM
Dies Dies is offline
Jaguar
 
Join Date: Sep 2008
Posts: 89
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.



💡 Deploy cloud instances seamlessly on DigitalOcean. Free credits ($100) for InfMac readers.


Last edited by Dies; 04-17-2009 at 01:15 AM.
Reply With Quote
Reply