LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-13-2005, 05:56 PM   #1
Damoek
Member
 
Registered: Mar 2004
Location: Us
Distribution: Ubuntu Dapper
Posts: 74

Rep: Reputation: 16
Gentoo Grub Issue


So Ive done the grub install from the gentoo manual down to the t with the exception of my installation being on /dev/hdb instead of /dev/hda
so, when I finally get to reboot, I cant get into either os

my grub.conf file looks like this


default 0
timeout 30
#splashimage=(hd0,0)/grub/splash.xpm.gz

Only in case you want to dual-boot
title=Windows XP
root (hd0,0)
makeactive
chainloader +1

title=Gentoo Linux 2.4.26-r9
root (hd1,0)
kernel /kernel-2.4.26-gentoo-r9 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hdb3
initrd /initrd-2.4.26-gentoo-r9

I get error 17 when booting linux and error 13 when booting windows... Any ideas where im going wrong??
 
Old 10-13-2005, 06:23 PM   #2
mebrelith
Member
 
Registered: Nov 2004
Location: Torreón, Coahuila, México
Distribution: Gentoo
Posts: 342
Blog Entries: 1

Rep: Reputation: 30
Well it loooks fine to me with one small thing bothering me... that " Only in case you want to dual-boot"... did you add it when you posted or is it like that in your grub.conf? If it is like that in the grub.conf then you need to add the # to the beginning of the line.
 
Old 10-13-2005, 07:55 PM   #3
Damoek
Member
 
Registered: Mar 2004
Location: Us
Distribution: Ubuntu Dapper
Posts: 74

Original Poster
Rep: Reputation: 16
I actually copied the manuals example grub.conf verbatim and made changes for my partitioning scheme. The "dual boot" is not in my actual grub.conf I just copied that over and forgot to take it out before i posted it...
So if nothing looks wrong, then what is my problem? Am i mounting wrong? Im just not sure
 
Old 10-13-2005, 08:02 PM   #4
mebrelith
Member
 
Registered: Nov 2004
Location: Torreón, Coahuila, México
Distribution: Gentoo
Posts: 342
Blog Entries: 1

Rep: Reputation: 30
Hrmmm... could you please post the output of
Code:
fdisk -l
? Just to check.

Also error 17 happens when the target partition has an unvalid format... funny isnt it?

Last edited by mebrelith; 10-13-2005 at 08:11 PM.
 
Old 10-14-2005, 01:21 AM   #5
Damoek
Member
 
Registered: Mar 2004
Location: Us
Distribution: Ubuntu Dapper
Posts: 74

Original Poster
Rep: Reputation: 16
fdisk -l gives this
Device Boot Start End Blocks Id System
/dev/hda1 * 1 2433 1954301 7 HPFS/NTFS

/dev/hdb1 * 1 63 31720+ 83 Linux
/dev/hdb2 64 1056 500472 82 Swap
/dev/hdb3 1057 19846 9470160 83 Linux

ok so the linux box is only running a live cd without network , so I only typed what I thought was relevant, leaving out the heads, cylinders, and tracks because I have no convinent way of transfering the file to and fro. hope this works any help is much appreciated
 
Old 10-14-2005, 10:04 AM   #6
Damoek
Member
 
Registered: Mar 2004
Location: Us
Distribution: Ubuntu Dapper
Posts: 74

Original Poster
Rep: Reputation: 16
so everything looks cool right? I ran into this post somewhere else and it is posted verbatim.. Dont know if this has anything to do with me

Should I try LiLo instead?

Quote:
Well, I solved my problem. It was a little thing that's been around for years, I just never ran into it: the whole 'within 1024 cylinder' thing. Up until this situation, I've always had my hard drive on auto, so for linux installs, it's always seen my drive setup as LBA, so I never had a problem. Windows problems forced me to take it off of Auto and put it on Large. That's what did it.

Last edited by Damoek; 10-14-2005 at 10:08 AM.
 
Old 10-14-2005, 10:17 AM   #7
doralsoral
Member
 
Registered: Aug 2003
Location: raleigh
Distribution: Gentoo 2005.1 x86_64
Posts: 931

Rep: Reputation: 31
try making your root (hd1,0)
 
Old 10-14-2005, 10:19 AM   #8
Damoek
Member
 
Registered: Mar 2004
Location: Us
Distribution: Ubuntu Dapper
Posts: 74

Original Poster
Rep: Reputation: 16
I though I had it as hd1,0
not for the windows partition but what would that matter?
 
Old 10-14-2005, 10:39 AM   #9
doralsoral
Member
 
Registered: Aug 2003
Location: raleigh
Distribution: Gentoo 2005.1 x86_64
Posts: 931

Rep: Reputation: 31
yor first post had it at hd0,0. i could be wrong about this but you said you had it installed on hdb. hda would be hd0 and hdb should be hd1.
 
Old 10-14-2005, 10:56 AM   #10
Damoek
Member
 
Registered: Mar 2004
Location: Us
Distribution: Ubuntu Dapper
Posts: 74

Original Poster
Rep: Reputation: 16
that was an error on my part sorry,
I cant copy things the way i'd like too because this box is using wireless and until i get ndiswrapper on there nothing is going to work the way it should... anyway

I tried to install lilo, and got no love whatsoever

it continued to boot the grub that doesnt work
 
Old 10-14-2005, 11:10 AM   #11
doralsoral
Member
 
Registered: Aug 2003
Location: raleigh
Distribution: Gentoo 2005.1 x86_64
Posts: 931

Rep: Reputation: 31
ok how many partitions do you have /dev/hdb devided into and what are they designated as, ie,, hdb1, hdb2
 
Old 10-14-2005, 11:24 AM   #12
Damoek
Member
 
Registered: Mar 2004
Location: Us
Distribution: Ubuntu Dapper
Posts: 74

Original Poster
Rep: Reputation: 16
three partitions
/dev/hdb1 is /boot ext2
/dev/hdb2 is swap 512mb
/dev/hdb3 is / with the rest of space
 
Old 10-14-2005, 11:48 AM   #13
doralsoral
Member
 
Registered: Aug 2003
Location: raleigh
Distribution: Gentoo 2005.1 x86_64
Posts: 931

Rep: Reputation: 31
ok a couple of questions. what exactly does the error say. i only see that it gives you error 17 and 13 unless i missed something. also are you using genkernel or gentoo-sources. i see you have an initrd image, when i used gentoo i didnt use one and my kernel line looked like:
kernel /kernel-2.4.26-gentoo-r9 root=/dev/hda3 more or less. but i used vanilla sources.

did you install grub on the MBR? also which version of gentoo are you using because you need to use a 2.6 kernel which is on the newer gentoo cds
 
Old 10-14-2005, 12:42 PM   #14
Damoek
Member
 
Registered: Mar 2004
Location: Us
Distribution: Ubuntu Dapper
Posts: 74

Original Poster
Rep: Reputation: 16
I am using gentoo 2004.3
I compiled the kernel at first manually(2.6) and then using genkernel(2.4) on my second install attempt

Same error both times around

the exact error is

filesystem type unknown, partition type 0x7
Error 17: cannot mount selected partition

and I installed to the mbr on /dev/hda
I also just ran FixMBR from the winxp install cd and it did not overwrite the grub install
 
Old 10-14-2005, 01:04 PM   #15
doralsoral
Member
 
Registered: Aug 2003
Location: raleigh
Distribution: Gentoo 2005.1 x86_64
Posts: 931

Rep: Reputation: 31
ok it sounds like you didnt compile the filesystem support ext2 into the kernel. you need to recompile the kernel and make sure you make ext2 filesystem built into the kernel.
 
  


Reply



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
Gentoo... grub problems... "/boot/grub/stage1" exists... no halo14 Gentoo 5 02-06-2011 04:50 PM
gentoo : grub: The file /boot/boot/grub/stage1 not read correctly Boudewijn Linux - Software 3 05-21-2008 03:13 AM
nvidia on gentoo issue... tarionyx Linux - Hardware 2 07-03-2005 08:46 PM
gentoo modules issue fuzzhead85 Linux - Distributions 1 04-29-2005 05:08 PM
Gentoo: GDM issue. g1bb0ns Linux - Newbie 1 06-03-2003 07:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:03 AM.

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