LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   dual boot xp/gentoo (selecting boot for each partition) (https://www.linuxquestions.org/questions/linux-newbie-8/dual-boot-xp-gentoo-selecting-boot-for-each-partition-352690/)

saif__r 08-12-2005 06:23 PM

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


saif__r 08-12-2005 06:39 PM

just want to know if hda1 should be set to boot, or hda2....

0pal_t0ad 08-12-2005 07:14 PM

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

comprookie2000 08-12-2005 08:20 PM

Did you use genkernel?

0pal_t0ad 08-12-2005 09:07 PM

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.

saif__r 08-12-2005 10:13 PM

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

saif__r 08-12-2005 11:59 PM

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!
:)

comprookie2000 08-13-2005 03:48 AM

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 ...

0pal_t0ad 08-13-2005 10:23 AM

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 :D


All times are GMT -5. The time now is 05:47 AM.