LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 08-12-2005, 06:23 PM   #1
saif__r
LQ Newbie
 
Registered: Aug 2005
Posts: 7

Rep: Reputation: 0
dual boot xp/gentoo (selecting boot for each partition)


Dualboot gentoo and winxp pro

Using
Code:
fdisk /dev/hda
I get

Code:
Command (m for help): p

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       3590      28836643+     7   HPFS/NTFS
/dev/hda2      3591       3604        112455      83  Linux
/dev/hda3      3605       3671        538177+     82  Linux swap / Solaris
/dev/hda4      3672       4864       9582772+     83  Linux
for my partitions.

My question is, do I have the "*" in the correct place by placing it next to hda1 (windows XP), or should it be next to hda2 (linux boot)?

I am going to be using GRUB as my bootloader.

Here is the grub code:
Code:
default 1
timeout 30

splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux 2.6.11-r3

root (hd0,1)
kernel /kernel-2.6.11-gentoo-r3 root=/dev/hda4

title=Windows XP Professional
rootnoverify (hd0,0)
makeactive
chainloader +1
 
Old 08-12-2005, 06:39 PM   #2
saif__r
LQ Newbie
 
Registered: Aug 2005
Posts: 7

Original Poster
Rep: Reputation: 0
just want to know if hda1 should be set to boot, or hda2....
 
Old 08-12-2005, 07:14 PM   #3
0pal_t0ad
Member
 
Registered: Feb 2004
Location: Southampton, England
Distribution: Laptop:Gentoo-i686-2.6.9-r9 Desktop:Slackware10 2.4.26
Posts: 298

Rep: Reputation: 30
i don't think the * matters too much but if have a look at your grub config, it's looking for the splash image /dev/hda1 (hd0,0) when it's actually in your boot partition which is /dev/hda2 or (hd0,1).

Also, after kernel you need to specify where you real root(/) partition is eg.
Code:
kernel /kernel-2.6.11-gentoo-r11 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda4
*edit* just noticed that you do have the root thing, but i'll leave it there anyway :P

Last edited by 0pal_t0ad; 08-12-2005 at 07:17 PM.
 
Old 08-12-2005, 08:20 PM   #4
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
Did you use genkernel?
 
Old 08-12-2005, 09:07 PM   #5
0pal_t0ad
Member
 
Registered: Feb 2004
Location: Southampton, England
Distribution: Laptop:Gentoo-i686-2.6.9-r9 Desktop:Slackware10 2.4.26
Posts: 298

Rep: Reputation: 30
Quote:
Originally posted by comprookie2000
Did you use genkernel?
genkernel doesn't set grub up, it only does the whole make bzimage, make modules etc.
 
Old 08-12-2005, 10:13 PM   #6
saif__r
LQ Newbie
 
Registered: Aug 2005
Posts: 7

Original Poster
Rep: Reputation: 0
i did not use genkernel

i put the asterisk under hda2 (linux boot)

rebooted after installation

works perfectlly

my 1st linux install, and it was gentoo on a laptop, i hear thats a good accomplishment....

anyways, thanks for all the posts




i will look into the
Quote:
your grub config, it's looking for the splash image /dev/hda1 (hd0,0) when it's actually in your boot partition which is /dev/hda2 or (hd0,1).
and get that fixed (although i did get a splash image..... dunno how)

thanks all once again
 
Old 08-12-2005, 11:59 PM   #7
saif__r
LQ Newbie
 
Registered: Aug 2005
Posts: 7

Original Poster
Rep: Reputation: 0
i was wrong on my initial post...

grub has the following code:

...
Code:
splashimage=(hd0,1)/grub/splash.xpm.gz
....

and not what I had initially said, which was
Code:
splashimage=(hd0,0)/grub/splash.xpm.gz

So im good to go!
 
Old 08-13-2005, 03:48 AM   #8
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
Quote:
Originally posted by 0pal_t0ad
i don't think the * matters too much but if have a look at your grub config, it's looking for the splash image /dev/hda1 (hd0,0) when it's actually in your boot partition which is /dev/hda2 or (hd0,1).

Also, after kernel you need to specify where you real root(/) partition is eg.
Code:
kernel /kernel-2.6.11-gentoo-r11 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda4
*edit* just noticed that you do have the root thing, but i'll leave it there anyway :P
Thats for Genkernel ...
 
Old 08-13-2005, 10:23 AM   #9
0pal_t0ad
Member
 
Registered: Feb 2004
Location: Southampton, England
Distribution: Laptop:Gentoo-i686-2.6.9-r9 Desktop:Slackware10 2.4.26
Posts: 298

Rep: Reputation: 30
uh uh! when i use "genkernel --menuconfig all", it always tells me update grub.conf at the end, it doesn't do it for me.

And congrats on getting gentoo running on your first attempt at linux with only a minor error like, wrong bootable partition
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Blank screen after selecting boot option in Gentoo (Just installed) BuckRogers01 Linux - Distributions 2 08-30-2005 01:25 PM
Dual boot w/ Gentoo/xp pro vs. gentoo-invalid partition table bobbear Linux - Software 3 02-10-2004 04:28 PM
Dual boot with Gentoo and XP jiggywiggy Linux - General 4 02-04-2004 06:43 PM
XP and gentoo dual boot -navairum- Linux - Newbie 18 10-10-2003 05:37 PM
dual boot - blinking cursor after selecting LINUX at win2k loader its4 Linux - General 7 06-26-2002 01:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration