Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47450 - GRUB might need a larger ramdisk for the stage3 x86 build
Summary: GRUB might need a larger ramdisk for the stage3 x86 build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Everything (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo LiveCD Package Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-10 12:12 UTC by Benjamin Paul
Modified: 2005-03-25 11:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Paul 2004-04-10 12:12:57 UTC
I just ran thought the x86 stage3 build twice to verify the problem was repeatable.  After installing gentoo using the x86 stage3 using a minimal livecd I was unable to boot the system.  I can't remember the syntax of the error and was unable to capture it but this is the gist of it:

  attempt to access beyond the end of device
  01:00: rw-0, want=4114, limit=4096
  attempt to access beyond the end of device
  01:00: rw-0, want=4114, limit=4096  

I increased the ramdisk size by modifying /boot/grub/grub.conf and the problem went a way.  I added "ramdisk=8000" to the kernel arguments and the problem went away both times.  I am a noobie so I am not ruling out pilot error.
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2004-04-12 06:09:18 UTC
This was fixed in Genkernel 3.0.2a by giving out an extra "ramdisk_size" parameter for initrds that are larger than 4096K. Thanks!
Comment 2 Barry Stokes 2004-04-12 06:23:01 UTC
For a stage1 build on an SMP Athlon-MP 1800+ (2 CPUs) system, genkernel version 3.0.2 produced:
-rw-r--r--    1 root     root      1981499 Apr 12 10:51 initrd-2.4.25-gentoo
-rw-r--r--    1 root     root      1413223 Apr 12 10:38 kernel-2.4.25-gentoo

Whereas for a single CPU P4 2.4Ghz machine, using genkernel 3.0.1:
-rw-r--r--    1 root     root      1743067 Mar 29 09:21 initrd-2.4.25-gentoo
-rw-r--r--    1 root     root      1552346 Mar 29 08:59 kernel-2.4.25-gentoo

And for a 850Mhz P3 system, also on genkernel 3.0.1:
-rw-r--r--    1 root     root      1967847 Mar 23 10:09 initrd-2.4.25-gentoo
-rw-r--r--    1 root     root      1413229 Mar 23 09:20 kernel-2.4.25-gentoo

Only on the one produced with 3.0.2 did the "attempt to access beyond the end of device" error occur, and this was simply fixed using 'ramdisk=8192' to the config in grub.

All of these kernels/initrds were produced using 'genkernel all'.
Comment 3 Benjamin Paul 2004-05-02 10:39:12 UTC
I just built a 2004.1 stage3 build using a new min install disk and I had the same problem.  I used Genkernel 3.0.2a on my P4 2.66 GHz:

-rw-r--r--    1 root     root      1974400 May  2 07:21 initrd-2.4.25-gentoo-r2
-rw-r--r--    1 root     root      1413257 May  2 07:01 kernel-2.4.25-gentoo-r2

I just increased the ramdisk again and it worked.  
Thought you would want to know,
   Ben
Comment 4 Stanislaw Malolepszy 2004-05-02 14:56:28 UTC
Gentoo 2004.1, genkernel 3.0.2a. After finishing its job it instructed me to add 'ramdisk_size=4512' to grub.conf. But i was getting this error when trying to boot. i replaced ramdisk_size with ramdisk=8192 and it works now.
Athlon XP 2000+ (1,67GHz)
Comment 5 Robert Moss (RETIRED) gentoo-dev 2004-08-22 09:37:43 UTC
Tim, can you give us an update on this one? Is this still an issue, or can we close this?
Comment 6 Tim Yamin (RETIRED) gentoo-dev 2004-08-22 11:15:10 UTC
3.0.2c, the stable version which was used for 2004.2 doesn't have this issue so I guess I can close this as FIXED.
Comment 7 Chris Gianelloni (RETIRED) gentoo-dev 2005-03-25 11:24:31 UTC
Moving these so we can remove the "Install CD" component from "Gentoo Linux".

I apologize to everyone for this spam, but according to the bugzilla developers,
this is the only reasonable way to do this.