
Code: Select all
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
....................................

Code: Select all
fdisk -l
Code: Select all
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
Code: Select all
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: Select all
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

Code: Select all
arnaud@arnaud-laptop:~$ sudo mount /dev/sda6 /media/gentoo/
arnaud@arnaud-laptop:~$ ls -l /media/gentoo/boot/what what what ?The /boot you shows was not for gentoo as its kernel is not there
But they are same system files ! 83 Id type, no ?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.
You mean I can put the kernel image on ubuntu partition, giving it gentoo's one as root partition ?The way around this is to put your Gentoo kernel into your ubuntu /boot so everything it needs to read is in (hd0,0)
Code: Select all
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

Code: Select all
fdisk -lCode: Select all
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
Code: Select all
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

Code: Select all
unknown block(2,0) Code: Select all
less /usr/src/linux/Documentation/devices.txtCode: Select all
lspciCode: Select all
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)


Code: Select all
< > ATA/ATAPI/MFM/RLL support ---> Code: Select all
kernel (hd0,0)/boot/kernel2.6.25-gentoo-r5 root=/dev/sda6