Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am very close to finishing a dual boot windows xp (fat32) and Gentoo stage1 install.
I have 2 hard drive's a 5 gig /dev/hda being windows, and the second a 160 gig set up for Gentoo as follows /dev/hdb1 boot , /dev/hdb2 swap , and /dev/hdb3 root. I would like to overwrite the mbr for grub to boot windows or Gentoo, do I still follow the grub setup as
grub > root (hd0,0)
grub > setup (hd0)
grub > quit
This won't work because, after grub is installed and you try to boot, grub will look into the windows partition for the grub stages and menu. Change root (hd0,0) to root (hd1,2) to point to the Linux root.
Setup (hd0) is correct if you want grub to write to the MBR and be the bootloader for Linux and windows. The reason for leaving setup at hd0 is that the first hard disk is the master; the second is the slave. The MBR of the master is the one that will be in charge at boot time. Telling grub that the root of the Linux partition is (hd1,2) tell grub where the root of the Linux filesystem is located. Telling grub where to /boot directory is (in the kernel line) tells grub where to find the kernel image to boot.
Splashimage (hd0,0) won't work; the splashimage should be (hd1,2).
The rest seems OK. However, you may have to edit the Linux kernel line to get it to work. Something like: kernel (hd1,0)/kernel-2.6.12-gentoo-r4 (to point grub to the kernel image in /boot).
Last edited by bigrigdriver; 07-13-2005 at 08:01 PM.
Thanks!!!! Ive never setup a dual boot with Linux when I first started learning I took that leap of faith without a dual boot and just ran Linux, but have since found there are a few programs that I need in Windows that wine does'nt support. Setting up grub on a dual boot on two drives is new.
Close bigrigdriver - Gentoo generally uses /boot for grub, not the root.
jonny bravo change all (hd1,2)references in bigrigdrivers post to (hd1,0) and you should be right.
With the root(hd1,0), you also don't need the suggested update to the kernel line - but it also won't do any harm. However you will need to update it for the root= keyword to;
I think I borked it I can get it to boot but no menu listing it's just booting into Gentoo by default from the timeout setting. When it comes up the screen is all obscure. I know from experiance where my login is , I login as root and
then exit and the screen resorts back to normal (legible) I think I may have corrupted something here, but it seems as if Gentoo is ok once I log back in.