View previous topic :: View next topic |
Author |
Message |
mr_hades n00b
Joined: 26 Nov 2005 Posts: 2
|
Posted: Wed Jan 11, 2006 5:08 pm Post subject: Grub Error Collection [Part 1001] |
|
|
Hi
need some help with the installation
I've got at first boot:
"Booting 'Gentoo Linux 2.6.14-gentoo-r5'
root (hd0,0)
Filesystem Type is ext2fs, partition type 0x83
kernel /boot/kernel-genkernel-x86_64-2.6.14-gentoo-r5 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev
[Linux-bzImage, setup=0x1e00, size=0x23ca50]
initrd /boot/initramfs-genkernel-x86_64-2.6.14-gentoo-r5
[Linux-initrd @ 0xbfdc9000, 0x186559 bytes]
Error 28: Selected item cannot fit into memory
Press any key....."
I use GNU GRUB version 0.96 (631k lower / 3144064K upper memory)
and my grub.conf is :
default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title=Gentoo Linux 2.6.14-r5
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-2.6.14-gentoo-r5 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev
initrd /boot/initramfs-genkernel-x86_64-2.6.14-gentoo-r5
I have 4 partitions:
/dev/hda1 /boot 100M ext2
/dev/hda2 swap 3GB
/dev/hda3 / 20GB ext3
/dev/hda4 /home 50GB ext3
and the hardware: 1xAMD Opteron and 3GB ram
any ideas ??
thx
Mod Edit: Merged with Grub Error Collection [Part 1001] [POST GRUB QUESTIONS HERE] stuck by NeddySeagoon.
--timeBandit |
|
Back to top |
|
|
sirdilznik l33t
Joined: 28 Apr 2005 Posts: 731
|
Posted: Wed Jan 11, 2006 6:02 pm Post subject: |
|
|
I believe I read somewhere on these forums that specific versions of grub had problems with large amounts of memory. The solution was to unmask and install a newer version of grub. You could try grub-0.97 or higher. |
|
Back to top |
|
|
mr_hades n00b
Joined: 26 Nov 2005 Posts: 2
|
Posted: Thu Jan 12, 2006 8:56 am Post subject: Grub Error 28: solved |
|
|
Problem Solved:
see:
https://forums.gentoo.org/viewtopic-t-359872-highlight-selected+item+fit.html
(1)
ACCEPT_KEYWORDS="~x86 ~amd64" emerge -f =grub-0.97-r2
(2)
cd /usr/portage/sys-boot/grub
ebuild grub-0.97-r2.ebuild digest
(3)
echo "=sys-boot/grub-0.97-r2 ~x86 ~amd64" >> /etc/portage/package.keywords
(4)
emerge grub |
|
Back to top |
|
|
cosy n00b
Joined: 06 May 2006 Posts: 9
|
Posted: Wed Nov 08, 2006 3:11 pm Post subject: |
|
|
hi i get same problem i instaled gentoo from live DVD i get 3gb of ram
u say problem solved but how i put all that ?
i am a linux n00b have no idea |
|
Back to top |
|
|
Arnaudv6 n00b
Joined: 18 Jul 2008 Posts: 46
|
Posted: Sun Jul 20, 2008 2:54 pm Post subject: Grub Error Collection [Part 1001] [POST GRUB QUESTIONS HERE] |
|
|
Good afternoon everyone !
I'm new user to Gentoo. I just compiled my new system, alongside my ubuntu :p
the matter is I already have grub installed on ubuntu's root, and thus, during Gentoo's install,
I skipped all the "installation of grub" section, Am I clear anough ?
So I've got a kernel image in /boot on Gentoo's partition, but my grub doesn't want to start it
I must confess I made a search, but didn't read the 700 posts of this topic...
I'm sure someone will help me even if I'm a bad user ?
Thanks a lot !
Arnaudv6
(my grub menu.list : )
Code: |
title Arnaud Gentoo Linux
root (hd0,5)
kernel /boot/kernel2.6.25-gentoo-r5 root=/dev/sda6 ro
#System.map-genkernel-x86-2.6.24-gentoo-r5
title Ubuntu 8.04.1, kernel 2.6.24-19-rt
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-19-rt root=UUID=d3302d69-12a8-4a6e-9b06-fde232da63b4 ro quiet splash locale=fr_FR
initrd /boot/initrd.img-2.6.24-19-rt
quiet
....................................
|
Since I got (only) one hdd, and Gentoo is on /dev/sda6...
thanks a lot !
Mod Edit
Moved open grub questions here Grub Error Collection [Part 1001] [POST GRUB QUESGrTIONS HERE!],
unstuck Grub Error Collection [Part 8] [POST GRUB QUESGrTIONS HERE!]
stuck Grub Error Collection [Part 1001]
NeddySeagoon |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Sun Jul 20, 2008 3:33 pm Post subject: |
|
|
Arnaudv6,
Welcome to Gentoo.
Some error messages, if you get any, when you try to start Gentoo would be useful.
You have ubuntu installed and added Gentoo beside it.
If you did not make a separate Gentoo boot partition then root (hd0,5) in your grub.conf is correct
If Gentoo has a separate boot partition then that root (hd0, ...) needs to point to it.
We need to know your hard drive partition layout, from and what each partition is used for.
Error messages are also very useful _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Arnaudv6 n00b
Joined: 18 Jul 2008 Posts: 46
|
Posted: Sun Jul 20, 2008 3:34 pm Post subject: |
|
|
Dumno if it can help :
Quote: | Error 2: Bad file or directory type |
and it works no more if I erase the "ro" option endiig my kernel line...
thanks for helping !
We posted the same time, NeddySeagoon : I'm on : wait for me please ! |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Sun Jul 20, 2008 3:38 pm Post subject: |
|
|
Arnaudv6,
The output of for your Gentoo /boot may help too _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Arnaudv6 n00b
Joined: 18 Jul 2008 Posts: 46
|
Posted: Sun Jul 20, 2008 3:39 pm Post subject: |
|
|
/boot has no dedicated partition... thanks !
Code: |
Disk /dev/sda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0006d36f
Device Boot Start End Blocks Id System
/dev/sda1 * 1 852 6843658+ 83 Linux
/dev/sda2 853 1436 4690980 5 Extended
/dev/sda3 1437 4354 23438835 83 Linux
/dev/sda5 853 916 514048+ 82 Linux swap / Solaris
/dev/sda6 917 1436 4176868+ 83 Linux
|
Thanks a lot NeddySeagoon for helping me ! |
|
Back to top |
|
|
Arnaudv6 n00b
Joined: 18 Jul 2008 Posts: 46
|
Posted: Sun Jul 20, 2008 3:44 pm Post subject: |
|
|
Code: | ls -l /boot
total 55980
-rw-r--r-- 1 root root 422667 2008-05-29 04:39 abi-2.6.24-18-generic
-rw-r--r-- 1 root root 422667 2008-07-12 07:30 abi-2.6.24-19-generic
-rw-r--r-- 1 root root 80071 2008-05-29 04:39 config-2.6.24-18-generic
-rw-r--r-- 1 root root 80049 2008-07-12 07:30 config-2.6.24-19-generic
-rw-r--r-- 1 root root 85837 2008-07-12 07:44 config-2.6.24-19-rt
drwxr-xr-x 2 root root 4096 2008-07-16 13:42 grub
-rw-r--r-- 1 root root 7911046 2008-06-04 11:18 initrd.img-2.6.24-18-generic
-rw-r--r-- 1 root root 7910997 2008-06-04 11:17 initrd.img-2.6.24-18-generic.bak
-rw-r--r-- 1 root root 7912820 2008-07-16 13:41 initrd.img-2.6.24-19-generic
-rw-r--r-- 1 root root 7913498 2008-07-10 19:40 initrd.img-2.6.24-19-generic.bak
-rw-r--r-- 1 root root 7888635 2008-07-16 13:42 initrd.img-2.6.24-19-rt
-rw-r--r-- 1 root root 7887569 2008-06-20 14:13 initrd.img-2.6.24-19-rt.bak
-rw-r--r-- 1 root root 103204 2007-09-28 12:06 memtest86+.bin
-rw-r--r-- 1 root root 905012 2008-05-29 04:39 System.map-2.6.24-18-generic
-rw-r--r-- 1 root root 905170 2008-07-12 07:30 System.map-2.6.24-19-generic
-rw-r--r-- 1 root root 928302 2008-07-12 07:44 System.map-2.6.24-19-rt
-rw-r--r-- 1 root root 1921528 2008-05-29 04:39 vmlinuz-2.6.24-18-generic
-rw-r--r-- 1 root root 1921432 2008-07-12 07:30 vmlinuz-2.6.24-19-generic
-rw-r--r-- 1 root root 1959832 2008-07-12 07:44 vmlinuz-2.6.24-19-rt
|
Code: |
arnaud@arnaud-laptop:~$ sudo mkdir /media/gentoo
arnaud@arnaud-laptop:~$ sudo mount /dev/sda6 /media/gentoo/
arnaud@arnaud-laptop:~$ ls -l /media/gentoo/boot/
total 2492
lrwxrwxrwx 1 root root 1 2008-07-18 00:19 boot -> .
-rw-r--r-- 1 root root 2544092 2008-07-18 16:09 kernel2.6.25-gentoo-r5
|
Thanks NeddySeagoon ! |
|
Back to top |
|
|
Arnaudv6 n00b
Joined: 18 Jul 2008 Posts: 46
|
Posted: Sun Jul 20, 2008 3:59 pm Post subject: |
|
|
NeddySeagoon, I must leave for about 7 hours...
won't read anymore until.
Thanks for what you already done and the way you still search
Arnaudv6 |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Sun Jul 20, 2008 4:55 pm Post subject: |
|
|
Arnaudv6,
The /boot you shows was not for gentoo as its kernel is not there but this Code: | arnaud@arnaud-laptop:~$ sudo mount /dev/sda6 /media/gentoo/
arnaud@arnaud-laptop:~$ ls -l /media/gentoo/boot/ | is interesting, and the listing that follows.
That shows your kernel name is kernel2.6.25-gentoo-r5 and its in (hd0,5)/boot, which matches your grub.conf.
Grub works by reading the boot filesystem. As there is not much space for grub, you have to choose the boot filesystem type at grub install time and it can only read one filesystem type.
That means that (hd0,0) and (hd0,5) must both be the same file system type or grub cannot read (hd0,5). For grub, ext2=ext3.
The way around this is to put your Gentoo kernel into your ubuntu /boot so everything it needs to read is in (hd0,0) _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Arnaudv6 n00b
Joined: 18 Jul 2008 Posts: 46
|
Posted: Mon Jul 21, 2008 7:53 am Post subject: |
|
|
Thanks NeddySeagoon ! .... then :
Quote: | The /boot you shows was not for gentoo as its kernel is not there
|
what what what ? my kernel image of gentoo shouldn't be just in /boot on this partition ?
(I typed this command line from my ubuntu... sure you understood !?!
Quote: | Grub works by reading the boot filesystem. As there is not much space for grub, you have to choose the boot filesystem type at grub install time and it can only read one filesystem type.
That means that (hd0,0) and (hd0,5) must both be the same file system type or grub cannot read (hd0,5). For grub, ext2=ext3.
|
But they are same system files ! 83 Id type, no ?
I've got no grub file or directory on that partition : does it matter ?
Quote: | The way around this is to put your Gentoo kernel into your ubuntu /boot so everything it needs to read is in (hd0,0)
|
You mean I can put the kernel image on ubuntu partition, giving it gentoo's one as root partition ?
Thanks a lot for your answers !
Arnaudv6 |
|
Back to top |
|
|
desultory Bodhisattva
Joined: 04 Nov 2005 Posts: 9410
|
Posted: Mon Jul 21, 2008 8:21 am Post subject: |
|
|
Arnaudv6 wrote: | You mean I can put the kernel image on ubuntu partition, giving it gentoo's one as root partition ? | Indeed. |
|
Back to top |
|
|
Arnaudv6 n00b
Joined: 18 Jul 2008 Posts: 46
|
Posted: Mon Jul 21, 2008 8:37 am Post subject: |
|
|
Thanks desultory !
I try it now !
Code: | title Arnaud Gentoo Linux
root (hd0,0)
kernel /boot/kernel2.6.25-gentoo-r5 root=/dev/sda6
#System.map-genkernel-x86-2.6.24-gentoo-r5
|
Then is there no mean to boot a kernel image from my Gentoo ext3 part directly ?
That seems no such complicated, and would be great... thanks a lot !
Arnaudv6 |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Mon Jul 21, 2008 5:22 pm Post subject: |
|
|
Arnaudv6,
Post your and tell us what fie system type is on each partition.
The partition type byte, in fdisk, means almost nothing.
If your ubuntu uses ext2 or ext3 then grub will be able to read Gentoos ext2 and ext3 filesystems too,
However, if your ubuntu install uses rieserfs or anything other than ext2 or ext3, you have a problem.
When you know you want to install several distros, in advance of the first install, its normal to make a separate /boot partition to contain *all* the kernels, this gets around the single file system type for Grub. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Arnaudv6 n00b
Joined: 18 Jul 2008 Posts: 46
|
Posted: Mon Jul 21, 2008 5:55 pm Post subject: |
|
|
Hello NeddySeagoon !
Code: | arnaud@arnaud-laptop:~$ sudo fdisk -l
Disk /dev/sda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0006d36f
Device Boot Start End Blocks Id System
/dev/sda1 * 1 852 6843658+ 83 Linux
/dev/sda2 853 1436 4690980 5 Extended
/dev/sda3 1437 4354 23438835 83 Linux
/dev/sda5 853 916 514048+ 82 Linux swap / Solaris
/dev/sda6 917 1436 4176868+ 83 Linux
|
Why whole system is in ext3 (excepted swap)
and I adapted grub for now :
Code: | title Arnaud Gentoo Linux
kernel (hd0,0)/boot/kernel2.6.25-gentoo-r5 root=/dev/sda6
#System.map-genkernel-x86-2.6.24-gentoo-r5
|
I don't like so much having gentoo's kernel on ubuntu's partition, but it works...
Thanks for your tip about a dedicated partition for /boot : I'll do this soon
Grub works, but my kernel panics at trying to mount root fs.
it claims "unknown block(2,0)
I know the interresting thing are precedent steps, but I can't use scrolling...
and there is nothing revealant left on screen after crashing...
Arnaudv6 |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Mon Jul 21, 2008 6:03 pm Post subject: |
|
|
Arnaudv6,
is the interesting bit in this case. Code: | less /usr/src/linux/Documentation/devices.txt | tells that its your floppy drive.
This means the kernel cannot communicate with your hard drive controller, nomally because some options are missing or are set to <M> when they need to be <*>.
We need your output to help you fix that. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Arnaudv6 n00b
Joined: 18 Jul 2008 Posts: 46
|
Posted: Mon Jul 21, 2008 6:11 pm Post subject: |
|
|
Code: | arnaud@arnaud-laptop:~$ lspci
00:00.0 Host bridge: Intel Corporation 82855PM Processor to I/O Controller (rev 21)
00:01.0 PCI bridge: Intel Corporation 82855PM Processor to AGP Controller (rev 21)
00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 83)
00:1f.0 ISA bridge: Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridge (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801DBM (ICH4-M) IDE Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 03)
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 03)
00:1f.6 Modem: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 03)
01:00.0 VGA compatible controller: ATI Technologies Inc M9+ 5C61 [Radeon Mobility 9200 (AGP)] (rev 01)
02:00.0 FireWire (IEEE 1394): Texas Instruments TSB43AB21 IEEE-1394a-2000 Controller (PHY/Link)
02:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
02:02.0 Network controller: Intel Corporation PRO/Wireless LAN 2100 3B Mini PCI Adapter (rev 04)
02:04.0 CardBus bridge: ENE Technology Inc CB1410 Cardbus Controller (rev 01)
|
whaou ! new dimension !
I compiled without support for floppy cause I got no one on my laptop,
but I not sure to have enabled isa in kernel configuration...
Arnaudv6 |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Mon Jul 21, 2008 6:19 pm Post subject: |
|
|
Arnaudv6,
Rebuild your kernel with these settings _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Arnaudv6 n00b
Joined: 18 Jul 2008 Posts: 46
|
Posted: Mon Jul 21, 2008 6:29 pm Post subject: |
|
|
I'm ashamed...
thanks a lot !
I'll send back... |
|
Back to top |
|
|
Arnaudv6 n00b
Joined: 18 Jul 2008 Posts: 46
|
Posted: Mon Jul 21, 2008 9:12 pm Post subject: |
|
|
NeddySeagoon,
I tried your configuration, but that does result exactly the same,
hope this image will help :
http://arnaudv6.free.fr/upload/dsc00003.jpg
Arnaudv6
I seem to have an ACPI related problem before while booting,
but that's the screen it crashes on |
|
Back to top |
|
|
Arnaudv6 n00b
Joined: 18 Jul 2008 Posts: 46
|
Posted: Mon Jul 21, 2008 9:29 pm Post subject: |
|
|
note : NeddySeagoon, I've seen your profile on wikipedia,
first thanks : world needs guy contributing like you...
And if you wanna speak french, je suis francais
Arnaudv6 |
|
Back to top |
|
|
Arnaudv6 n00b
Joined: 18 Jul 2008 Posts: 46
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Tue Jul 22, 2008 6:30 pm Post subject: |
|
|
Arnaudv6,
You don't have any IDE drives any more with the kernel settings I gave you, thats devices like hda.
You should have the IDE kernel branch disabled Code: | < > ATA/ATAPI/MFM/RLL support ---> |
All your drives will be sdX for hard drives or sr for CDROMs.
Either you did not build the kernel the way I suggested or you didn't install it into boot properly, so you are still using an old kernel.
Notice your kernel line in grub.conf says Code: | kernel (hd0,0)/boot/kernel2.6.25-gentoo-r5 root=/dev/sda6 |
Notice the sda6. That means that you are telling the kernel you are using the SCSI layer for your hard drive.
Now look at your error image again ... it says hda.
Maybe changing /dev/sda6 to /dev/hda6 in your grub.conf will allow you to boot.
Its not an initrd problem as your grub.conf line does not invoke an initrd. Even if you have one and load it in grub.conf, its not being used.
I didn't know I had a wikipedia profile ... I'll need to read it _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|