LinuxQuestions.org
Review your favorite Linux distribution.
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 10-10-2003, 05:46 PM   #16
-navairum-
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Gentoo 2.4
Posts: 33

Original Poster
Rep: Reputation: 15

wehen i type root blah it displays the filesystem info
then i type the chaingloader and i t gives me "error 13: invalid or unsupported executable format"
if i type boot next it says "error 8: kernel must be loaded"
 
Old 10-10-2003, 06:21 PM   #17
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
ok it means that you do not have grub installed in the bootsector
boot with the live CD again, mount the gentoo partition somewhere (say /mnt/gentoo)
then
chroot /mnt/gentoo
make sure grub is installed ("emerge -s grub" to see)
if it's installed you'll have a /boot/grub directory
open grub.conf or just copy grub.conf.sample to grub.conf
and make sure something like this is in grub.conf:

#Start of grub.conf
timeout 10
default 0

title Gentoo
root (hdX,X)
kernel <location of the kernel, eg /boot/vmlinuz-2.4.20> root=/dev/hdX
#End of grub.conf

change /dev/hdX to where your root filesystem is, type "mount" to find out
save the changes
now type "grub"
you'll get the same grub prompt you've been using, first do root (hdX,X) again
then
setup (hdX,X)
this should install grub into the bootsector
Now boot with the bootdisk and use the chainloader command and try to boot it, if it works then repeat the process of extracting the bootsector with dd and update boot.ini.
By the way you don't have a separate /boot partition do you? if so then you should use it instead when setting up the root in grub
 
Old 10-10-2003, 06:30 PM   #18
-navairum-
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Gentoo 2.4
Posts: 33

Original Poster
Rep: Reputation: 15
Yes i have a /boot /swap and a root partition. So instead of using root, how do i do the boot partition (sorry for the inconveniance)
thanks for al lyour help so far

by the way, i am goign out in a bit do you have msn or icq?

Last edited by -navairum-; 10-10-2003 at 06:32 PM.
 
Old 10-10-2003, 06:37 PM   #19
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
ok in grub prompt, the "root" you set should be your boot partition, it has nothing to do with the actual root filesystem of your installation, it is the root of grub.
procedures are the same, first boot with the bootdisk, root (hdX,X) to where your /boot partition is
chainloader +1
boot
and see if it works, if it works then all is good just get into gentoo and extract the bootsector of the /boot partition, then update boot.ini.
otherwise following the instructions to install grub to the bootsector of the boot 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
dual boot xp/gentoo (selecting boot for each partition) saif__r Linux - Newbie 8 08-13-2005 11:23 AM
Dual boot XP / Gentoo gbkyle Linux - Laptop and Netbook 3 09-15-2004 04:58 AM
Dual boot w/ Gentoo/xp pro vs. gentoo-invalid partition table bobbear Linux - Software 3 02-10-2004 05:28 PM
Dual boot with Gentoo and XP jiggywiggy Linux - General 4 02-04-2004 07:43 PM
Gentoo w/ a dual boot augamecock Linux - Distributions 2 05-01-2002 11:12 AM


All times are GMT -5. The time now is 11:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration