Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ahh!!! grub wont boot into xp?? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
ephin a
n00b
n00b


Joined: 10 Jan 2006
Posts: 6

PostPosted: Tue Jan 10, 2006 7:15 pm    Post subject: ahh!!! grub wont boot into xp?? [SOLVED] Reply with quote

hi! im a total n00b trying to get linux going. its great fun and im only just now running into problems, so i guess ive been lucky!

so far i have the genkernel, grub, x, and fluxbox all working well. but then i tried to set up alsa using the alsa-guide.xml and now grub wont boot into windows! it shows up on the menu but then flashes to a black screen and then back to the grub menu. before trying to set up alsa it booted fine, so i am guessing i did something wrong in the alsa setup. here is what i had been doing: i selected the necessary kernel options and saved them. it then said i should update my kernel. i did this with the 'make' command. thats all ive done so far. i dont see why this would mess up booting windows...

here are my partitions:
hda1 winxp ntfs
hda2 boot ext2
hda3 swap
hda4 linux ext3

i havent copied over the new kernel and i might need help with that, but mostly right now i just need to get into windows! im sorry for being such a n00b, im betting the answer should be something obvious, but ive searched around and cant figure it out!


Last edited by ephin a on Tue Jan 10, 2006 11:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
opqdan
Guru
Guru


Joined: 13 Dec 2004
Posts: 429
Location: Redmond, WA, USA

PostPosted: Tue Jan 10, 2006 7:19 pm    Post subject: Reply with quote

You'll need to post your grub.conf
Back to top
View user's profile Send private message
ephin a
n00b
n00b


Joined: 10 Jan 2006
Posts: 6

PostPosted: Tue Jan 10, 2006 7:32 pm    Post subject: Reply with quote

heres the grub.conf im using:

default 0
timeout 30
spalshimage=(hd0,1)/boot/grub/splash.xpm.gz

title=Gentoo Linux 2.6.12-r6
root (hd0,1)
kenrel /boot/kernel-genkernel-x86-2.6.12-gentoo-r6 root=dev/ram0 initlinuxrc ramdisk=8192 real_boot=/dev/hda4 udev video=vesafb:mtrr,ywrap,1280x768-32@85
initrd /boot/initramfs-genkernel-x86-2.6.12-gentoo-r6

title=Windows XP
root (hd0,0)
makeactive
chain loader +1
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Tue Jan 10, 2006 7:43 pm    Post subject: Reply with quote

ephin a wrote:
title=Windows XP
root (hd0,0)
makeactive
chain loader +1

The chainloader command is just 1 word, and you also have a couple of unneeded/unwanted commands in there.

Try this instead.
Code:
title Windows XP
chainloader (hd0,0)+1
Back to top
View user's profile Send private message
ephin a
n00b
n00b


Joined: 10 Jan 2006
Posts: 6

PostPosted: Tue Jan 10, 2006 7:52 pm    Post subject: Reply with quote

i changed and saved. on reboot, when i try to enter windows i get:

Booting Windows XP

root (hd0,0)
Filesystem type unknown, patition type 0x7
makeactive
chainloader (hda0, 0) +1
Error 23: Error while parsing number

Press any key to continue...

then i get tossed back to the grub menu.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Tue Jan 10, 2006 8:04 pm    Post subject: Reply with quote

ephin a wrote:
root (hd0,0)
Filesystem type unknown, patition type 0x7

Grub does not support NTFS, that is why the "root" command fails. You can use "rootnoverify" instead, but neither of these commands is actually needed.
ephin a wrote:
makeactive

This command is a waste of typing, because the Windows partition should be the only one marked "active" to begin with.
ephin a wrote:
chainloader (hda0, 0) +1
Error 23: Error while parsing number

hda0 is not a valid drive, you want hd0 instead.
Back to top
View user's profile Send private message
seeboo
n00b
n00b


Joined: 07 Mar 2005
Posts: 27
Location: Germany

PostPosted: Tue Jan 10, 2006 8:17 pm    Post subject: Reply with quote

ephin a wrote:

kenrel /boot/kernel-genkernel-x86-2.6.12-gentoo-r6 root=dev/ram0 initlinuxrc ramdisk=8192 real_boot=/dev/hda4 udev

This has nothing to do with the problem, but i would change kenrel to kernel ;)
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Tue Jan 10, 2006 8:46 pm    Post subject: Reply with quote

Hi.

Giving the same suggestions people have made, and correcting a few more typos, your grub.conf should be
Code:
default 0
timeout 30
splashimage=(hd0,1)/boot/grub/splash.xpm.gz

title=Gentoo Linux 2.6.12-r6
root (hd0,1)
kernel /boot/kernel-genkernel-x86-2.6.12-gentoo-r6 root=dev/ram0 init=linuxrc ramdisk=8192 real_boot=/dev/hda4 udev video=vesafb:mtrr,ywrap,1280x768-32@85
initrd /boot/initramfs-genkernel-x86-2.6.12-gentoo-r6

title=Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1

_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
ephin a
n00b
n00b


Joined: 10 Jan 2006
Posts: 6

PostPosted: Tue Jan 10, 2006 9:58 pm    Post subject: Reply with quote

sorry for the typos. those were just transcription (since i have no browser up yet on the problem computer).

i changed things to 'rootnoverify' and now i get this error:

Booting 'Windows XP'

rootnoverify (hd0,0)
makeactive
chainloader (hd0,0) +1

Error 1: Filename must be either an absolute pathname or blocklist

Press any key...


any thoughts on why this would be happening in general? the .conf i had before worked just fine until the whole alsa and recompiling attempt...
Back to top
View user's profile Send private message
ephin a
n00b
n00b


Joined: 10 Jan 2006
Posts: 6

PostPosted: Tue Jan 10, 2006 10:43 pm    Post subject: Reply with quote

bump.... really need to get into my other partition, if anyone could help.....
Back to top
View user's profile Send private message
MickKi
Veteran
Veteran


Joined: 08 Feb 2004
Posts: 1158

PostPosted: Tue Jan 10, 2006 10:48 pm    Post subject: Reply with quote

Assuming you haven't deleted your genkernel image from your /boot partition and its path is exactly as it was originally writen in the grub.conf you should be able to boot.

With regards to your WinXP entry try these lines:
Code:
rootnoverify (hd0,0)
makeactive
chainloader +1
Assuming of course that WinXP resides in the first partition of the first drive, otherwise change the rootnoverify (X,Y) to the correct partition.

PS. If this doesn't get you into WinXP . . . you haven't by any chance reinstalled Grub in root (hd0,0) instead of root (hd0)?
_________________
Regards,
Mick
Back to top
View user's profile Send private message
ephin a
n00b
n00b


Joined: 10 Jan 2006
Posts: 6

PostPosted: Tue Jan 10, 2006 11:45 pm    Post subject: Reply with quote

YES!!! changing back to 'chainloader +1' fixed it! THANK YOU! :) :)
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Wed Jan 11, 2006 3:45 am    Post subject: Reply with quote

ephin a wrote:
chainloader (hd0,0) +1

Error 1: Filename must be either an absolute pathname or blocklist

Just in case you were wondering, the error is because you added a space before the "+1" part.
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Wed Jan 11, 2006 3:14 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Duplicate Threads.
Moved in favour of https://forums.gentoo.org/viewtopic-p-764507.html#764507
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum