Et lorsque je tente l install de grub livecd / # grub-install
--no-floppy --recheck --root-directory=/boot /dev/sdaProbing devices
to guess BIOS drives. This may take a long time.
The file /boot/boot/grub/stage1 not read correctly.
Et lorsque je tente l install de grub livecd / # grub-install --no-floppy --recheck --root-directory=/boot /dev/sdaProbing devices to guess BIOS drives. This may take a long time. The file /boot/boot/grub/stage1 not read correctly.
Quelqu un aurait-il une idee ?
En enlevant "--root-directory=/boot" dans la ligne de commandes de grub-install ?
<div dir="ltr">2008/7/25 Revolver Onslaught <<a href="mailto:revolve "></a>>:<br><div class ="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1p x solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <br> Et lorsque je tente l install de grub livecd / # grub-install<br> --no-floppy --recheck --root-directory=/boot /dev/sdaProbing devices<br> to guess BIOS drives. This may take a long time.<br> The file /boot/boot/grub/stage1 not read correctly.<br> <br> Quelqu un aurait-il une idee ?<br> </blockquote></div><br><br>En enlevant "--root-directory=/boot" dans la ligne de commandes de grub-install ?<br><br>Sinon, tape simplement "grub"<br>puis à l'invite: <br>> root (0,4)<br>> set up (hd0,4)<br> > exit<br></div>
Et lorsque je tente l install de grub livecd / # grub-install
--no-floppy --recheck --root-directory=/boot /dev/sdaProbing devices
to guess BIOS drives. This may take a long time.
The file /boot/boot/grub/stage1 not read correctly.
Quelqu un aurait-il une idee ?
En enlevant "--root-directory=/boot" dans la ligne de commandes de
grub-install ?
<div dir="ltr">2008/7/25 Revolver Onslaught <<a href="mailto:revolve r.onslaught@gmail.com">revolver.onslaught@gmail.com</a>>:<br><div class ="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1p x solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Et lorsque je tente l install de grub livecd / # grub-install<br>
--no-floppy --recheck --root-directory=/boot /dev/sdaProbing devices<br>
to guess BIOS drives. This may take a long time.<br>
The file /boot/boot/grub/stage1 not read correctly.<br>
<br>
Quelqu un aurait-il une idee ?<br>
</blockquote></div><br><br>En enlevant "--root-directory=/boot" dans la ligne de commandes de grub-install ?<br><br>Sinon, tape simplement "grub"<br>puis à l'invite: <br>> root (0,4)<br>> set up (hd0,4)<br>
> exit<br></div>
Et lorsque je tente l install de grub livecd / # grub-install --no-floppy --recheck --root-directory=/boot /dev/sdaProbing devices to guess BIOS drives. This may take a long time. The file /boot/boot/grub/stage1 not read correctly.
Quelqu un aurait-il une idee ?
En enlevant "--root-directory=/boot" dans la ligne de commandes de grub-install ?
<div dir="ltr">2008/7/25 Revolver Onslaught <<a href="mailto:revolve "></a>>:<br><div class ="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1p x solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <br> Et lorsque je tente l install de grub livecd / # grub-install<br> --no-floppy --recheck --root-directory=/boot /dev/sdaProbing devices<br> to guess BIOS drives. This may take a long time.<br> The file /boot/boot/grub/stage1 not read correctly.<br> <br> Quelqu un aurait-il une idee ?<br> </blockquote></div><br><br>En enlevant "--root-directory=/boot" dans la ligne de commandes de grub-install ?<br><br>Sinon, tape simplement "grub"<br>puis à l'invite: <br>> root (0,4)<br>> set up (hd0,4)<br> > exit<br></div>
------=_Part_122875_1821438.1217018367761--
Revolver Onslaught
2008/7/25 Guillaume Pujol :
2008/7/25 Revolver Onslaught :
Et lorsque je tente l install de grub livecd / # grub-install --no-floppy --recheck --root-directory=/boot /dev/sdaProbing devices to guess BIOS drives. This may take a long time. The file /boot/boot/grub/stage1 not read correctly.
Quelqu un aurait-il une idee ?
En enlevant "--root-directory=/boot" dans la ligne de commandes de grub-install ?
Sinon, tape simplement "grub" puis à l'invite:
root (0,4) setup (hd0,4) exit
Voici le resultat
livecd / # grub-install --no-floppy /dev/sda The file /boot/grub/stage1 not read correctly. livecd / # grub-install --no-floppy --recheck /dev/sda Probing devices to guess BIOS drives. This may take a long time. The file /boot/grub/stage1 not read correctly. livecd / # grub Probing devices to guess BIOS drives. This may take a long time.
GNU GRUB version 0.97 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possibl e completions of a device/filename. ] grub> root (hd0,4) root (hd0,4) Filesystem type is ext2fs, partition type 0x83 grub> setup (hd0,4) setup (hd0,4) Checking if "/boot/grub/stage1" exists... no Checking if "/grub/stage1" exists... no
Et lorsque je tente l install de grub livecd / # grub-install
--no-floppy --recheck --root-directory=/boot /dev/sdaProbing devices
to guess BIOS drives. This may take a long time.
The file /boot/boot/grub/stage1 not read correctly.
Quelqu un aurait-il une idee ?
En enlevant "--root-directory=/boot" dans la ligne de commandes de
grub-install ?
Sinon, tape simplement "grub"
puis à l'invite:
root (0,4)
setup (hd0,4)
exit
Voici le resultat
livecd / # grub-install --no-floppy /dev/sda
The file /boot/grub/stage1 not read correctly.
livecd / # grub-install --no-floppy --recheck /dev/sda
Probing devices to guess BIOS drives. This may take a long time.
The file /boot/grub/stage1 not read correctly.
livecd / # grub
Probing devices to guess BIOS drives. This may take a long time.
GNU GRUB version 0.97 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possibl e
completions of a device/filename. ]
grub> root (hd0,4)
root (hd0,4)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0,4)
setup (hd0,4)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... no
Et lorsque je tente l install de grub livecd / # grub-install --no-floppy --recheck --root-directory=/boot /dev/sdaProbing devices to guess BIOS drives. This may take a long time. The file /boot/boot/grub/stage1 not read correctly.
Quelqu un aurait-il une idee ?
En enlevant "--root-directory=/boot" dans la ligne de commandes de grub-install ?
Sinon, tape simplement "grub" puis à l'invite:
root (0,4) setup (hd0,4) exit
Voici le resultat
livecd / # grub-install --no-floppy /dev/sda The file /boot/grub/stage1 not read correctly. livecd / # grub-install --no-floppy --recheck /dev/sda Probing devices to guess BIOS drives. This may take a long time. The file /boot/grub/stage1 not read correctly. livecd / # grub Probing devices to guess BIOS drives. This may take a long time.
GNU GRUB version 0.97 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possibl e completions of a device/filename. ] grub> root (hd0,4) root (hd0,4) Filesystem type is ext2fs, partition type 0x83 grub> setup (hd0,4) setup (hd0,4) Checking if "/boot/grub/stage1" exists... no Checking if "/grub/stage1" exists... no
Error 2: Bad file or directory type
Dommage. J y ai cru... ;o)
Une autre idee ?
Etienne Hilson
> Une autre idee ?
cd /boot ln -s . boot
arrangera peut-être bien les choses
Etienne
-- (__/) (='.'=) Ceci est un petit lapin. Copiez/collez-le dans (")_(") votre signature pour l'aider à dominer le monde
> Une autre idee ?
cd /boot
ln -s . boot
arrangera peut-être bien les choses
Etienne
--
(__/)
(='.'=) Ceci est un petit lapin. Copiez/collez-le dans
(")_(") votre signature pour l'aider à dominer le monde
grub> root (hd0,4) root (hd0,4) Filesystem type is ext2fs, partition type 0x83 grub> setup (hd0,4) setup (hd0,4) Checking if "/boot/grub/stage1" exists... no Checking if "/grub/stage1" exists... no
Error 2: Bad file or directory type
Dommage. J y ai cru... ;o)
Une autre idee ?
Réessaye en supprimant d'abord tout ce qu'il y dans /boot/grub/ ?
<div dir="ltr"><br><br><div class="gmail_quote">2008/7/25 Revolver Onsl aught <<a href="mailto:">revolver.onslaugh </a>>:<br><blockquote class="gmail_quote" style="border-l eft: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <br> grub> root (hd0,4)<br> root (hd0,4)<br> Filesystem type is ext2fs, partition type 0x83<br> grub> setup (hd0,4)<br> setup (hd0,4)<br> Checking if "/boot/grub/stage1" exists... no<br> Checking if "/grub/stage1" exists... no<br> <br> Error 2: Bad file or directory type<br> <br> Dommage. J y ai cru... ;o)<br> <br> Une autre idee ?<br> <br> </blockquote></div>Réessaye en supprimant d'abord tout ce qu'il y dans /boot/grub/ ?<br></div>
grub> root (hd0,4)
root (hd0,4)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0,4)
setup (hd0,4)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... no
Error 2: Bad file or directory type
Dommage. J y ai cru... ;o)
Une autre idee ?
Réessaye en supprimant d'abord tout ce qu'il y dans /boot/grub/ ?
<div dir="ltr"><br><br><div class="gmail_quote">2008/7/25 Revolver Onsl aught <<a href="mailto:revolver.onslaught@gmail.com">revolver.onslaugh t@gmail.com</a>>:<br><blockquote class="gmail_quote" style="border-l eft: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
grub> root (hd0,4)<br>
root (hd0,4)<br>
Filesystem type is ext2fs, partition type 0x83<br>
grub> setup (hd0,4)<br>
setup (hd0,4)<br>
Checking if "/boot/grub/stage1" exists... no<br>
Checking if "/grub/stage1" exists... no<br>
<br>
Error 2: Bad file or directory type<br>
<br>
Dommage. J y ai cru... ;o)<br>
<br>
Une autre idee ?<br>
<br>
</blockquote></div>Réessaye en supprimant d'abord tout ce qu'il y dans /boot/grub/ ?<br></div>
grub> root (hd0,4) root (hd0,4) Filesystem type is ext2fs, partition type 0x83 grub> setup (hd0,4) setup (hd0,4) Checking if "/boot/grub/stage1" exists... no Checking if "/grub/stage1" exists... no
Error 2: Bad file or directory type
Dommage. J y ai cru... ;o)
Une autre idee ?
Réessaye en supprimant d'abord tout ce qu'il y dans /boot/grub/ ?
<div dir="ltr"><br><br><div class="gmail_quote">2008/7/25 Revolver Onsl aught <<a href="mailto:">revolver.onslaugh </a>>:<br><blockquote class="gmail_quote" style="border-l eft: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <br> grub> root (hd0,4)<br> root (hd0,4)<br> Filesystem type is ext2fs, partition type 0x83<br> grub> setup (hd0,4)<br> setup (hd0,4)<br> Checking if "/boot/grub/stage1" exists... no<br> Checking if "/grub/stage1" exists... no<br> <br> Error 2: Bad file or directory type<br> <br> Dommage. J y ai cru... ;o)<br> <br> Une autre idee ?<br> <br> </blockquote></div>Réessaye en supprimant d'abord tout ce qu'il y dans /boot/grub/ ?<br></div>
------=_Part_123525_1714629.1217021522789--
Revolver Onslaught
Voila
livecd boot # mv grub/ grub.old livecd boot # mkdir grub livecd boot # grub-install --no-floppy --recheck /dev/sda Probing devices to guess BIOS drives. This may take a long time. The file /boot/grub/stage1 not read correctly. livecd boot # ls grub default ffs_stage1_5 reiserfs_stage1_5 vstafs_stage1_5 device.map iso9660_stage1_5 stage1 xfs_stage1_5 e2fs_stage1_5 jfs_stage1_5 stage2 fat_stage1_5 minix_stage1_5 ufs2_stage1_5
C est horrible...
2008/7/25 Guillaume Pujol :
2008/7/25 Revolver Onslaught :
grub> root (hd0,4) root (hd0,4) Filesystem type is ext2fs, partition type 0x83 grub> setup (hd0,4) setup (hd0,4) Checking if "/boot/grub/stage1" exists... no Checking if "/grub/stage1" exists... no
Error 2: Bad file or directory type
Dommage. J y ai cru... ;o)
Une autre idee ?
Réessaye en supprimant d'abord tout ce qu'il y dans /boot/grub/ ?
Voila
livecd boot # mv grub/ grub.old
livecd boot # mkdir grub
livecd boot # grub-install --no-floppy --recheck /dev/sda
Probing devices to guess BIOS drives. This may take a long time.
The file /boot/grub/stage1 not read correctly.
livecd boot # ls grub
default ffs_stage1_5 reiserfs_stage1_5 vstafs_stage1_5
device.map iso9660_stage1_5 stage1 xfs_stage1_5
e2fs_stage1_5 jfs_stage1_5 stage2
fat_stage1_5 minix_stage1_5 ufs2_stage1_5
grub> root (hd0,4)
root (hd0,4)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0,4)
setup (hd0,4)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... no
Error 2: Bad file or directory type
Dommage. J y ai cru... ;o)
Une autre idee ?
Réessaye en supprimant d'abord tout ce qu'il y dans /boot/grub/ ?
livecd boot # mv grub/ grub.old livecd boot # mkdir grub livecd boot # grub-install --no-floppy --recheck /dev/sda Probing devices to guess BIOS drives. This may take a long time. The file /boot/grub/stage1 not read correctly. livecd boot # ls grub default ffs_stage1_5 reiserfs_stage1_5 vstafs_stage1_5 device.map iso9660_stage1_5 stage1 xfs_stage1_5 e2fs_stage1_5 jfs_stage1_5 stage2 fat_stage1_5 minix_stage1_5 ufs2_stage1_5
C est horrible...
2008/7/25 Guillaume Pujol :
2008/7/25 Revolver Onslaught :
grub> root (hd0,4) root (hd0,4) Filesystem type is ext2fs, partition type 0x83 grub> setup (hd0,4) setup (hd0,4) Checking if "/boot/grub/stage1" exists... no Checking if "/grub/stage1" exists... no
Error 2: Bad file or directory type
Dommage. J y ai cru... ;o)
Une autre idee ?
Réessaye en supprimant d'abord tout ce qu'il y dans /boot/grub/ ?
Nicolas Sebrecht
Revolver Onslaught a écrit:
Une fois dans le chroot et apres le env-update, voici mes fichiers :
livecd / # cat /etc/fstab
Cela n'indique rien. Le fstab ne sera utilisé que lorsque ton chroot sera réellement utilisé comme partition racine par ton noyau. C'est à dire lorsque tu lances un noyau avec l'option 'root=/dev/sda5'.
livecd / # cat /etc/mtab (copie depuis le cdlive avant chroot puis en enlevant le superflu)
Ce qu'il est important de connaître, c'est que tu trouves _après_ le chroot (de mémoire, le handbook fait installer le chargeur de démarrage dans le chroot).
Tu dois pouvoir retrouver les arborescences /dev, /sys et /proc dans le chroot. Donc, avant de « chrooter » : # mount --bind /proc /mnt/gentoo-chroot/proc # mount --bind /dev /mnt/gentoo-chroot/dev # mount --bind /sys /mnt/gentoo-chroot/sys
À adapter bien sûr.
Avant toute chose et toujours dans ton chroot, je réinstallerais grub (ça ne coûte rien). Donc : # chroot /mnt/gentoo-chroot /bin/bash (à adapter toujours) # emerge -av grub
Puis seulement après : # grub-install /dev/sda
Là, si ça ne fonctionne pas, donne le message d'erreur exact et les contenus du menu.lst (=grub.conf normalement), la sortie de « mount » et de « find /boot -exec ls -ld '{}' ; » (tout ça toujours dans le chroot).
-- Nicolas Sebrecht
Revolver Onslaught a écrit:
Une fois dans le chroot et apres le env-update, voici mes fichiers :
livecd / # cat /etc/fstab
Cela n'indique rien. Le fstab ne sera utilisé que lorsque ton chroot
sera réellement utilisé comme partition racine par ton noyau. C'est à
dire lorsque tu lances un noyau avec l'option 'root=/dev/sda5'.
livecd / # cat /etc/mtab (copie depuis le cdlive avant chroot puis en
enlevant le superflu)
Ce qu'il est important de connaître, c'est que tu trouves _après_ le
chroot (de mémoire, le handbook fait installer le chargeur de démarrage
dans le chroot).
Tu dois pouvoir retrouver les arborescences /dev, /sys et /proc dans le
chroot. Donc, avant de « chrooter » :
# mount --bind /proc /mnt/gentoo-chroot/proc
# mount --bind /dev /mnt/gentoo-chroot/dev
# mount --bind /sys /mnt/gentoo-chroot/sys
À adapter bien sûr.
Avant toute chose et toujours dans ton chroot, je réinstallerais grub
(ça ne coûte rien). Donc :
# chroot /mnt/gentoo-chroot /bin/bash
(à adapter toujours)
# emerge -av grub
Puis seulement après :
# grub-install /dev/sda
Là, si ça ne fonctionne pas, donne le message d'erreur exact et les
contenus du menu.lst (=grub.conf normalement), la sortie de « mount »
et de « find /boot -exec ls -ld '{}' ; » (tout ça toujours dans le
chroot).
Une fois dans le chroot et apres le env-update, voici mes fichiers :
livecd / # cat /etc/fstab
Cela n'indique rien. Le fstab ne sera utilisé que lorsque ton chroot sera réellement utilisé comme partition racine par ton noyau. C'est à dire lorsque tu lances un noyau avec l'option 'root=/dev/sda5'.
livecd / # cat /etc/mtab (copie depuis le cdlive avant chroot puis en enlevant le superflu)
Ce qu'il est important de connaître, c'est que tu trouves _après_ le chroot (de mémoire, le handbook fait installer le chargeur de démarrage dans le chroot).
Tu dois pouvoir retrouver les arborescences /dev, /sys et /proc dans le chroot. Donc, avant de « chrooter » : # mount --bind /proc /mnt/gentoo-chroot/proc # mount --bind /dev /mnt/gentoo-chroot/dev # mount --bind /sys /mnt/gentoo-chroot/sys
À adapter bien sûr.
Avant toute chose et toujours dans ton chroot, je réinstallerais grub (ça ne coûte rien). Donc : # chroot /mnt/gentoo-chroot /bin/bash (à adapter toujours) # emerge -av grub
Puis seulement après : # grub-install /dev/sda
Là, si ça ne fonctionne pas, donne le message d'erreur exact et les contenus du menu.lst (=grub.conf normalement), la sortie de « mount » et de « find /boot -exec ls -ld '{}' ; » (tout ça toujours dans le chroot).
-- Nicolas Sebrecht
Revolver Onslaught
Le 26 juillet 2008 01:55, Nicolas Sebrecht a écrit :
Revolver Onslaught a écrit:
Une fois dans le chroot et apres le env-update, voici mes fichiers :
livecd / # cat /etc/fstab
Cela n'indique rien. Le fstab ne sera utilisé que lorsque ton chroot sera réellement utilisé comme partition racine par ton noyau. C'est à dire lorsque tu lances un noyau avec l'option 'root=/dev/sda5'.
livecd / # cat /etc/mtab (copie depuis le cdlive avant chroot puis en enlevant le superflu)
Ce qu'il est important de connaître, c'est que tu trouves _après_ le chroot (de mémoire, le handbook fait installer le chargeur de démarra ge dans le chroot).
Tu dois pouvoir retrouver les arborescences /dev, /sys et /proc dans le chroot. Donc, avant de « chrooter » : # mount --bind /proc /mnt/gentoo-chroot/proc # mount --bind /dev /mnt/gentoo-chroot/dev # mount --bind /sys /mnt/gentoo-chroot/sys
À adapter bien sûr.
Avant toute chose et toujours dans ton chroot, je réinstallerais grub (ça ne coûte rien). Donc : # chroot /mnt/gentoo-chroot /bin/bash (à adapter toujours) # emerge -av grub
Puis seulement après : # grub-install /dev/sda
Là, si ça ne fonctionne pas, donne le message d'erreur exact et les contenus du menu.lst (=grub.conf normalement), la sortie de « mount » et de « find /boot -exec ls -ld '{}' ; » (tout ça toujours dans le chroot).
-- Nicolas Sebrecht
Merci pour tes infos. Malheureusement, ca ne fonctionne pas...
Voici l erreur livecd / # grub-install /dev/sda The file /boot/grub/stage1 not read correctly.
mount dans le chroot tmpfs on / type tmpfs (rw) proc on /proc type proc (rw,nosuid,nodev,noexec) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec) udev on /dev type tmpfs (rw,nosuid) devpts on /dev/pts type devpts (rw,nosuid,noexec) usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode64,devgid ) /dev/sda5 on / type ext3 (rw)
hors chroot tmpfs on / type tmpfs (rw) /dev/hda on /mnt/cdrom type iso9660 (ro) /dev/loop0 on /mnt/livecd type squashfs (ro) proc on /proc type proc (rw,nosuid,nodev,noexec) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec) udev on /dev type tmpfs (rw,nosuid) devpts on /dev/pts type devpts (rw,nosuid,noexec) tmpfs on /mnt/livecd/lib64/firmware type tmpfs (rw) tmpfs on /mnt/livecd/usr/portage type tmpfs (rw) usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode64,devgid ) tmpfs on /boot type tmpfs (rw) /dev/sda5 on /mnt/gentoo type ext3 (rw) none on /mnt/gentoo/proc type proc (rw) /dev on /mnt/gentoo/dev type none (rw,bind) /proc on /mnt/gentoo/proc type none (rw,bind) /sys on /mnt/gentoo/sys type none (rw,bind)
Le 26 juillet 2008 01:55, Nicolas Sebrecht <nicolas.s-dev@laposte.net> a écrit :
Revolver Onslaught a écrit:
Une fois dans le chroot et apres le env-update, voici mes fichiers :
livecd / # cat /etc/fstab
Cela n'indique rien. Le fstab ne sera utilisé que lorsque ton chroot
sera réellement utilisé comme partition racine par ton noyau. C'est à
dire lorsque tu lances un noyau avec l'option 'root=/dev/sda5'.
livecd / # cat /etc/mtab (copie depuis le cdlive avant chroot puis en
enlevant le superflu)
Ce qu'il est important de connaître, c'est que tu trouves _après_ le
chroot (de mémoire, le handbook fait installer le chargeur de démarra ge
dans le chroot).
Tu dois pouvoir retrouver les arborescences /dev, /sys et /proc dans le
chroot. Donc, avant de « chrooter » :
# mount --bind /proc /mnt/gentoo-chroot/proc
# mount --bind /dev /mnt/gentoo-chroot/dev
# mount --bind /sys /mnt/gentoo-chroot/sys
À adapter bien sûr.
Avant toute chose et toujours dans ton chroot, je réinstallerais grub
(ça ne coûte rien). Donc :
# chroot /mnt/gentoo-chroot /bin/bash
(à adapter toujours)
# emerge -av grub
Puis seulement après :
# grub-install /dev/sda
Là, si ça ne fonctionne pas, donne le message d'erreur exact et les
contenus du menu.lst (=grub.conf normalement), la sortie de « mount »
et de « find /boot -exec ls -ld '{}' ; » (tout ça toujours dans le
chroot).
--
Nicolas Sebrecht
Merci pour tes infos. Malheureusement, ca ne fonctionne pas...
Voici l erreur
livecd / # grub-install /dev/sda
The file /boot/grub/stage1 not read correctly.
mount dans le chroot
tmpfs on / type tmpfs (rw)
proc on /proc type proc (rw,nosuid,nodev,noexec)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
udev on /dev type tmpfs (rw,nosuid)
devpts on /dev/pts type devpts (rw,nosuid,noexec)
usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid =85)
/dev/sda5 on / type ext3 (rw)
hors chroot
tmpfs on / type tmpfs (rw)
/dev/hda on /mnt/cdrom type iso9660 (ro)
/dev/loop0 on /mnt/livecd type squashfs (ro)
proc on /proc type proc (rw,nosuid,nodev,noexec)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
udev on /dev type tmpfs (rw,nosuid)
devpts on /dev/pts type devpts (rw,nosuid,noexec)
tmpfs on /mnt/livecd/lib64/firmware type tmpfs (rw)
tmpfs on /mnt/livecd/usr/portage type tmpfs (rw)
usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid =85)
tmpfs on /boot type tmpfs (rw)
/dev/sda5 on /mnt/gentoo type ext3 (rw)
none on /mnt/gentoo/proc type proc (rw)
/dev on /mnt/gentoo/dev type none (rw,bind)
/proc on /mnt/gentoo/proc type none (rw,bind)
/sys on /mnt/gentoo/sys type none (rw,bind)
Le 26 juillet 2008 01:55, Nicolas Sebrecht a écrit :
Revolver Onslaught a écrit:
Une fois dans le chroot et apres le env-update, voici mes fichiers :
livecd / # cat /etc/fstab
Cela n'indique rien. Le fstab ne sera utilisé que lorsque ton chroot sera réellement utilisé comme partition racine par ton noyau. C'est à dire lorsque tu lances un noyau avec l'option 'root=/dev/sda5'.
livecd / # cat /etc/mtab (copie depuis le cdlive avant chroot puis en enlevant le superflu)
Ce qu'il est important de connaître, c'est que tu trouves _après_ le chroot (de mémoire, le handbook fait installer le chargeur de démarra ge dans le chroot).
Tu dois pouvoir retrouver les arborescences /dev, /sys et /proc dans le chroot. Donc, avant de « chrooter » : # mount --bind /proc /mnt/gentoo-chroot/proc # mount --bind /dev /mnt/gentoo-chroot/dev # mount --bind /sys /mnt/gentoo-chroot/sys
À adapter bien sûr.
Avant toute chose et toujours dans ton chroot, je réinstallerais grub (ça ne coûte rien). Donc : # chroot /mnt/gentoo-chroot /bin/bash (à adapter toujours) # emerge -av grub
Puis seulement après : # grub-install /dev/sda
Là, si ça ne fonctionne pas, donne le message d'erreur exact et les contenus du menu.lst (=grub.conf normalement), la sortie de « mount » et de « find /boot -exec ls -ld '{}' ; » (tout ça toujours dans le chroot).
-- Nicolas Sebrecht
Merci pour tes infos. Malheureusement, ca ne fonctionne pas...
Voici l erreur livecd / # grub-install /dev/sda The file /boot/grub/stage1 not read correctly.
mount dans le chroot tmpfs on / type tmpfs (rw) proc on /proc type proc (rw,nosuid,nodev,noexec) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec) udev on /dev type tmpfs (rw,nosuid) devpts on /dev/pts type devpts (rw,nosuid,noexec) usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode64,devgid ) /dev/sda5 on / type ext3 (rw)
hors chroot tmpfs on / type tmpfs (rw) /dev/hda on /mnt/cdrom type iso9660 (ro) /dev/loop0 on /mnt/livecd type squashfs (ro) proc on /proc type proc (rw,nosuid,nodev,noexec) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec) udev on /dev type tmpfs (rw,nosuid) devpts on /dev/pts type devpts (rw,nosuid,noexec) tmpfs on /mnt/livecd/lib64/firmware type tmpfs (rw) tmpfs on /mnt/livecd/usr/portage type tmpfs (rw) usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode64,devgid ) tmpfs on /boot type tmpfs (rw) /dev/sda5 on /mnt/gentoo type ext3 (rw) none on /mnt/gentoo/proc type proc (rw) /dev on /mnt/gentoo/dev type none (rw,bind) /proc on /mnt/gentoo/proc type none (rw,bind) /sys on /mnt/gentoo/sys type none (rw,bind)