I installed Chameleon and linux doesn't show up
So I have 2 hardrives. One has OSx86 on it (IDE) and the other has Windows 7 and Ubuntu on it (SATA). When I installed Chameleon I didn't have Ubuntu installed. I just partitioned my SATA drive so I could put it on there. Well in Chameleon…
- Primary Author
- @oneshot Published 2009-04-14
- Collection
- Leopard 10.5
- Archival Footprint
- 28,461 historical reads · 14 curated field notes (from 24 dispatches) · 2009-04-14 – 2009-04-17
- Credited Voices (7)
- @oneshot (9)@Dies (5)@handz (3)@Aydinz (2)@erick2red (2)@cmdshft (2)@Taisto
So I have 2 hardrives. One has OSx86 on it (IDE) and the other has Windows 7 and Ubuntu on it (SATA).
When I installed Chameleon I didn't have Ubuntu installed. I just partitioned my SATA drive so I could put it on there.
Well in Chameleon the little icon for Linux doesn't show up. The one for OSX and Windows do though.
It would be a lot more helpful to me if linux showed up so I wouldn't have to press F11 every time I want to boot into linux.
Anyone know the solution?
Do I just have to reinstall Chameleon or something?
Author Updates & Technical Revisions
Follow-up dispatches by @oneshot
I am using Chameleon 2.0RC1
Why do ya ask?
Btw thank you for the quick reply to my question ^_^
I'll reboot now to see if it worked
EDIT: Reinstalling Chameleon didn't work. Linux still does not show up under the boot loader? Any other ideas?
I installed it on my SATA hard drive. That hard drive also has windows on it.
So my setup is
SATA (windows and linux)
IDE (OSx86)
I'll search around the chameleon forums =P
If anyone knows what I should do on these forums it would be great if you could share your knowledge ^_^
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?
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
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
Ah so it won't be possable to install?
When using Hari Taiki's method I got this btw.
Ohh so I can't partition the drive that I'm wanting to run windows 7 and linux on with chameleon recognizing linux?
Quick question. What is Wubi install? Is that when you install 2 operating systems on one HD?
Synthesized Community Field Notes
14 technical responses curated from 24 original dispatches
yeah, you have to reinstall it.
btw which version of chameleon you using?
just wondering, because the new chameleon is one i havent had a lot of experience with, hmm thats weird, which partition did you reinstall chameleon onto?
because the new chameleon can show you your options over all hdd's whereas the old one couldnt, so i dont see why it wouldnt work. maybe search around here and insanelymac or even at the chameleon forums to see if anyone else has had the same issue.
You need to install grub to the partition itself for Chameleon to pick it up.
@DiesYou need to install grub to the partition itself for Chameleon to pick it up.
so you're saying i need to install chameleon to the MBR and grub to the install linux partition?
Yepp, i guess thats exactly what he meant ( and it works that way )
@TaistoYepp, i guess thats exactly what he meant ( and it works that way )
i'm waiting to know how to instalkl from command line to install new chameleon.
i don't wanna mess my bootloader, and then don't know how to reinstall from a command line (cause i only had kaliway installer, which bring me only terminal app).
But tested that on chameleon 1.12 and works.
1. Boot from a Live CD, like Ubuntu Live, Knoppix, Mepis, or similar.
2. Open a Terminal. Go SuperUser (that is, type "su"). Enter root passwords as necessary.
3. Type "grub" which makes a GRUB prompt appear.
4. Type "find /boot/grub/stage1". You'll get a response like "(hd0)" or in my case "(hd0,3)". Use whatever your computer spits out for the following lines.
5. Type "root (hd0,3)".
6. Type "setup (hd0,3)". This is key. Other instructions say to use "(hd0)", and that's fine if you want to write GRUB to the MBR. If you want to write it to your linux root partition, then you want the number after the comma, such as "(hd0,3)".
7. Type "quit".
8. Restart the system. Remove the bootable CD.
Just follow the instructions exactly and you will be up and running.
Ya, just type "sudo grub", exclude the "su" altogether
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
sudo su -
Now find out what your root partition is identified as
mount
this should give you some output like
/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
/usr/sbin/grub-install /dev/sda6
make sure to replace /dev/sda6 with whatever you got for your / partition.
Just boot your running install of Ubuntu and use:
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.
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:
sudo dd if=/dev/disk0s1 of=./bs bs=512 count=1
You will get a bunch of info, ignore that.
Then:
hexdump ./bs
You will now see a bunch of hex data. If it's:
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:
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.
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.
@oneshotAh so it won't be possable to install?
Not with a Wubi install, use a normal install.
@oneshotWhen using Hari Taiki's method I got this btw.
Of course, because there is essentially no difference between what he told you to do and what I told you to do...
He just skipped the part where I showed you how to figure out what your / partition actually is.
Exactly.
Also, I will also affirm that a Wubi install will not work. "sudo grub-install /dev/sda1" is reporting the error that stage1 cannot be read because it's looking for the stage1 booter in the bootsector of the partition. Since it's not a real partition and only a file, there's no bootsector on that file. Therefor, it cannot read the file. It will only complete the install when it finds a valid stage1 booter in the bootsector, so do a regular full install.
Sources & Contributor Provenance (7 credited usernames · Thread #2589)
| Username | Dossier Contribution | Dispatches | Active Window |
|---|---|---|---|
| @oneshot | Primary Author | 9 | 2009-04-14 → 2009-04-17 |
| @Dies | Core Contributor | 5 | 2009-04-15 → 2009-04-17 |
| @handz | Core Contributor | 3 | 2009-04-15 → 2009-04-16 |
| @Aydinz | Contributor | 2 | 2009-04-14 |
| @erick2red | Contributor | 2 | 2009-04-15 |
| @cmdshft | Contributor | 2 | 2009-04-17 |
| @Taisto | Contributor | 1 | 2009-04-15 |