Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My problem seems somewhat strange to me. Some time ago i was using triple boot between windows osx and linux with grub installation on the first partition of the hard disk (a small 100mb partition). Everything worked fine, and grub configuration for the osx operation system was something like:
title osx
root (hd0,3)
chainloader +1
makeactive
ok ... so far so good. the makeactive command didn't actually make the 4-th partition in this case, active, as grub still loaded every restart. if it were to make that partition active osx should have started directly .. no grub. problem is i don't quite understand this behavior ...
now i reinstalled grub, same settings, and once grub starts up and i boot into osx, after restarting it boots up osx directly, thus the osx partition is made active. and this is something i do not want ... i want every time the computer starts, grub to start.
i'm sorry, i know i'm not explaining this very clearly, but i hope you got the point ... what am i doing wrong with this ?
ps. if i comment out the makeactive part, the os does not load ... some unknown partition error.
Two points:
making a partition active has no meaning with Linux--Windows, yes. OSX--i dont know.
making a partition active will not affect how grub starts up
Please supply the complete configuration--what partitions, where is the grub config file. etc. Post output of fdisk -l (run as root from Linux)
He said he was booting with Windows , OSX , and Linux.
You should check your partition tables. My guess is that the OSX partition is "bootable" meaning that it boots to this partition (this is how Windows works too). Pixellany is right, fdisk is what you need. Here is what my "fdisk -l" looks like:
Code:
blackbart:~ # fdisk -l
Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 66 530113+ 83 Linux
/dev/hda2 67 197 1052257+ 82 Linux swap / Solaris
/dev/hda3 198 1111 7341705 83 Linux
/dev/hda4 1112 4864 30145972+ 83 Linux
Notice that my /dev/hda1 has a "*" in the boot column. This means that is is enabled to be booted directly. Make sure your Grub partition is the only partition with this boot flag. This should fix your problem (assuming Grub is working correctly).
Oh......Windows, OSX, and Linux (commas are really handy)
Not sure what you are saying about active flags. I thought GRUB would boot to a partition regardless of the flag. If GRUB is in the mbr, you can't bypass it and get to a partition directly. n'est-ce pas??
Oh......Windows, OSX, and Linux (commas are really handy)
Not sure what you are saying about active flags. I thought GRUB would boot to a partition regardless of the flag. If GRUB is in the mbr, you can't bypass it and get to a partition directly. n'est-ce pas??
The booting is started by the BIOS, not GRUB. Most (all?) BIOS will boot the "active" partition on the drive to which it has been pointed. If GRUB is in the MBR of the active partition, GRUB wil start, and, at that point, can boot any partition on any drive. But GRUB must first be started by the BIOS.
First, the MBR is--I believe--defined to be in the 1st sector on the drive (not in a partition). I also often see reference to the boot sector of a partition. This is--eg--where NTLDR lives. With Windows, the code in the MBR takes you to NTLDR in the Windows partition. similarly "chainloader" from GRUB takes you there also.
You can have grub in the MBR AND in a boot sector--then you would chainload from grub to grub
The bios goes to the 1st sector (mbr) looking for boot code. If nothing is there, no boot. (Does not matter how any partition is labelled or what code is there)
I just confirmed on my system that GRUB comes up the same regardless of how any partition boot flags are set.
Ok, sorry for the comma there ... just a typo. 3 OS-es, windows, osx, and linux.
partition table looks like this:
Disk /dev/hdc: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 * 1 14 112423+ 83 Linux
/dev/hdc2 15 2630 21013020 c W95 FAT32 (LBA)
/dev/hdc3 5242 19457 114190020 f W95 Ext'd (LBA)
/dev/hdc4 2631 5241 20972857+ af Unknown
/dev/hdc5 5242 7200 15735636 b W95 FAT32
/dev/hdc6 7201 16338 73400953+ b W95 FAT32
/dev/hdc7 16339 16472 1076323+ 82 Linux swap / Solaris
/dev/hdc8 16473 19457 23976981 83 Linux
Partition table entries are not in disk order
as you can see the bootable flag is set to the first partition on the drive, the one where grub is installed. when i try to boot osx with the makeactive line, the bootable flag is set to the 4-th partition, the one where osx is installed. this is something i don't get, beacuse without makeactive it won't boot, and with it it changes my active partition and the next time i restart it boots directly into osx ... which i don;t want. i know for sure it worked with these settings some time ago (not changing the bootable flag), the only thing that differed was partition sizes ... other than that it was the same. the first 3 partitions by the way are primary ... if this affects anything ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.