Chargement...
 
Skip to main content

1 - Le matériel et les pilotes ALSA, FFADO, ...


[RÉSOLU] Ubuntu - boot impossible

Bonjour à tous.

J'ai voulu faire une installation toute fraiche d'Ubuntu sur mon pc principal dimanche soir. Depuis je me bats pour faire démarrer GRUB. Il affiche
Copy to clipboard
GRUB is loading, please wait.
, puis freeze général. Lorsque je tente de restaurer GRUB via un live-cd en chroot, je me fais jeter, impossible de trouver la liste des partitions selon lui (mais j'imagine qu'il faut prendre tout ce qu'on fait avec des pincettes quand on est en chroot...).

J'ai déjà demandé aux confrères de Ubuntu-fr.org :
http://forum.ubuntu-fr.org/viewtopic.php?id=380720

Ils semblent pas très inspirés. Si vous l'êtes plus, faites le moi savoir! 😉
Je tenterai, en rentrant chez moi jeudi aprem', de faire un peu de place pour installer WuBi sur ma partition système Windows, et de voir si j'arrive à faire marcher GRUB par là. Parce que c'est quand même très très énervant comme problème, pour rester poli! Sans GRUB, pas de boot, et donc pas vraiment de diagnostic ni de debug... :\

Merci à vous!
France
salut !

commence par regarder sur ce fil recent

Lorsque je tente de restaurer GRUB via un live-cd en chroot, je me fais jeter, impossible de trouver la liste des partitions selon lui

?? c'est quoi le message exact ? a quelle commande ?
envoi ici le contenu du fichier /boot/grub/grub.conf
salut !

?? c'est quoi le message exact ? a quelle commande ?
envoi ici le contenu du fichier /boot/grub/grub.conf


Copy to clipboard
ubuntu@ubuntu:~$ sudo mount /dev/sdb6 /mnt ubuntu@ubuntu:~$ sudo mount --bind /dev/ /mnt/dev ubuntu@ubuntu:~$ sudo mount /dev/sdb2 /mnt/boot ubuntu@ubuntu:~$ sudo chroot /mnt root@ubuntu:/# update-grub Generating grub.cfg ... Found linux image: /boot/vmlinuz-2.6.31-14-generic Found initrd image: /boot/initrd.img-2.6.31-14-generic Found memtest86+ image: /memtest86+.bin grep: /proc/mounts: Aucun fichier ou dossier de ce type Cannot find list of partitions! done


Quant au grub.conf : introuvable!

Copy to clipboard
root@ubuntu:/boot# cat /boot/grub/grub.conf cat: /boot/grub/grub.conf: Aucun fichier ou dossier de ce type root@ubuntu:/boot# ls -al /boot/grub/ total 2712 drwxr-xr-x 2 root root 4096 2010-02-25 13:25 . drwxr-xr-x 5 root root 4096 2010-02-23 21:43 .. -rw-r--r-- 1 root root 8320 2010-02-23 21:46 915resolution.mod -rw-r--r-- 1 root root 10632 2010-02-23 21:46 acpi.mod -rw-r--r-- 1 root root 4684 2010-02-23 21:46 affs.mod -rw-r--r-- 1 root root 5144 2010-02-23 21:46 afs_be.mod -rw-r--r-- 1 root root 4916 2010-02-23 21:46 afs.mod -rw-r--r-- 1 root root 1136 2010-02-23 21:46 aout.mod -rw-r--r-- 1 root root 7952 2010-02-23 21:46 ata.mod -rw-r--r-- 1 root root 2352 2010-02-23 21:46 ata_pthru.mod -rw-r--r-- 1 root root 2324 2010-02-23 21:46 at_keyboard.mod -rw-r--r-- 1 root root 5036 2010-02-23 21:46 befs_be.mod -rw-r--r-- 1 root root 4808 2010-02-23 21:46 befs.mod -rw-r--r-- 1 root root 4264 2010-02-23 21:46 biosdisk.mod -rw-r--r-- 1 root root 2528 2010-02-23 21:46 bitmap.mod -rw-r--r-- 1 root root 2116 2010-02-23 21:46 blocklist.mod -rw-r--r-- 1 root root 512 2010-02-23 21:46 boot.img -rw-r--r-- 1 root root 2652 2010-02-23 21:46 boot.mod -rw-r--r-- 1 root root 19384 2010-02-23 21:46 bsd.mod -rw-r--r-- 1 root root 2048 2010-02-23 21:46 bufio.mod -rw-r--r-- 1 root root 2036 2010-02-23 21:46 cat.mod -rw-r--r-- 1 root root 512 2010-02-23 21:46 cdboot.img -rw-r--r-- 1 root root 2420 2010-02-23 21:46 chain.mod -rw-r--r-- 1 root root 2212 2010-02-23 21:46 cmp.mod -rw-r--r-- 1 root root 1558 2010-02-23 21:46 command.lst -rw-r--r-- 1 root root 1904 2010-02-23 21:46 configfile.mod -rw-r--r-- 1 root root 25105 2010-02-23 21:46 core.img -rw-r--r-- 1 root root 2872 2010-02-23 21:46 cpio.mod -rw-r--r-- 1 root root 1660 2010-02-23 21:46 cpuid.mod -rw-r--r-- 1 root root 1824 2010-02-23 21:46 crc.mod -rw-r--r-- 1 root root 1912 2010-02-23 21:46 datehook.mod -rw-r--r-- 1 root root 2360 2010-02-23 21:46 date.mod -rw-r--r-- 1 root root 1333 2010-02-23 21:46 datetime.mod -rw-r--r-- 1 root root 30 2010-02-23 21:46 device.map -rw-r--r-- 1 root root 512 2010-02-23 21:46 diskboot.img -rw-r--r-- 1 root root 1932 2010-02-23 21:46 dm_nv.mod -rw-r--r-- 1 root root 5620 2010-02-23 21:46 drivemap.mod -rw-r--r-- 1 root root 2008 2010-02-23 21:46 echo.mod -rw-r--r-- 1 root root 6436 2010-02-23 21:46 efiemu32.o -rw-r--r-- 1 root root 11003 2010-02-23 21:46 efiemu64.o -rw-r--r-- 1 root root 25024 2010-02-23 21:46 efiemu.mod -rw-r--r-- 1 root root 4476 2010-02-23 21:46 elf.mod -rw-r--r-- 1 root root 5544 2010-02-23 21:46 ext2.mod -rw-r--r-- 1 root root 3916 2010-02-23 21:46 extcmd.mod -rw-r--r-- 1 root root 5812 2010-02-23 21:46 fat.mod -rw-r--r-- 1 root root 7296 2010-02-23 21:46 font.mod -rw-r--r-- 1 root root 2284 2010-02-23 21:46 fs_file.mod -rw-r--r-- 1 root root 2852 2010-02-23 21:46 fshelp.mod -rw-r--r-- 1 root root 121 2010-02-23 21:46 fs.lst -rw-r--r-- 1 root root 2220 2010-02-23 21:46 fs_uuid.mod -rw-r--r-- 1 root root 8624 2010-02-23 21:46 gfxterm.mod -rw-r--r-- 1 root root 3816 2010-02-23 21:46 gptsync.mod -r--r--r-- 1 root root 2716 2010-02-25 13:25 grub.cfg -rw-r--r-- 1 root root 1024 2010-02-23 21:46 grubenv -rw-r--r-- 1 root root 7816 2010-02-23 21:46 gzio.mod -rw-r--r-- 1 root root 1552 2010-02-23 21:46 halt.mod -rw-r--r-- 1 root root 272 2010-02-23 21:46 handler.lst -rw-r--r-- 1 root root 2144 2010-02-23 21:46 handler.mod -rw-r--r-- 1 root root 7400 2010-02-23 21:46 hdparm.mod -rw-r--r-- 1 root root 1308 2010-02-23 21:46 hello.mod -rw-r--r-- 1 root root 2200 2010-02-23 21:46 help.mod -rw-r--r-- 1 root root 3196 2010-02-23 21:46 hexdump.mod -rw-r--r-- 1 root root 5996 2010-02-23 21:46 hfs.mod -rw-r--r-- 1 root root 5876 2010-02-23 21:46 hfsplus.mod -rw-r--r-- 1 root root 6080 2010-02-23 21:46 iso9660.mod -rw-r--r-- 1 root root 5676 2010-02-23 21:46 jfs.mod -rw-r--r-- 1 root root 5988 2010-02-23 21:46 jpeg.mod -rw-r--r-- 1 root root 31004 2010-02-23 21:46 kernel.img -rw-r--r-- 1 root root 2092 2010-02-23 21:46 keystatus.mod -rw-r--r-- 1 root root 4952 2010-02-23 21:46 linux16.mod -rw-r--r-- 1 root root 8716 2010-02-23 21:46 linux.mod -rw-r--r-- 1 root root 1024 2010-02-23 21:46 lnxboot.img -rw-r--r-- 1 root root 5664 2010-02-23 21:46 loadenv.mod -rw-r--r-- 1 root root 3172 2010-02-23 21:46 loopback.mod -rw-r--r-- 1 root root 1388 2010-02-23 21:46 lsmmap.mod -rw-r--r-- 1 root root 4196 2010-02-23 21:46 ls.mod -rw-r--r-- 1 root root 4272 2010-02-23 21:46 lspci.mod -rw-r--r-- 1 root root 5580 2010-02-23 21:46 lvm.mod -rw-r--r-- 1 root root 1856 2010-02-23 21:46 mdraid.mod -rw-r--r-- 1 root root 2176 2010-02-23 21:46 memdisk.mod -rw-r--r-- 1 root root 2272 2010-02-23 21:46 memrw.mod -rw-r--r-- 1 root root 4116 2010-02-23 21:46 minicmd.mod -rw-r--r-- 1 root root 4456 2010-02-23 21:46 minix.mod -rw-r--r-- 1 root root 8656 2010-02-23 21:46 mmap.mod -rw-r--r-- 1 root root 1657 2010-02-23 21:46 moddep.lst -rw-r--r-- 1 root root 2468 2010-02-23 21:46 msdospart.mod -rw-r--r-- 1 root root 15112 2010-02-23 21:46 multiboot.mod -rw-r--r-- 1 root root 34764 2010-02-23 21:46 normal.mod -rw-r--r-- 1 root root 3352 2010-02-23 21:46 ntfscomp.mod -rw-r--r-- 1 root root 8584 2010-02-23 21:46 ntfs.mod -rw-r--r-- 1 root root 4576 2010-02-23 21:46 ohci.mod -rw-r--r-- 1 root root 2196 2010-02-23 21:46 part_acorn.mod -rw-r--r-- 1 root root 2400 2010-02-23 21:46 part_amiga.mod -rw-r--r-- 1 root root 2776 2010-02-23 21:46 part_apple.mod -rw-r--r-- 1 root root 2840 2010-02-23 21:46 part_gpt.mod -rw-r--r-- 1 root root 62 2010-02-23 21:46 partmap.lst -rw-r--r-- 1 root root 3552 2010-02-23 21:46 part_msdos.mod -rw-r--r-- 1 root root 2376 2010-02-23 21:46 part_sun.mod -rw-r--r-- 1 root root 22 2010-02-23 21:46 parttool.lst -rw-r--r-- 1 root root 4608 2010-02-23 21:46 parttool.mod -rw-r--r-- 1 root root 2052 2010-02-23 21:46 password.mod -rw-r--r-- 1 root root 928 2010-02-23 21:46 pci.mod -rw-r--r-- 1 root root 2144 2010-02-23 21:46 play.mod -rw-r--r-- 1 root root 6580 2010-02-23 21:46 png.mod -rw-r--r-- 1 root root 2752 2010-02-23 21:46 probe.mod -rw-r--r-- 1 root root 1024 2010-02-23 21:46 pxeboot.img -rw-r--r-- 1 root root 2512 2010-02-23 21:46 pxecmd.mod -rw-r--r-- 1 root root 3620 2010-02-23 21:46 pxe.mod -rw-r--r-- 1 root root 1472 2010-02-23 21:46 raid5rec.mod -rw-r--r-- 1 root root 2920 2010-02-23 21:46 raid6rec.mod -rw-r--r-- 1 root root 5960 2010-02-23 21:46 raid.mod -rw-r--r-- 1 root root 1632 2010-02-23 21:46 read.mod -rw-r--r-- 1 root root 1212 2010-02-23 21:46 reboot.mod -rw-r--r-- 1 root root 9948 2010-02-23 21:46 reiserfs.mod -rw-r--r-- 1 root root 3340 2010-02-23 21:46 scsi.mod -rw-r--r-- 1 root root 3604 2010-02-23 21:46 search.mod -rw-r--r-- 1 root root 5692 2010-02-23 21:46 serial.mod -rw-r--r-- 1 root root 778 2010-02-23 21:46 setjmp.mod -rw-r--r-- 1 root root 4228 2010-02-23 21:46 sfs.mod -rw-r--r-- 1 root root 12132 2010-02-23 21:46 sh.mod -rw-r--r-- 1 root root 2296 2010-02-23 21:46 sleep.mod -rw-r--r-- 1 root root 2904 2010-02-23 21:46 tar.mod -rw-r--r-- 1 root root 9624 2010-02-23 21:46 terminfo.mod -rw-r--r-- 1 root root 5248 2010-02-23 21:46 test.mod -rw-r--r-- 1 root root 2976 2010-02-23 21:46 tga.mod -rw-r--r-- 1 root root 1356 2010-02-23 21:46 true.mod -rw-r--r-- 1 root root 5156 2010-02-23 21:46 udf.mod -rw-r--r-- 1 root root 4796 2010-02-23 21:46 ufs1.mod -rw-r--r-- 1 root root 5116 2010-02-23 21:46 ufs2.mod -rw-r--r-- 1 root root 4972 2010-02-23 21:46 uhci.mod -rw-r--r-- 1 root root 1716019 2010-02-23 21:46 unicode.pf2 -rw-r--r-- 1 root root 3356 2010-02-23 21:46 usb_keyboard.mod -rw-r--r-- 1 root root 4268 2010-02-23 21:46 usb.mod -rw-r--r-- 1 root root 3876 2010-02-23 21:46 usbms.mod -rw-r--r-- 1 root root 3052 2010-02-23 21:46 usbtest.mod -rw-r--r-- 1 root root 2824 2010-02-23 21:46 vbeinfo.mod -rw-r--r-- 1 root root 6236 2010-02-23 21:46 vbe.mod -rw-r--r-- 1 root root 3136 2010-02-23 21:46 vbetest.mod -rw-r--r-- 1 root root 3756 2010-02-23 21:46 vga.mod -rw-r--r-- 1 root root 2780 2010-02-23 21:46 vga_text.mod -rw-r--r-- 1 root root 16316 2010-02-23 21:46 video_fb.mod -rw-r--r-- 1 root root 5352 2010-02-23 21:46 video.mod -rw-r--r-- 1 root root 3912 2010-02-23 21:46 videotest.mod -rw-r--r-- 1 root root 6168 2010-02-23 21:46 xfs.mod -rw-r--r-- 1 root root 24792 2010-02-23 21:46 xnu.mod -rw-r--r-- 1 root root 4312 2010-02-23 21:46 xnu_uuid.mod -rw-r--r-- 1 root root 6416 2010-02-23 21:46 zfsinfo.mod -rw-r--r-- 1 root root 24360 2010-02-23 21:46 zfs.mod

Salut

en fait c'est grub.cfg que tu recherches 😀
donc renvoie nous le
Copy to clipboard
cat /boot/grub/grub.cfg


jy
Hehe oui, je m'en suis rendu compte, je venais justement le mettre 😡. C'est la version que j'ai restauré et installé dans le MBR de hda (le disque où Windows est installé) il y a quelques minutes après avoir fait tourner le script de configuration automatique de Grub2.

Copy to clipboard
# # DO NOT EDIT THIS FILE # # It is automatically generated by /usr/sbin/grub-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### if [ -s /boot/grub/grubenv ]; then have_grubenv=true load_env fi set default="0" if [ ${prev_saved_entry} ]; then saved_entry=${prev_saved_entry} save_env saved_entry prev_saved_entry= save_env prev_saved_entry fi insmod ext2 set root=(hd1,6) search --no-floppy --fs-uuid --set 8c21917d-5a70-4534-935c-2c629baa7a7b if loadfont /usr/share/grub/unicode.pf2 ; then set gfxmode=640x480 insmod gfxterm insmod vbe if terminal_output gfxterm ; then true ; else # For backward compatibility with versions of terminal.mod that don't # understand terminal_output terminal gfxterm fi fi if [ ${recordfail} = 1 ]; then set timeout=-1 else set timeout=10 fi ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/05_debian_theme ### set menu_color_normal=white/black set menu_color_highlight=black/white ### END /etc/grub.d/05_debian_theme ### ### BEGIN /etc/grub.d/10_linux ### menuentry "Ubuntu, Linux 2.6.31-14-generic" { recordfail=1 if [ -n ${have_grubenv} ]; then save_env recordfail; fi set quiet=1 insmod ext2 set root=(hd1,2) search --no-floppy --fs-uuid --set 1583badb-fe2a-4841-a939-e3608bfa1845 linux /vmlinuz-2.6.31-14-generic root=UUID=8c21917d-5a70-4534-935c-2c629baa7a7b ro quiet splash initrd /initrd.img-2.6.31-14-generic } menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" { recordfail=1 if [ -n ${have_grubenv} ]; then save_env recordfail; fi insmod ext2 set root=(hd1,2) search --no-floppy --fs-uuid --set 1583badb-fe2a-4841-a939-e3608bfa1845 linux /vmlinuz-2.6.31-14-generic root=UUID=8c21917d-5a70-4534-935c-2c629baa7a7b ro single initrd /initrd.img-2.6.31-14-generic } ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/20_memtest86+ ### menuentry "Memory test (memtest86+)" { linux16 /memtest86+.bin } menuentry "Memory test (memtest86+, serial console 115200)" { linux16 /memtest86+.bin console=ttyS0,115200n8 } ### END /etc/grub.d/20_memtest86+ ### ### BEGIN /etc/grub.d/30_os-prober ### if [ ${timeout} != -1 ]; then if keystatus; then if keystatus --shift; then set timeout=-1 else set timeout=0 fi else if sleep --interruptible 3 ; then set timeout=0 fi fi fi ### END /etc/grub.d/30_os-prober ### ### BEGIN /etc/grub.d/40_custom ### # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. ### END /etc/grub.d/40_custom ###

France
grep: /proc/mounts: Aucun fichier ou dossier de ce type

il te manque une commande avant le chroot :
Copy to clipboard
mount -t proc proc /mnt/proc

Oui, je m'en suis rendu compte aussi! J'ai cherché d'autres howto pour savoir si je restaurais grub correctement, et il m'est apparu que cette commande manquait à l'appel.

J'ai donc tout refait correctement, la restauration a marché, mais même problème au démarrage de la bête,
Copy to clipboard
GRUB is loading
et puis plus rien.

Je pense que ça doit être un problème hardware, puisque même problème quand je veux installer avec WuBi. Il faudrait que j'essaie avec une distrib différente, type Fedora, mais je n'ai pas de DVD vierges sous la main et ma carte mère ne boot pas sur clé usb... :\.

Ah oui, et aussi, l'utilitaire de vérification me dit que mes disques sont bien gravés, pas de données corrompues.
tu peux nous montrer la liste de tes partitions steup ?

Copy to clipboard
sudo fdisk -l


jy
Copy to clipboard
ubuntu@ubuntu:~$ sudo mount /dev/sdb6 /mnt ubuntu@ubuntu:~$ sudo mount --bind /dev /mnt/dev ubuntu@ubuntu:~$ sudo mount -t proc none /mnt/proc ubuntu@ubuntu:~$ sudo mount /dev/sdb2 /mnt/boot ubuntu@ubuntu:~$ sudo chroot /mnt root@ubuntu:/# fdisk -l Disque /dev/sda: 160.0 Go, 160041885696 octets 255 têtes, 63 secteurs/piste, 19457 cylindres Unités = cylindres de 16065 * 512 = 8225280 octets Identifiant de disque : 0x000c47ca Périphérique Amorce Début Fin Blocs Id Système /dev/sda1 2 12159 97659135 f W95 Etendue (LBA) /dev/sda3 * 12160 19457 58621185 7 HPFS/NTFS /dev/sda5 2 12159 97659103+ 7 HPFS/NTFS Disque /dev/sdb: 160.0 Go, 160041885696 octets 16 têtes, 63 secteurs/piste, 310101 cylindres Unités = cylindres de 1008 * 512 = 516096 octets Identifiant de disque : 0x5f0f91c2 Périphérique Amorce Début Fin Blocs Id Système /dev/sdb1 6095 310100 153219024 f W95 Etendue (LBA) /dev/sdb2 1 6094 3071344+ 83 Linux /dev/sdb5 6096 174135 84692160 7 HPFS/NTFS /dev/sdb6 174136 304287 65596576+ 83 Linux /dev/sdb7 304288 310100 2929720+ 82 Linux swap / Solaris Les entrées de la table de partitions ne sont pas dans l'ordre du disque root@ubuntu:/#


/dev/sdb2 est monté sur /boot
/dev/sdb6 est monté sur /

L'erreur vient peut-être du fait que mon système se trouve à l'intérieur d'une partition étendue...Qui sait.
Problème résolu en réinstallant Ubuntu en dehors de la partition étendue sur sdb!
coooool ! 😀

Édition (admin jy_moustache) : sujet fermé car résolu. Merci de remonter les informations pertinentes dans les pages Wiki adéquates.
Si besoin de réouvrir le sujet, vous pouvez vous adresser à un des admins 😉
Pour des conseils sur le fonctionnement général du forum, vous pouvez voir cette page.