public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] [OT] GRUB won't boot my new Gentoo install
@ 2005-08-05 11:25 Dan Johansson
  2005-08-05 12:12 ` Uwe Thiem
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Dan Johansson @ 2005-08-05 11:25 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1612 bytes --]

Hi,

At the moment I'm trying to upgrade one of my old computers from SuSE to 
Gentoo. I have install a second SCSI-disk and installed Gentoo on this second 
disk using a stage-1 install. But when I try to boot my new install GRUB 
hangs (kernel does not uncompress) after I have selected the kernel.

This is the output from grub after selecting my gentoo setup.

root (hd1,2)
	Filesystem type is ext2fs partition type 0x83
kernel /kernel-2.6.12-r6 root=/dev/sdb2 acpi=off
	[Linux-bzImage, setup=0x1200, size=0x165a46]
(and here it hangs....)

I have installed grub to MBR of the first SCSI-disk (sda) and I'm having my 
grub files on sdb3.

Here's my grub.conf file:

# By default, boot the first entry.
default 0

# By default boot the old SuSE (until Gentoo boots OK)
title SuSE
    kernel (hd0,1)/boot/vmlinuz root=/dev/sda2   acpi=off splash=silent 
showopts
    initrd (hd0,1)/boot/initrd

# For booting Gentoo 2.6.12-r6
title  Gentoo 2.6.12-r6
root (hd1,2)
kernel /kernel-2.6.12-r6 root=/dev/sdb2 acpi=off

The second SCSI-disk (Gentoo) has the following partitions:
/dev/sdb1	swap
/dev/sdb2	/
/dev/sdb3	/boot
/dev/sdb4	LVM

The Kernel is compiled without Module support and all necessary drivers are 
compiled into the kernel.

Booting the old SuSE installation works without problems but Gentoo does not.
Any suggestions on what could be wrong?

Regards,
-- 
Dan Johansson, <http://www.dmj.nu>
***************************************************
This message is printed on 100% recycled electrons!
***************************************************

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] [OT] GRUB won't boot my new Gentoo install
@ 2005-08-05 11:26 John
  0 siblings, 0 replies; 11+ messages in thread
From: John @ 2005-08-05 11:26 UTC (permalink / raw
  To: gentoo-user

This email address is being abandoned due to the sick amount of junk mail I receive.  Please stop spamming it.


If you are a friend and need to contact me I can be reached at:


Email: firstinitiallastinitial at neochicago.com
IRC: scofflaw on EFnet


Thanks!

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] [OT] GRUB won't boot my new Gentoo install
  2005-08-05 11:25 [gentoo-user] [OT] GRUB won't boot my new Gentoo install Dan Johansson
@ 2005-08-05 12:12 ` Uwe Thiem
  2005-08-05 12:37 ` Holly Bostick
  2005-08-06  1:24 ` [gentoo-user] " maxim wexler
  2 siblings, 0 replies; 11+ messages in thread
From: Uwe Thiem @ 2005-08-05 12:12 UTC (permalink / raw
  To: gentoo-user

On 05 August 2005 12:25, Dan Johansson wrote:
> Hi,
>
> At the moment I'm trying to upgrade one of my old computers from SuSE to
> Gentoo. I have install a second SCSI-disk and installed Gentoo on this
> second disk using a stage-1 install. But when I try to boot my new install
> GRUB hangs (kernel does not uncompress) after I have selected the kernel.
>
> This is the output from grub after selecting my gentoo setup.
>
> root (hd1,2)
> 	Filesystem type is ext2fs partition type 0x83
> kernel /kernel-2.6.12-r6 root=/dev/sdb2 acpi=off
> 	[Linux-bzImage, setup=0x1200, size=0x165a46]
> (and here it hangs....)
>
> I have installed grub to MBR of the first SCSI-disk (sda) and I'm having my
> grub files on sdb3.
>
> Here's my grub.conf file:
>
> # By default, boot the first entry.
> default 0
>
> # By default boot the old SuSE (until Gentoo boots OK)
> title SuSE
>     kernel (hd0,1)/boot/vmlinuz root=/dev/sda2   acpi=off splash=silent
> showopts
>     initrd (hd0,1)/boot/initrd
>
> # For booting Gentoo 2.6.12-r6
> title  Gentoo 2.6.12-r6
> root (hd1,2)
> kernel /kernel-2.6.12-r6 root=/dev/sdb2 acpi=off
>
> The second SCSI-disk (Gentoo) has the following partitions:
> /dev/sdb1	swap
> /dev/sdb2	/
> /dev/sdb3	/boot
> /dev/sdb4	LVM
>
> The Kernel is compiled without Module support and all necessary drivers are
> compiled into the kernel.

Add "doscsi" to the kenel options.

Uwe

-- 
95% of all programmers rate themselves among the top 5% of all software 
developers. - Linus Torvalds

http://www.uwix.iway.na (last updated: 20.06.2004)
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] [OT] GRUB won't boot my new Gentoo install
  2005-08-05 11:25 [gentoo-user] [OT] GRUB won't boot my new Gentoo install Dan Johansson
  2005-08-05 12:12 ` Uwe Thiem
@ 2005-08-05 12:37 ` Holly Bostick
  2005-08-06  9:09   ` Dan Johansson
  2005-08-06  1:24 ` [gentoo-user] " maxim wexler
  2 siblings, 1 reply; 11+ messages in thread
From: Holly Bostick @ 2005-08-05 12:37 UTC (permalink / raw
  To: gentoo-user

Dan Johansson schreef:
> Hi,
> 
> At the moment I'm trying to upgrade one of my old computers from SuSE to 
> Gentoo. I have install a second SCSI-disk and installed Gentoo on this second 
> disk using a stage-1 install. But when I try to boot my new install GRUB 
> hangs (kernel does not uncompress) after I have selected the kernel.
> 
> This is the output from grub after selecting my gentoo setup.
> 
> root (hd1,2)
> 	Filesystem type is ext2fs partition type 0x83
> kernel /kernel-2.6.12-r6 root=/dev/sdb2 acpi=off
> 	[Linux-bzImage, setup=0x1200, size=0x165a46]
> (and here it hangs....)
> 
> I have installed grub to MBR of the first SCSI-disk (sda) and I'm having my 
> grub files on sdb3.
> 
> Here's my grub.conf file:
> 
> # By default, boot the first entry.
> default 0
> 
> # By default boot the old SuSE (until Gentoo boots OK)
> title SuSE
>     kernel (hd0,1)/boot/vmlinuz root=/dev/sda2   acpi=off splash=silent 
> showopts
>     initrd (hd0,1)/boot/initrd
> 
> # For booting Gentoo 2.6.12-r6
> title  Gentoo 2.6.12-r6
> root (hd1,2)
> kernel /kernel-2.6.12-r6 root=/dev/sdb2 acpi=off
> 
> The second SCSI-disk (Gentoo) has the following partitions:
> /dev/sdb1	swap
> /dev/sdb2	/
> /dev/sdb3	/boot
> /dev/sdb4	LVM
> 
> The Kernel is compiled without Module support and all necessary drivers are 
> compiled into the kernel.
> 
> Booting the old SuSE installation works without problems but Gentoo does not.
> Any suggestions on what could be wrong?
> 
> Regards,

Not without knowing at what point the boot fails.

What is the error you're getting, and at what point after selecting the
Gentoo entry?

Secondly, you have only one separate boot partition? Meaning that the
SuSE /boot folder is on the SuSE partition?

That might be your problem-- since that would mean that you've got
possibly two installs of GRUB (one in the SuSE /boot folder and one in
the Gentoo /boot partition).

So you've got to wonder which one is running. At least I did.

I also dual-boot SuSE and Gentoo (SuSE is my fallback in case I break
Gentoo so badly that I need to use something else to fix it), and what I
did (since I 'really' use the Gentoo GRUB, and the Gentoo /boot
partition) was to copy the SuSE kernel (and System Map, and config) to
my Gentoo /boot folder.

Perhaps you need to do that in reverse (copy the compiled kernel and
related files to your SuSE /boot folder).

HTH,
Holly
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] [OT] GRUB won't boot my new Gentoo install
  2005-08-05 11:25 [gentoo-user] [OT] GRUB won't boot my new Gentoo install Dan Johansson
  2005-08-05 12:12 ` Uwe Thiem
  2005-08-05 12:37 ` Holly Bostick
@ 2005-08-06  1:24 ` maxim wexler
  2 siblings, 0 replies; 11+ messages in thread
From: maxim wexler @ 2005-08-06  1:24 UTC (permalink / raw
  To: gentoo-user

> Booting the old SuSE installation works without
> problems but Gentoo does not.
> Any suggestions on what could be wrong?

Have you tried grub's map command? $info grub has
detailed instructions.

> 
> Regards,
> -- 
> Dan Johansson, <http://www.dmj.nu>
> ***************************************************
> This message is printed on 100% recycled electrons!
> ***************************************************
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] [OT] GRUB won't boot my new Gentoo install
  2005-08-05 12:37 ` Holly Bostick
@ 2005-08-06  9:09   ` Dan Johansson
  2005-08-06 18:43     ` Richard Fish
  0 siblings, 1 reply; 11+ messages in thread
From: Dan Johansson @ 2005-08-06  9:09 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1990 bytes --]

On Friday 05 August 2005 14.37, Holly Bostick wrote:
> Dan Johansson schreef:
> ....
> Not without knowing at what point the boot fails.
>
> What is the error you're getting, and at what point after selecting the
> Gentoo entry?
root (hd1,2)
	Filesystem type is ext2fs partition type 0x83
kernel /kernel-2.6.12-r6 root=/dev/sdb2 acpi=off
 	[Linux-bzImage, setup=0x1200, size=0x165a46]
(and here it hangs...., no more activity)

> Secondly, you have only one separate boot partition? Meaning that the
> SuSE /boot folder is on the SuSE partition?
For the Gentoo installation /boot is on it's own partition, for the SuSE /boot 
is on the / partition.

> That might be your problem-- since that would mean that you've got
> possibly two installs of GRUB (one in the SuSE /boot folder and one in
> the Gentoo /boot partition).
>
> So you've got to wonder which one is running. At least I did.
Yes there are two installs of GRUB but only the Gentoo one is used. I can see 
that on the release numbers (Gentoo 0.96, SuSE 0.93) and that the right 
grub.conf (menu.lst) is shown when I boot (Only the Gentoo one has entries 
for Gentoo). 

>
> I also dual-boot SuSE and Gentoo (SuSE is my fallback in case I break
> Gentoo so badly that I need to use something else to fix it), and what I
> did (since I 'really' use the Gentoo GRUB, and the Gentoo /boot
> partition) was to copy the SuSE kernel (and System Map, and config) to
> my Gentoo /boot folder.
>
> Perhaps you need to do that in reverse (copy the compiled kernel and
> related files to your SuSE /boot folder).
I don't think this should be necessary as GRUB do find the file containing the 
kernel.

I've also tried the doscsi boot option as suggested in an other reply but this 
did not help.

-- 
Dan Johansson, <http://www.dmj.nu>
***************************************************
This message is printed on 100% recycled electrons!
***************************************************

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] [OT] GRUB won't boot my new Gentoo install
  2005-08-06  9:09   ` Dan Johansson
@ 2005-08-06 18:43     ` Richard Fish
  2005-08-07  8:38       ` Dan Johansson
  0 siblings, 1 reply; 11+ messages in thread
From: Richard Fish @ 2005-08-06 18:43 UTC (permalink / raw
  To: gentoo-user

Dan Johansson wrote:

>On Friday 05 August 2005 14.37, Holly Bostick wrote:
>  
>
>>Dan Johansson schreef:
>>....
>>Not without knowing at what point the boot fails.
>>
>>What is the error you're getting, and at what point after selecting the
>>Gentoo entry?
>>    
>>
>root (hd1,2)
>	Filesystem type is ext2fs partition type 0x83
>kernel /kernel-2.6.12-r6 root=/dev/sdb2 acpi=off
> 	[Linux-bzImage, setup=0x1200, size=0x165a46]
>(and here it hangs...., no more activity)
>
>  
>

A few things look odd to me:

1. Isn't (hd1,2) the same device as /dev/sdb2?  It looks like your /boot 
and / are the same here...
2. The normal name for the kernel is "vmlinuz-...".  You have "kernel-..."

So, which partition actually contains /boot?

How are you switching between grub versions?  Important: if you are 
changing the disk boot order in the BIOS, you need to remember that grub 
always defines (hd0) as the currently booting drive...regardless of the 
order of the drives in the system.  So you may need to change everything 
to be (hd0,X).

Can you get to a grub command line, and do a  "find /kernel-2.6.12-r6"?

-Richard

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] [OT] GRUB won't boot my new Gentoo install
  2005-08-06 18:43     ` Richard Fish
@ 2005-08-07  8:38       ` Dan Johansson
  2005-08-07 17:22         ` Richard Fish
  0 siblings, 1 reply; 11+ messages in thread
From: Dan Johansson @ 2005-08-07  8:38 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1968 bytes --]

On Saturday 06 August 2005 20.43, Richard Fish wrote:
> Dan Johansson wrote:
> >On Friday 05 August 2005 14.37, Holly Bostick wrote:
> >>Dan Johansson schreef:
> >>....
> >>Not without knowing at what point the boot fails.
> >>
> >>What is the error you're getting, and at what point after selecting the
> >>Gentoo entry?
> >
> >root (hd1,2)
> >	Filesystem type is ext2fs partition type 0x83
> >kernel /kernel-2.6.12-r6 root=/dev/sdb2 acpi=off
> > 	[Linux-bzImage, setup=0x1200, size=0x165a46]
> >(and here it hangs...., no more activity)
>
> A few things look odd to me:
>
> 1. Isn't (hd1,2) the same device as /dev/sdb2?  It looks like your /boot
> and / are the same here...
No, (hd1,2) is /dev/sdb3 (grub start counting from 0).

> 2. The normal name for the kernel is "vmlinuz-...".  You have "kernel-..."
/boot/kernel-2.6.12-r6 is a cp -a from /usr/src/linux/arci/i386/boot/bzImage, 
and /usr/src/linux is a link to /usr/src/linux-2.6.12-gentoo-r6

> So, which partition actually contains /boot?
For Gentoo (hd1,2) /dev/sdb3
For SuSE (hd0,1)/boot /dev/sda2/boot

> How are you switching between grub versions?  Important: if you are
> changing the disk boot order in the BIOS, you need to remember that grub
> always defines (hd0) as the currently booting drive...regardless of the
> order of the drives in the system.  So you may need to change everything
> to be (hd0,X).
I'm not switching between grub versions, I only use the grub from Gentoo (the 
SuSE grub is not being used). I've also tried to change the boot order of the 
disks in BIOS (and changing the (hdx,y) references in grub) with the same 
result.

> Can you get to a grub command line, and do a  "find /kernel-2.6.12-r6"?
Yes, grub finds the file.


-- 
Dan Johansson, <http://www.dmj.nu>
***************************************************
This message is printed on 100% recycled electrons!
***************************************************

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] [OT] GRUB won't boot my new Gentoo install
  2005-08-07  8:38       ` Dan Johansson
@ 2005-08-07 17:22         ` Richard Fish
  2005-08-07 17:40           ` Dan Johansson
  0 siblings, 1 reply; 11+ messages in thread
From: Richard Fish @ 2005-08-07 17:22 UTC (permalink / raw
  To: gentoo-user

Dan Johansson wrote:

>On Saturday 06 August 2005 20.43, Richard Fish wrote:
>  
>
>>Dan Johansson wrote:
>>    
>>
>>>On Friday 05 August 2005 14.37, Holly Bostick wrote:
>>>      
>>>
>>>>Dan Johansson schreef:
>>>>....
>>>>Not without knowing at what point the boot fails.
>>>>
>>>>What is the error you're getting, and at what point after selecting the
>>>>Gentoo entry?
>>>>        
>>>>
>>>root (hd1,2)
>>>	Filesystem type is ext2fs partition type 0x83
>>>kernel /kernel-2.6.12-r6 root=/dev/sdb2 acpi=off
>>>	[Linux-bzImage, setup=0x1200, size=0x165a46]
>>>(and here it hangs...., no more activity)
>>>      
>>>
>>A few things look odd to me:
>>
>>1. Isn't (hd1,2) the same device as /dev/sdb2?  It looks like your /boot
>>and / are the same here...
>>    
>>
>No, (hd1,2) is /dev/sdb3 (grub start counting from 0).
>
>  
>

Sorry, my mistake.

>>Can you get to a grub command line, and do a  "find /kernel-2.6.12-r6"?
>>    
>>
>Yes, grub finds the file.
>
>  
>

Ok.  everything looks sane to me.  What are the starting/ending sectors 
for /dev/sdb3?  (fdisk -l -u).  Some systems still have trouble 
accessing sectors past about 8GB through BIOS calls.

-Richard

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] [OT] GRUB won't boot my new Gentoo install
  2005-08-07 17:22         ` Richard Fish
@ 2005-08-07 17:40           ` Dan Johansson
  2005-08-08 12:14             ` [gentoo-user] SOLVED " Dan Johansson
  0 siblings, 1 reply; 11+ messages in thread
From: Dan Johansson @ 2005-08-07 17:40 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1593 bytes --]

On Sunday 07 August 2005 19.22, Richard Fish wrote:
> Dan Johansson wrote:
> >On Saturday 06 August 2005 20.43, Richard Fish wrote:
> >>Dan Johansson wrote:
> >>>On Friday 05 August 2005 14.37, Holly Bostick wrote:
> >>>>Dan Johansson schreef:
> >>1. Isn't (hd1,2) the same device as /dev/sdb2?  It looks like your /boot
> >>and / are the same here...
> >
> >No, (hd1,2) is /dev/sdb3 (grub start counting from 0).
>
> Sorry, my mistake.
No problem...

> Ok.  everything looks sane to me.  What are the starting/ending sectors
> for /dev/sdb3?  (fdisk -l -u).  Some systems still have trouble
> accessing sectors past about 8GB through BIOS calls.

Disk /dev/sdb: 4335 MB, 4335206400 bytes
255 heads, 63 sectors/track, 527 cylinders, total 8467200 sectors
Units = sectors of 1 * 512 = 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sdb1            63    498014    248976   82  Linux swap
/dev/sdb2        498015    706859    104422+  83  Linux
/dev/sdb3        706860    819314     56227+  83  Linux
/dev/sdb4        819315   8466254   3823470   8e  Linux LVM

As you see its installed on a quite small disk (4GB) so the 8GB limit should 
not be a problem in this case.

I'm starting to think it's the kernel it self that is having a problem (miss 
configuration) so I'm playing around with the kernel configuration at the 
moment.

-- 
Dan Johansson, <http://www.dmj.nu>
***************************************************
This message is printed on 100% recycled electrons!
***************************************************

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] SOLVED [OT] GRUB won't boot my new Gentoo install
  2005-08-07 17:40           ` Dan Johansson
@ 2005-08-08 12:14             ` Dan Johansson
  0 siblings, 0 replies; 11+ messages in thread
From: Dan Johansson @ 2005-08-08 12:14 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2016 bytes --]

On Sunday 07 August 2005 19.40, Dan Johansson wrote:
> On Sunday 07 August 2005 19.22, Richard Fish wrote:
> > Dan Johansson wrote:
> > >On Saturday 06 August 2005 20.43, Richard Fish wrote:
> > >>Dan Johansson wrote:
> > >>>On Friday 05 August 2005 14.37, Holly Bostick wrote:
> > >>>>Dan Johansson schreef:
> > >>
> > >>1. Isn't (hd1,2) the same device as /dev/sdb2?  It looks like your
> > >> /boot and / are the same here...
> > >
> > >No, (hd1,2) is /dev/sdb3 (grub start counting from 0).
> >
> > Sorry, my mistake.
>
> No problem...
>
> > Ok.  everything looks sane to me.  What are the starting/ending sectors
> > for /dev/sdb3?  (fdisk -l -u).  Some systems still have trouble
> > accessing sectors past about 8GB through BIOS calls.
>
> Disk /dev/sdb: 4335 MB, 4335206400 bytes
> 255 heads, 63 sectors/track, 527 cylinders, total 8467200 sectors
> Units = sectors of 1 * 512 = 512 bytes
>
>    Device Boot    Start       End    Blocks   Id  System
> /dev/sdb1            63    498014    248976   82  Linux swap
> /dev/sdb2        498015    706859    104422+  83  Linux
> /dev/sdb3        706860    819314     56227+  83  Linux
> /dev/sdb4        819315   8466254   3823470   8e  Linux LVM
>
> As you see its installed on a quite small disk (4GB) so the 8GB limit
> should not be a problem in this case.
>
> I'm starting to think it's the kernel it self that is having a problem
> (miss configuration) so I'm playing around with the kernel configuration at
> the moment.

As I suspected, this was not a problem with GRUB, but with my brain.
I had compiled the kernel with ProcessorFamily=Pentium4, and this machine only 
have a PII processor. After selecting ProcessorFamily=i586 the Gentoo system 
boots OK. Sorry for the trouble and thanks for all suggestions.

-- 
Dan Johansson, <http://www.dmj.nu>
***************************************************
This message is printed on 100% recycled electrons!
***************************************************

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-08-08 12:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-05 11:25 [gentoo-user] [OT] GRUB won't boot my new Gentoo install Dan Johansson
2005-08-05 12:12 ` Uwe Thiem
2005-08-05 12:37 ` Holly Bostick
2005-08-06  9:09   ` Dan Johansson
2005-08-06 18:43     ` Richard Fish
2005-08-07  8:38       ` Dan Johansson
2005-08-07 17:22         ` Richard Fish
2005-08-07 17:40           ` Dan Johansson
2005-08-08 12:14             ` [gentoo-user] SOLVED " Dan Johansson
2005-08-06  1:24 ` [gentoo-user] " maxim wexler
  -- strict thread matches above, loose matches on Subject: below --
2005-08-05 11:26 John

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox