Gentoo Archives: gentoo-user-fr

From: Revolver Onslaught <revolver.onslaught@×××××.com>
To: gentoo-user-fr@l.g.o
Subject: Re: [gentoo-user-fr] [grub] stage1 non trouve
Date: Sat, 26 Jul 2008 06:31:59
Message-Id: 6e4abe2d0807252331j679c5393x178e8c8b5af0247@mail.gmail.com
In Reply to: Re: [gentoo-user-fr] [grub] stage1 non trouve by Nicolas Sebrecht
1 Le 26 juillet 2008 01:55, Nicolas Sebrecht <nicolas.s-dev@×××××××.net> a écrit :
2 >
3 > Revolver Onslaught a écrit:
4 >
5 >> Une fois dans le chroot et apres le env-update, voici mes fichiers :
6 >>
7 >> livecd / # cat /etc/fstab
8 >
9 > Cela n'indique rien. Le fstab ne sera utilisé que lorsque ton chroot
10 > sera réellement utilisé comme partition racine par ton noyau. C'est à
11 > dire lorsque tu lances un noyau avec l'option 'root=/dev/sda5'.
12 >
13 >> livecd / # cat /etc/mtab (copie depuis le cdlive avant chroot puis en
14 >> enlevant le superflu)
15 >
16 > Ce qu'il est important de connaître, c'est que tu trouves _après_ le
17 > chroot (de mémoire, le handbook fait installer le chargeur de démarrage
18 > dans le chroot).
19 >
20 > Tu dois pouvoir retrouver les arborescences /dev, /sys et /proc dans le
21 > chroot. Donc, avant de « chrooter » :
22 > # mount --bind /proc /mnt/gentoo-chroot/proc
23 > # mount --bind /dev /mnt/gentoo-chroot/dev
24 > # mount --bind /sys /mnt/gentoo-chroot/sys
25 >
26 > À adapter bien sûr.
27 >
28 > Avant toute chose et toujours dans ton chroot, je réinstallerais grub
29 > (ça ne coûte rien). Donc :
30 > # chroot /mnt/gentoo-chroot /bin/bash
31 > (à adapter toujours)
32 > # emerge -av grub
33 >
34 > Puis seulement après :
35 > # grub-install /dev/sda
36 >
37 > Là, si ça ne fonctionne pas, donne le message d'erreur exact et les
38 > contenus du menu.lst (=grub.conf normalement), la sortie de « mount »
39 > et de « find /boot -exec ls -ld '{}' \; » (tout ça toujours dans le
40 > chroot).
41 >
42 > --
43 > Nicolas Sebrecht
44 >
45 >
46 >
47
48 Merci pour tes infos. Malheureusement, ca ne fonctionne pas...
49
50 Voici l erreur
51 livecd / # grub-install /dev/sda
52 The file /boot/grub/stage1 not read correctly.
53
54 Et les infos
55
56 livecd / # cat /boot/grub/menu.lst
57 default 0
58 timeout 30
59 splashimage=(hd0,4)/boot/grub/splash.xpm.gz
60 title=Gentoo Linux
61 root (hd0,4)
62 kernel /boot/kernel-genkernel-x86_64-2.6.24-gentoo-r7 root=/dev/ram0
63 init=/linuxrc ramdisk=8192 real_root=/dev/sda5 doscsi
64 initrd /boot/initramfs-genkernel-x86_64-2.6.24-gentoo-r7
65
66
67 mount dans le chroot
68 tmpfs on / type tmpfs (rw)
69 proc on /proc type proc (rw,nosuid,nodev,noexec)
70 sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
71 udev on /dev type tmpfs (rw,nosuid)
72 devpts on /dev/pts type devpts (rw,nosuid,noexec)
73 usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85)
74 /dev/sda5 on / type ext3 (rw)
75
76 hors chroot
77 tmpfs on / type tmpfs (rw)
78 /dev/hda on /mnt/cdrom type iso9660 (ro)
79 /dev/loop0 on /mnt/livecd type squashfs (ro)
80 proc on /proc type proc (rw,nosuid,nodev,noexec)
81 sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
82 udev on /dev type tmpfs (rw,nosuid)
83 devpts on /dev/pts type devpts (rw,nosuid,noexec)
84 tmpfs on /mnt/livecd/lib64/firmware type tmpfs (rw)
85 tmpfs on /mnt/livecd/usr/portage type tmpfs (rw)
86 usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85)
87 tmpfs on /boot type tmpfs (rw)
88 /dev/sda5 on /mnt/gentoo type ext3 (rw)
89 none on /mnt/gentoo/proc type proc (rw)
90 /dev on /mnt/gentoo/dev type none (rw,bind)
91 /proc on /mnt/gentoo/proc type none (rw,bind)
92 /sys on /mnt/gentoo/sys type none (rw,bind)
93
94 Et enfin
95
96 livecd / # find /boot -exec ls -ld '{}' \;
97 drwxr-xr-x 3 root root 4096 Jul 26 10:31 /boot
98 -rw-r--r-- 1 root root 23008301 Jul 25 21:21
99 /boot/initramfs-genkernel-x86_64-2.6.24-gentoo-r7
100 -rw-r--r-- 1 root root 2458520 Jul 25 21:21
101 /boot/kernel-genkernel-x86_64-2.6.24-gentoo-r7
102 -rw-r--r-- 1 root root 0 Jul 25 21:53 /boot/.keep
103 -rw-r--r-- 1 root root 1409311 Jul 25 21:21
104 /boot/System.map-genkernel-x86_64-2.6.24-gentoo-r7
105 drwxr-xr-x 2 root root 4096 Jul 26 10:29 /boot/grub
106 -rw-r--r-- 1 root root 7552 Jul 26 10:29 /boot/grub/ufs2_stage1_5
107 -rw-r--r-- 1 root root 30 Jul 26 10:29 /boot/grub/device.map
108 -rw-r--r-- 1 root root 7200 Jul 26 10:29 /boot/grub/ffs_stage1_5
109 -rw-r--r-- 1 root root 7968 Jul 26 10:29 /boot/grub/fat_stage1_5
110 -rw-r--r-- 1 root root 6784 Jul 26 10:29 /boot/grub/vstafs_stage1_5
111 -rw-r--r-- 1 root root 278 Jul 26 10:23 /boot/grub/menu.lst
112 -rw-r--r-- 1 root root 7232 Jul 26 10:29 /boot/grub/iso9660_stage1_5
113 -rw-r--r-- 1 root root 9728 Jul 26 10:29 /boot/grub/reiserfs_stage1_5
114 -rw-r--r-- 1 root root 512 Jul 26 10:29 /boot/grub/stage1
115 -rw-r--r-- 1 root root 105948 Jul 26 10:29 /boot/grub/stage2
116 -rw-r--r-- 1 root root 9384 Jul 26 10:29 /boot/grub/xfs_stage1_5
117 -rw-r--r-- 1 root root 197 Jul 26 10:29 /boot/grub/default
118 -rw-r--r-- 1 root root 8064 Jul 26 10:29 /boot/grub/e2fs_stage1_5
119 -rw-r--r-- 1 root root 7360 Jul 26 10:29 /boot/grub/minix_stage1_5
120 -rw-r--r-- 1 root root 8672 Jul 26 10:29 /boot/grub/jfs_stage1_5
121 lrwxrwxrwx 1 root root 1 Jul 25 21:53 /boot/boot -> .
122
123
124 Je vois vraiment pas ce qui cloche,,,
125 Merci

Replies

Subject Author
Re: [gentoo-user-fr] [grub] stage1 non trouve Nicolas Sebrecht <nicolas.s-dev@×××××××.net>