Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I have a 320 gig drive that I have divided into a dozen or so partitions. Three primary, each about 30 gigs, five logical at 30 gigs each, and then a few more for pictures, documents, etc. The first three primary have Windows XP, OpenBSD, FreeBSD respectively, while the first five logical have a mix of more Windows XP, Vista, and a few Linux Distros (Ubuntu, Debian soon, and Gentoo).
I have no problem partitioning a drive with Gparted, or with each distros built in partitioner; that isn't my problem. The problem is that each new distro or BSD install adds it's own loader, and they don't like each other. BSD can only see the operating systems on the primary partitions, and each Linux distro can only see the Windows XP on the primary and the linux distros in the extended partition.
I want a bootloader that I can flag to see Windows XP, Open BSD, FreeBSD, Windows XP, Ubuntu, Debian, Gentoo, and Windows Vista AND pick one accordingly. I have no experience with GRUB, but it seems to have everything I need. My problem is installing it. I'm comfortable burning it to a cd as an .iso in Windows XP, but that's about all. I haven't used Debian in a while, so I'm not comfortable using it.
If I sound like I know what I'm talking about, it's only because I've tried reading everything I could before asking for help. Don't think I actually understand what I'm doing So, I need GRUB to install onto my mbr, I need to know how to get it to recognize each partition, or I need you to tell me what I need. Thanks!
Thanks, I've been thinking about setting some virtual up for a while. You gave me a headstart on hours of work before I would have ended up asking anyway.
I would like to know how to set up GRUB though. Even with only a few operating systems, how can I install and configure GRUB to see a mix of primary and logical partition systems?
Grub is actually pretty easy to set up. So easy, in fact, you typically don't even have to worry about it. Here's a common scenario:
1. You take a PC with Windows on the primary partition and lots of disk space
2. You run "setup" with a distro like SusE, SimplyMepis, Ubuntu. etc etc
3. "Setup" detects Windows
"Setup" figures out how to allocate free space from Windows (asking you politely if it sounds OK with you, before actually doing anything)
"Setup" installs Grub and configures your PC for dual-boot
Everything "just works" and you're happy.
This is absolutely the scenario I'd encourage you to try, first.
Nevertheless, there are lots of resources for using (and, if need be, troubleshooting) Grub. The biggest issue you're likely to run into is incompatibilities between the old Windows MBR (win9x .. Win/XP and Win/2003) and the new Vista boot loader. But again - most distros should handle this for you seamlessly.
If you want to set up something try following this mans suggestions. He does not tell you how large to make the partition for grub but I usually make it 2 meg.
To add additional OS's to grub, edit /boot/grub/menu.lst and add these lines for each OS. I've use this method to boot multiple linuxes and BSDs and it works.
title linux distro name
root (hdx,x)
chainloader +1
The first x is the first primary controller. It will have an id of 0. If linux is on the secondary controller, it's id will be 1.
The second x will be the root partition. Partitions are numbered starting at 0. So, if the linux root partition is on the primary controller on partiton 2 of the hard drive, the grub entry would be listed as
title linux distro name
root (hd0,1)
chainloader +1
Tip:
Here's how to see the root partitions via grub shell. If you manually edited the grub menu and enter the wrong hdx,x address, you can use this tip to find the proper hdx,x root partitions.
First login to a working linux distro and as root, type grub. You will get a grub prompt. Now type
find /sbin/init
Code:
grub> find /sbin/init
(hd0,0)
(hd0,2)
This is my system. I have arch on hd0,0 and slackware on hd0,2
next type quit to exit.
Next re-edit the grub menu with the proper hdx,x address.
BTW, If you are going to have multiple linux OSs, have one linux as your main distro using grub, then as you install additional linux distros, do not install the boot loaders from them.
Use the /boot/grub/menu.lst from your main distro to boot the other distross. All you need are the three lines mentioned above
and you're set. I currently use this method and it works.
Paul, I think you're right. I've decided to go with just a few main OSs, and focus on learning them. Debian, FreeBSD, and Windows in case someone else needs to use my computer/I break everything else Having half a dozen was more of a random idea.
Thanks for the links, GAG, which works great, and GRUB advice.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.