Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Grub] Erreur 15 : File not found (résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
prentonmantoonsenva
n00b
n00b


Joined: 23 Aug 2006
Posts: 49
Location: Point Place, Wisconsin

PostPosted: Fri May 11, 2007 1:53 pm    Post subject: [Grub] Erreur 15 : File not found (résolu) Reply with quote

Bonjour @ tous,

Je ne suis pas un vrai débutant sur Gentoo, mais j'ai un souci de débutant :/
Ma gentoo fonctionne nickel avec un noyau compilé avec genkernel, et avec la venue du noyau 2.6.20, j'ai voulu le faire à la mimine histoire de m'occuper. Avec genkernel, no soucy avec mon grub.conf, ca fonctionne impec. Avec mon noyau perso, c'est le drame, j'ai le droit à une Error 15 par grub lors du boot. Voir là : http://www.gentoo.org/doc/fr/grub-error-guide.xml#doc_chap4 Ce qui m'intrigue aussi c'est que lorsque j'édite lors du boot les lignes de mon grub.conf, j'ai bien la complétion du nom du noyau, ce qui veut dire qu'il existe bien, isn't it ?

Avec ma partition /boot montée en bootant sur mon noyau qui fonctionne, ce test fonctionne :
Code:
grub> root (hd0,2)
root (hd0,2)
 Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0)
setup (hd0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  15 sectors are embedded.
succeeded
 Running "install /boot/grub/stage1 (hd0) (hd0)1+15 p (hd0,2)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
Done.
grub>


Voici mon grub.conf :

Code:
default 0
timeout 15
splashimage=(hd0,2)/boot/grub/splash.xpm.gz

title=ZobDtc 2.6.20-r8
root (hd0,2)
kernel /zobdtc-2.6.20-r8 root=/dev/sda6 splash=verbose,theme:emergence video=vesafb:ywrap,mtrr vga=0x31B udev
initrd /fbsplash-emergence-1280x1024

title=Gentoo Linux (2.6.19-gentoo-r5)
root (hd0,2)
kernel /kernel-genkernel-x86_64-2.6.19-gentoo-r5 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda6 splash=verbose,theme:emergence video=vesafb:ywap,mtrr vga=0x31B udev
initrd /initramfs-genkernel-x86_64-2.6.19-gentoo-r5

title=VistaProut
rootnoverify (hd0,1)
makeactive
chainloader +1


Un ptit fdisk -l :
Code:
Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/sda1              12         272     2096482+  de  Dell Utility
/dev/sda2   *         273       13021   102400000    7  HPFS/NTFS
/dev/sda3           13022       13026       40162+  83  Linux
/dev/sda4           13027       30394   139508460    5  Extended
/dev/sda5           13027       13276     2008093+  83  Linux
/dev/sda6           13277       30394   137500303+  83  Linux


Mon fstab :
Code:
/dev/sda3               /boot           ext2            noauto,noatime  1 2
/dev/sda6               /               ext3            noatime         0 1
/dev/sda5               none            swap            sw              0 0
/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,ro       0 0
/dev/fd0                /mnt/floppy     auto            noauto          0 0

proc                    /proc           proc            defaults        0 0
none                    /dev/shm        tmpfs           nodev,nosuid,noexec     0 0

/dev/sda2               /mnt/win        ntfs            noatime,users,ro,gid=100,umask=222     0 0


Si cela vous interesse, je peux vous donnez mon .config du noyau que j'ai fait par moi-meme. Mais je ne vois pas le rapport entre un noyau (peut-etre) moisi et l'erreur 15 du grub...

Enfin, j'ai aucune erreur lors d'un :
Code:
grub-install /dev/sda


Merci par avance pour vos réponses, et bon week-end.


Last edited by prentonmantoonsenva on Fri May 11, 2007 6:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
_droop_
l33t
l33t


Joined: 30 May 2004
Posts: 957

PostPosted: Fri May 11, 2007 2:22 pm    Post subject: Reply with quote

Salut,

Ca donne quoi "ls -l /boot/" ?

Peut être qu'il ne trouve pas l'initrd...

En tout cas très poëtique le nom du noyau :wink:
Back to top
View user's profile Send private message
prentonmantoonsenva
n00b
n00b


Joined: 23 Aug 2006
Posts: 49
Location: Point Place, Wisconsin

PostPosted: Fri May 11, 2007 2:26 pm    Post subject: Reply with quote

Au démarrage, je dois monter ma partition /boot lorsque je dois modifier quelque chose sur celle-ci :

Code:
gentooHP hp # mount /boot/
gentooHP hp # ls -l /boot/
total 21826
lrwxrwxrwx 1 root root       1 fév  5 09:57 boot -> .
-rw-r--r-- 1 root root 1244699 avr 27 10:53 fbsplash-emergence-1280x1028
drwxr-xr-x 2 root root    1024 mai 11 15:18 grub
-rw-r--r-- 1 root root 7268232 fév 14 15:28 initramfs-genkernel-x86_64-2.6.18-gentoo-r6
-rw-r--r-- 1 root root 1599861 avr 16 10:31 initramfs-genkernel-x86_64-2.6.19-gentoo-r5
-rw-r--r-- 1 root root 2290146 fév 14 15:22 kernel-genkernel-x86_64-2.6.18-gentoo-r6
-rw-r--r-- 1 root root 2103260 avr 16 10:26 kernel-genkernel-x86_64-2.6.19-gentoo-r5
drwx------ 2 root root   12288 fév  5 09:49 lost+found
-rw-r--r-- 1 root root 1252526 fév 14 15:22 System.map-genkernel-x86_64-2.6.18-gentoo-r6
-rw-r--r-- 1 root root 1177204 avr 16 10:26 System.map-genkernel-x86_64-2.6.19-gentoo-r5
-rw-r--r-- 1 root root 2681034 avr 27 11:32 zobdtc-2.6.20
-rw-r--r-- 1 root root 2615612 mai 11 14:31 zobdtc-2.6.20-r8


J'étais en manque d'inspiration pour le nom du noyau alors... Je viens de me rendre compte que ça peut porter à confusion :)
Back to top
View user's profile Send private message
SlashRhumSlashNeisson
Apprentice
Apprentice


Joined: 30 Dec 2006
Posts: 201
Location: Lille

PostPosted: Fri May 11, 2007 4:16 pm    Post subject: Reply with quote

Salut ,

tu peux poster un ls -l sous /usr/src/ et un ls sous /boot
Back to top
View user's profile Send private message
prentonmantoonsenva
n00b
n00b


Joined: 23 Aug 2006
Posts: 49
Location: Point Place, Wisconsin

PostPosted: Fri May 11, 2007 4:25 pm    Post subject: Reply with quote

VOici le ls -l /usr/src :

Code:
hp@gentooHP ~ $ ls -l /usr/src
total 16
lrwxrwxrwx  1 root root   22 mai 11 14:24 linux -> linux-2.6.20-gentoo-r8
drwxr-xr-x 20 root root 4096 f�v 14 15:27 linux-2.6.18-gentoo-r6
drwxr-xr-x 20 root root 4096 avr 16 10:31 linux-2.6.19-gentoo-r5
drwxr-xr-x 20 root root 4096 avr 27 10:55 linux-2.6.20-gentoo-r7
drwxr-xr-x 20 root root 4096 mai 11 15:14 linux-2.6.20-gentoo-r8


Petite question, l'erreur moisie de grub est-elle liée à mon disque SATA ? Car je n'ai pas de souci avec un kernel à la main sur mon portable...
Back to top
View user's profile Send private message
SlashRhumSlashNeisson
Apprentice
Apprentice


Joined: 30 Dec 2006
Posts: 201
Location: Lille

PostPosted: Fri May 11, 2007 4:34 pm    Post subject: Reply with quote

Non pas de problèmes à priori avec un SATA.

Question: ton kernel 2.6.20-r7 fonctionne?
Back to top
View user's profile Send private message
prentonmantoonsenva
n00b
n00b


Joined: 23 Aug 2006
Posts: 49
Location: Point Place, Wisconsin

PostPosted: Fri May 11, 2007 4:39 pm    Post subject: Reply with quote

Non plus car je l'ai fait à la mimine.

Je suis sur que si je le compile à l'aide de genkernel ça doit marcher. De plus, je fais des modifications dans le genkernel afin de rajouter ou supprimer des modules et ça fonctionne nickel... Et ce qui est bizarre c'est que ça foire sur le PC du boulot et perso (tout deux avec du SATA) et ça fonctionne sur mon portable avec un disque IDE :!: Je dois me gourer quelque part :-s
Back to top
View user's profile Send private message
SlashRhumSlashNeisson
Apprentice
Apprentice


Joined: 30 Dec 2006
Posts: 201
Location: Lille

PostPosted: Fri May 11, 2007 4:50 pm    Post subject: Reply with quote

Bon, on recapitule:

en root

1) sous /usr/src/

Code:
rm linux
cd ton kernel qui fonctionne
cp .config (de ton kernel qui fonctionne) /usr/src/linux-2.6.20-gentoo-r8
cd ..
ln -s linux-2.6.20-gentoo-r8 linux
cd linux
make && make modules_install;emerge les paquets associés
mount /boot
cp .config /boot/config-2.6.20-r8
cp arch/i386/boot/bzImage /boot/bzImage-2.6.20-r8
vi /boot/grub/grub.conf --> tu le fait pointer vers le nouveau bzImage
umount /boot
reboot


Je suppose que ce sont les manipulations que tu a faites?

:?:
Back to top
View user's profile Send private message
prentonmantoonsenva
n00b
n00b


Joined: 23 Aug 2006
Posts: 49
Location: Point Place, Wisconsin

PostPosted: Fri May 11, 2007 6:16 pm    Post subject: Reply with quote

Après moult tests, vla ce qui me manquait :
"cp .config /boot/config-2.6.20-r8"

Bon. Ca c'est fait ...

J'ai un ptit kernel panic en bonus et tout va bien.

Merci @ toi SlashRhumSlashNeisson ;)
Back to top
View user's profile Send private message
_droop_
l33t
l33t


Joined: 30 May 2004
Posts: 957

PostPosted: Fri May 11, 2007 6:18 pm    Post subject: Reply with quote

Euh, je ne vois pas pourquoi ça a corrigé ton problème mais bon si ça marche...
Back to top
View user's profile Send private message
prentonmantoonsenva
n00b
n00b


Joined: 23 Aug 2006
Posts: 49
Location: Point Place, Wisconsin

PostPosted: Fri May 11, 2007 6:35 pm    Post subject: Reply with quote

Alors
Code:
cp .config /boot/config-2.6.20-r8
est inutile ?

Ce qui m'a aidé a mon avis, c'est de m'avoir restructurer les manipulations.
Back to top
View user's profile Send private message
SlashRhumSlashNeisson
Apprentice
Apprentice


Joined: 30 Dec 2006
Posts: 201
Location: Lille

PostPosted: Fri May 11, 2007 6:45 pm    Post subject: Reply with quote

Cela te permet de récupérer l'ancienne config de ton noyau.

Ensuite avec un make && make modules_install si tu as des diff, tu réponds aux questions.

Ou tu lances un make menuconfig tu simules un changement et tu saves, ensuite make && ....

:wink:
Back to top
View user's profile Send private message
_droop_
l33t
l33t


Joined: 30 May 2004
Posts: 957

PostPosted: Fri May 11, 2007 7:20 pm    Post subject: Reply with quote

SlashRhumSlashNeisson wrote:
make && make modules_install


Tu veux dire "make oldconfig" pour récuperer l'ancienne config ?

prentonmantoonsenva wrote:
Ce qui m'a aidé a mon avis, c'est de m'avoir restructurer les manipulations.


Il y a de grandes chances :wink:
Back to top
View user's profile Send private message
prentonmantoonsenva
n00b
n00b


Joined: 23 Aug 2006
Posts: 49
Location: Point Place, Wisconsin

PostPosted: Fri May 11, 2007 7:44 pm    Post subject: Reply with quote

Ouai mais le
Code:
cp .config /boot/config-2.6.20-r8
copie mon .config contenu sur /usr/src/linux vers ma partition /boot . Mais il n'y a aucun lien lors du boot qui utilise ce fichier config-2.6.20-r8 ? Est-ce donc utile de copier ce truc ?
Back to top
View user's profile Send private message
SlashRhumSlashNeisson
Apprentice
Apprentice


Joined: 30 Dec 2006
Posts: 201
Location: Lille

PostPosted: Sat May 12, 2007 4:58 am    Post subject: Reply with quote

La copie du .config dans /boot sert uniquement de sauvegarde (c'est juste une précaution).

Lorsque tu fais un

Code:
emerge -P gentoo-sources


Tu as toujours la possibilité de comparer ton ancienne conf noyau avec la nouvelle.

J'espère que ton kernel-panic n'est que temporaire :wink:

pour _droop_

C'est en théorie ce qui est dans la doc, mais je ne l'ai jamais fait depuis mes débuts sous gentoo (2.6.11-r4). Je fais juste un cp de l'ancien .config dans le nouveau kernel.
Après un make && make modules_install si je n'ai pas de questions c'est qu'il n'y a pas
de modifications majeures dans le nouveau kernel.
Ensuite éventuellement je vérifie avec un make menuconfig.

off: je n'ai pas saisi le mode opératoire pour pouvoir récupérer ton message encapsulé dans ma réponse tel que : _droop a écrit: ton texte (si tu pouvais m'éclairer :idea: ).
Back to top
View user's profile Send private message
titoucha
Advocate
Advocate


Joined: 21 Jul 2005
Posts: 2374
Location: Genève

PostPosted: Sat May 12, 2007 5:08 am    Post subject: Reply with quote

Pour ça il te suffit d'utiliser le bouton citer en haut à droite du message auquel tu veux répondre ou utiliser les balise
Code:
[quote="SlashRhumSlashNeisson"] qui contient le nom de la personne que tu veux citer et tu fermes avec [/quote]

_________________
Assurez-vous que le titre de votre message soit conforme aux conventions de ce forum (paragraphe 3/3 : Comment poster sur le forum ??)
Back to top
View user's profile Send private message
SlashRhumSlashNeisson
Apprentice
Apprentice


Joined: 30 Dec 2006
Posts: 201
Location: Lille

PostPosted: Sat May 12, 2007 6:15 am    Post subject: Reply with quote

Merci de l'info
Back to top
View user's profile Send private message
prentonmantoonsenva
n00b
n00b


Joined: 23 Aug 2006
Posts: 49
Location: Point Place, Wisconsin

PostPosted: Sat May 12, 2007 10:24 am    Post subject: Reply with quote

SlashRhumSlashNeisson wrote:

J'espère que ton kernel-panic n'est que temporaire :wink:


Ouai c'est résolu. J'avais activé un machin dans le kernel qui était en coinflit avec libata :-/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum