#1 Le 09/04/2013, à 19:03
- ETMLuc
[Résolu] Problème GRUB2
Bonjour,
Ma partition ubuntu devenait trop petite, j'ai donc réduit ma partition windows pour augmenter la partition ubuntu.
Tout c'est bien passé jusqu’à ce que je redémarre.
Grub est en mode console. En cherchant un peu, je suis arrivé à booter sur windows (set root(hd0,2) chainloader +1 boot). Mais lorsque j'utilise la même méthode pour booter sous ubuntu (set root=(hd0,5) chainloader) j’obtiens la réponse "Invalid signature" et pas de boot possible.
J'ai essayé un boot repair et cela se finir en erreur (le rapport : http://paste.ubuntu.com/5692606
Comment faire pour booter sur ubuntu ?
Une fois que je suis dessus, je supose qu'un "sudo update-grub(2 ?)" doit suffire à tout remettre d'aplomb ?
Merci
Cordialement
Luc
Dernière modification par ETMLuc (Le 13/04/2013, à 10:18)
Hors ligne
#2 Le 09/04/2013, à 19:07
- Compte anonymisé
Re : [Résolu] Problème GRUB2
#3 Le 09/04/2013, à 20:08
- ETMLuc
Re : [Résolu] Problème GRUB2
j'ai testé, la commande insmod ne fonctionne pas
j'ai quand même fais la suite et j'ai une série de chose qui s'affiche dans la console (beaucoup de chose, ça fait plus d'un écran donc je ne peux pas vous dire tout ce qu'il y a)
et rien de plus...
Je vais re tester quand même au cas où...
EDIT : Toujours pareil, et la touche verr.maj clignote sur mon clavier
Dernière modification par ETMLuc (Le 09/04/2013, à 20:18)
Hors ligne
#4 Le 09/04/2013, à 20:11
- ETMLuc
Re : [Résolu] Problème GRUB2
précision : "insmod /boot/grub/linux.mod" renvoie une erreur car il ne trouve pas le fichier
Hors ligne
#5 Le 09/04/2013, à 20:31
- Compte anonymisé
Re : [Résolu] Problème GRUB2
Dans ton cas les cmd seraient :
set prefix=(hd0,5)/boot/grub
set root=(hd0,5)
insmod /boot/grub/linux.mod
linux /vmlinuz root=/dev/sda5 ro
initrd /initrd.img
boot
#6 Le 09/04/2013, à 20:36
- ETMLuc
Re : [Résolu] Problème GRUB2
oui c'est ce que j'ai fais mais ça ne boot pas...
Hors ligne
#7 Le 09/04/2013, à 20:47
- ETMLuc
Re : [Résolu] Problème GRUB2
voici ce qui s'affiche après le commande boot :
Hors ligne
#8 Le 09/04/2013, à 20:48
- Compte anonymisé
Re : [Résolu] Problème GRUB2
Il faut donc tenter de réparer ton système de fichiers depuis un Livecd ou un Liveusb (qui t'on servi à installer) puis tu tapes la commande :
sudo fsck -f -y /dev/sdX5 remplacer le X par la lettre correspondant à ta partition / un sudo fdsik -l te donnera l'info.
Ensuite tente de rebooter.
@+
#9 Le 09/04/2013, à 20:50
- ETMLuc
Re : [Résolu] Problème GRUB2
je fais cette commande depuis une liveusb ? (j'en ai fait un justement)
Hors ligne
#10 Le 09/04/2013, à 20:53
- Compte anonymisé
Re : [Résolu] Problème GRUB2
Yes
#11 Le 09/04/2013, à 20:57
- ETMLuc
Re : [Résolu] Problème GRUB2
ok, c'est quelle partition qui doit être considéré ? Parceque concernant ubuntu j'ai la sda4 qui est "extended" qui comprend tout, j'ai sda5 qui est "linux" et qui doit être mon système et j'ai sda6 qui est "linux swap / solaris".
C'est bien la sda5 que je prend ?
Hors ligne
#12 Le 09/04/2013, à 21:09
- ETMLuc
Re : [Résolu] Problème GRUB2
ubuntu@ubuntu:~$ sudo fsck -f -y /dev/sda5
fsck from util-linux 2.20.1
e2fsck 1.42.5 (29-Jul-2012)
Passe 1 : vérification des i-noeuds, des blocs et des tailles
Passe 2 : vérification de la structure des répertoires
Passe 3 : vérification de la connectivité des répertoires
Passe 4 : vérification des compteurs de référence
Passe 5 : vérification de l'information du sommaire de groupe
/dev/sda5 : 504788/2353616 fichiers (1.1% non contigüs), 3301882/9459200 blocs
et je reboot
EDIT : toujours pareil au reboot
Dernière modification par ETMLuc (Le 09/04/2013, à 21:11)
Hors ligne
#13 Le 09/04/2013, à 21:09
- Compte anonymisé
Re : [Résolu] Problème GRUB2
Je suis étonné que le -y ne passe pas mais bon je vois que tu as réussi à le faire . Y a-t-il eu réparation ? Si oui tu peux retenter les commandes listées post #5.
Si ça ne passe pas je ne vois plus trop quoi faire à part réinstaller (après avoir sauvegardé ton /home/ton_user en Liveusb)
@+
Dernière modification par Compte anonymisé (Le 09/04/2013, à 21:11)
#14 Le 09/04/2013, à 21:16
- ETMLuc
Re : [Résolu] Problème GRUB2
désolé je me suis trompé entre -y et -Y, j'ai modifié mon post, le -y fonctionne bien
j'ai repris les commandes du post #5 et j'arrive toujours à la même chose au reboot :s
Hors ligne
#15 Le 09/04/2013, à 21:22
- Compte anonymisé
Re : [Résolu] Problème GRUB2
Tu peux tenter en LiveUSB de réinstaller grub sur le MBR du disque, mais j'ai un doute.
Voir ICI et adapter à ton cas.
@+
#16 Le 09/04/2013, à 21:32
- Arbiel
Re : [Résolu] Problème GRUB2
Bonsoir
Je ne sais pas exactement où vous en êtes. Je tiens seulement à indiquer que la commande insmod s'utilise avec le nom du module, sans le .mod, et que par défaut, le module est chargé à partir de /boot/grub
Il faut donc écrire
insmod linux
Pour le reste, je n'ai pas lu avec suffisamment d'attention, mais je le ferai si vous ne vous en sortez pas, pour voir si je peux aider.
Arbiel
Arbiel Perlacremaz
LDLC Aurore NK3S-8-S4 Ubuntu 20.04
Abandon d'azerty au profit de bépo, de google au profit de Lilo et de la messagerie électronique violable au profit de Protonmail, une messagerie chiffrée de poste de travail à poste de travail.
Hors ligne
#17 Le 09/04/2013, à 22:24
- ETMLuc
Re : [Résolu] Problème GRUB2
ok, dans le pire des cas, je réinstallerais... mais si je peux évité ca m'arrange quand même.
Arbiel : merci, j'ai remplacé insmod /boot/grub/linux.mod par insmod linux, je n'ai donc plus l'erreur du fichier introuvable, mais après la commande boot j'ai toujours la même chose.
Si tu as une idée pour m'aider, je suis preneur
Merci
Luc
Hors ligne
#18 Le 10/04/2013, à 01:09
- Arbiel
Re : [Résolu] Problème GRUB2
Bonsoir
Je constate que tu n'as pas donné de nom à ta partition /dev/sda5. Nomme la comme tu l'entends, sans espaces ni apostrophes. Je suppose également que ton fichier (/dev/sda5)/boot/grub/grub.cfg n'est pas très bon puisque le rapport que tu as essayé de produire a avorté au moment de son édition.
Passes ensuite cette première commande pour définir la variable ${partition}
partition=<nom de ta partition /dev/sda5>
puis recopie textuellement les trois commandes suivantes (copier, coller - attention coller dans le terminal nécessite que tu appuies sur les trois touches Ctrl+Maj+V)
ls /media | grep ${partition} || sudo mkdir /media/${partition}
sudo mount LABEL=${partition} /media/${partition}
cat /media/${partition}/boot/grub/grub.cfg
et affiche le résultat de la dernière ligne.
Il se peut que cette dernière commande avorte, comme cela a été le cas lors du boot-repair. Dans ce cas, il te faut alors revenir dans un terminal et passer à nouveau la commande
partition=<nom de ta partition /dev/sda5>
puis demander l'édition de ton fichier /etc/fstab
cat /media/${partition}/etc/fstab
Affiche le résultat de cette commande.
Exécute ensuite la commande
sudo mv -T /media/${partition}/boot/grub/grub.cfg /media/${partition}/boot/grub/grub.cfg.sauv
pour faire une sauvegarde de ton fichier grub.cfg.
Vérifie que cette sauvegarde s'est bien exécutée avant de poursuivre
Si tout va bien, enregistre le code suivant à la place de ton fichier /media/${partition}/boot/grub/grub.cfg
set uuid=742e29d5-c5a7-4240-b516-e956eef2fa30
set kernel="/vmlinuz"
set initrd="/initrd.img"
set kernelopt="ro quiet splash vt.handoff=7"
insmod fat
insmod part_msdos
insmod ntfs
insmod ext2
set timeout=0
insmod gzio
set dk=
set ur=
search --no-floppy --set=dk --fs-uuid ${uuid}
probe --set=lk --label "(${dk})"
set uk=${uuid}
set ur=${uk}
set lr=${lk}
set dr=${dk}
linux (${dk})${kernel} root=UUID=${ur} ${kernelopt}
initrd (${dk})${initrd}
boot
arrête ton PC, retire le périphérique amovible et redémarre.
Dis moi ce qui se passe.
Arbiel
Arbiel Perlacremaz
LDLC Aurore NK3S-8-S4 Ubuntu 20.04
Abandon d'azerty au profit de bépo, de google au profit de Lilo et de la messagerie électronique violable au profit de Protonmail, une messagerie chiffrée de poste de travail à poste de travail.
Hors ligne
#19 Le 10/04/2013, à 04:31
- moko138
Re : [Résolu] Problème GRUB2
Bonjour,
Des partitions, ayant été redimensionnées (1er message), ont changé d'UUID.
Peut-être serait-il donc à-propos de comparer le fstab aux résultats de
sudo blkid
%NOINDEX%
Un utilitaire précieux : ncdu
Photo, mini-tutoriel : À la découverte de dcraw
Hors ligne
#20 Le 10/04/2013, à 09:12
- Compte anonymisé
Re : [Résolu] Problème GRUB2
ok, dans le pire des cas, je réinstallerais... mais si je peux évité ca m'arrange quand même.
Arbiel : merci, j'ai remplacé insmod /boot/grub/linux.mod par insmod linux, je n'ai donc plus l'erreur du fichier introuvable, mais après la commande boot j'ai toujours la même chose.
Si tu as une idée pour m'aider, je suis preneur
Merci
Luc
Je suis étonné car j'ai testé avec insmod /boot/grub/linux.mod et ça fonctionne très bien.
Le problème est ailleurs.
Avant tout en démarrant en LiveCD peux-tu faire ceci :
sudo -i
mkdir /sda5
mount /dev/sda5 /sda5
cat /sda5/etc/fstab donner le résultat
gedit /sda5/boot/grub/grub.cfg donner le résultat
ls -l /sda5/boot donner le résultat rectifié
ls -l /sda5/ donner le résultat rectifié
@+
Dernière modification par Compte anonymisé (Le 10/04/2013, à 17:14)
#21 Le 10/04/2013, à 17:06
- ETMLuc
Re : [Résolu] Problème GRUB2
Arbiel : la première commande ne fonctionne pas :
ubuntu@ubuntu:~$ partition=<ubuntu /dev/sda5>
bash: syntax error near unexpected token `newline'
Moko138 :
ubuntu@ubuntu:~$ sudo blkid
/dev/loop0: TYPE="squashfs"
/dev/loop1: UUID="553b4d8e-9524-48d5-9ee0-7a762405f7aa" TYPE="ext3"
/dev/sda1: SEC_TYPE="msdos" LABEL="DellUtility" UUID="3030-3030" TYPE="vfat"
/dev/sda2: LABEL="RECOVERY" UUID="90F20A79F20A63B6" TYPE="ntfs"
/dev/sda3: LABEL="OS" UUID="00B8457CB8457168" TYPE="ntfs"
/dev/sda5: LABEL="ubuntu" UUID="742e29d5-c5a7-4240-b516-e956eef2fa30" TYPE="ext4"
/dev/sda6: UUID="08d61aff-f438-4c16-95c9-e0283f7c2a34" TYPE="swap"
/dev/sdb1: UUID="05EC-44DE" TYPE="vfat"
jeanjd63 :
root@ubuntu:~# cat /sda5/etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda5 during installation
UUID=742e29d5-c5a7-4240-b516-e956eef2fa30 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=08d61aff-f438-4c16-95c9-e0283f7c2a34 none swap sw 0 0
gedit /sda5/boot/grub/grub.cfg -> gedit n'arrive pas à me l'ouvrir il se grise et je dois le forcer à quitter...
root@ubuntu:~# ls -l /sda/boot
ls: cannot access /sda/boot: No such file or directory
et
root@ubuntu:~# ls -l /sda/
ls: cannot access /sda/: No such file or directory
Merci
@+
Luc
Hors ligne
#22 Le 10/04/2013, à 17:08
- ETMLuc
Re : [Résolu] Problème GRUB2
Heu, si le grub.cfg plante ca peux venir de ça non ? Il utilise ce fichier au démarrage non ?
Hors ligne
#23 Le 10/04/2013, à 17:14
- Compte anonymisé
Re : [Résolu] Problème GRUB2
Je rectifie pour les 2 dernieres commandes :
A repasser en direct si tu n'as pas quitté l'environnement LiveUSB si taper avant : sudo mkdir /sda5 puis
sudo ls -l /sda5/boot donner le résultat
sudo ls -l /sda5/ donner le résultat
#24 Le 10/04/2013, à 17:24
- ETMLuc
Re : [Résolu] Problème GRUB2
ok, alors voila :
root@ubuntu:~# sudo ls -l /sda5/boot
total 326228
-rw-r--r-- 1 root root 730457 juin 28 2011 abi-2.6.38-10-generic
-rw-r--r-- 1 root root 730545 sept. 12 2011 abi-2.6.38-11-generic
-rw-r--r-- 1 root root 730744 sept. 28 2011 abi-2.6.38-12-generic
-rw-r--r-- 1 root root 730039 avril 11 2011 abi-2.6.38-8-generic
-rw-r--r-- 1 root root 730457 avril 28 2011 abi-2.6.38-9-generic
-rw-r--r-- 1 root root 730902 avril 5 2012 abi-3.0.0-19-generic
-rw-r--r-- 1 root root 792532 sept. 26 2012 abi-3.2.0-32-generic
-rw-r--r-- 1 root root 844882 oct. 9 2012 abi-3.5.0-17-generic
-rw-r--r-- 1 root root 844937 oct. 19 10:50 abi-3.5.0-18-generic
-rw-r--r-- 1 root root 845342 nov. 13 18:10 abi-3.5.0-19-generic
-rw-r--r-- 1 root root 848069 déc. 11 19:14 abi-3.5.0-21-generic
-rw-r--r-- 1 root root 848290 janv. 8 22:09 abi-3.5.0-22-generic
-rw-r--r-- 1 root root 848290 janv. 24 13:38 abi-3.5.0-23-generic
-rw-r--r-- 1 root root 850088 mars 8 23:41 abi-3.5.0-26-generic
-rw-r--r-- 1 root root 852365 mars 25 20:20 abi-3.5.0-27-generic
-rw-r--r-- 1 root root 130326 juin 28 2011 config-2.6.38-10-generic
-rw-r--r-- 1 root root 130326 sept. 12 2011 config-2.6.38-11-generic
-rw-r--r-- 1 root root 130326 sept. 28 2011 config-2.6.38-12-generic
-rw-r--r-- 1 root root 130313 avril 11 2011 config-2.6.38-8-generic
-rw-r--r-- 1 root root 130335 avril 28 2011 config-2.6.38-9-generic
-rw-r--r-- 1 root root 135132 avril 5 2012 config-3.0.0-19-generic
-rw-r--r-- 1 root root 140488 sept. 26 2012 config-3.2.0-32-generic
-rw-r--r-- 1 root root 147884 oct. 9 2012 config-3.5.0-17-generic
-rw-r--r-- 1 root root 147884 oct. 19 10:50 config-3.5.0-18-generic
-rw-r--r-- 1 root root 147847 nov. 13 18:10 config-3.5.0-19-generic
-rw-r--r-- 1 root root 147871 déc. 11 19:14 config-3.5.0-21-generic
-rw-r--r-- 1 root root 147871 janv. 8 22:09 config-3.5.0-22-generic
-rw-r--r-- 1 root root 147871 janv. 24 13:38 config-3.5.0-23-generic
-rw-r--r-- 1 root root 147944 mars 8 23:41 config-3.5.0-26-generic
-rw-r--r-- 1 root root 148096 mars 25 20:20 config-3.5.0-27-generic
drwxr-xr-x 3 root root 4096 avril 3 19:16 extlinux
drwxr-xr-x 5 root root 12288 avril 3 19:16 grub
-rw-r--r-- 1 root root 13234193 juil. 17 2011 initrd.img-2.6.38-10-generic
-rw-r--r-- 1 root root 13236693 sept. 14 2011 initrd.img-2.6.38-11-generic
-rw-r--r-- 1 root root 13381609 oct. 15 2011 initrd.img-2.6.38-12-generic
-rw-r--r-- 1 root root 13193407 mai 8 2011 initrd.img-2.6.38-8-generic
-rw-r--r-- 1 root root 13192932 mai 18 2011 initrd.img-2.6.38-9-generic
-rw-r--r-- 1 root root 13879131 mai 9 2012 initrd.img-3.0.0-19-generic
-rw-r--r-- 1 root root 14333778 oct. 19 10:06 initrd.img-3.2.0-32-generic
-rw-r--r-- 1 root root 15398406 oct. 25 17:36 initrd.img-3.5.0-17-generic
-rw-r--r-- 1 root root 15398651 oct. 25 17:40 initrd.img-3.5.0-18-generic
-rw-r--r-- 1 root root 15398052 nov. 20 18:15 initrd.img-3.5.0-19-generic
-rw-r--r-- 1 root root 15400786 déc. 20 21:12 initrd.img-3.5.0-21-generic
-rw-r--r-- 1 root root 15404146 janv. 14 19:32 initrd.img-3.5.0-22-generic
-rw-r--r-- 1 root root 15403584 janv. 27 10:00 initrd.img-3.5.0-23-generic
-rw-r--r-- 1 root root 15448780 mars 17 18:42 initrd.img-3.5.0-26-generic
-rw-r--r-- 1 root root 15478901 avril 3 19:17 initrd.img-3.5.0-27-generic
-rw-r--r-- 1 root root 176764 janv. 3 22:48 memtest86+.bin
-rw-r--r-- 1 root root 178944 janv. 3 22:48 memtest86+_multiboot.bin
-rw------- 1 root root 2655857 juin 28 2011 System.map-2.6.38-10-generic
-rw------- 1 root root 2656297 sept. 12 2011 System.map-2.6.38-11-generic
-rw------- 1 root root 2656729 sept. 28 2011 System.map-2.6.38-12-generic
-rw------- 1 root root 2654256 avril 11 2011 System.map-2.6.38-8-generic
-rw------- 1 root root 2655567 avril 28 2011 System.map-2.6.38-9-generic
-rw------- 1 root root 2703504 avril 5 2012 System.map-3.0.0-19-generic
-rw------- 1 root root 2884076 sept. 26 2012 System.map-3.2.0-32-generic
-rw------- 1 root root 2901710 oct. 9 2012 System.map-3.5.0-17-generic
-rw------- 1 root root 2902868 oct. 19 10:50 System.map-3.5.0-18-generic
-rw------- 1 root root 2902610 nov. 13 18:10 System.map-3.5.0-19-generic
-rw------- 1 root root 2903614 déc. 11 19:14 System.map-3.5.0-21-generic
-rw------- 1 root root 2904407 janv. 8 22:09 System.map-3.5.0-22-generic
-rw------- 1 root root 2904246 janv. 24 13:38 System.map-3.5.0-23-generic
-rw------- 1 root root 2899290 mars 8 23:41 System.map-3.5.0-26-generic
-rw------- 1 root root 2900893 mars 25 20:20 System.map-3.5.0-27-generic
-rw------- 1 root root 1369 juin 28 2011 vmcoreinfo-2.6.38-10-generic
-rw------- 1 root root 1369 sept. 12 2011 vmcoreinfo-2.6.38-11-generic
-rw------- 1 root root 1369 sept. 28 2011 vmcoreinfo-2.6.38-12-generic
-rw------- 1 root root 1368 avril 11 2011 vmcoreinfo-2.6.38-8-generic
-rw------- 1 root root 1368 avril 28 2011 vmcoreinfo-2.6.38-9-generic
-rw------- 1 root root 1367 avril 5 2012 vmcoreinfo-3.0.0-19-generic
-rw------- 1 root root 4526912 juin 28 2011 vmlinuz-2.6.38-10-generic
-rw------- 1 root root 4526784 sept. 12 2011 vmlinuz-2.6.38-11-generic
-rw------- 1 root root 4527136 sept. 28 2011 vmlinuz-2.6.38-12-generic
-rw-r--r-- 1 root root 4523936 mai 7 2011 vmlinuz-2.6.38-8-generic
-rw------- 1 root root 4526464 avril 28 2011 vmlinuz-2.6.38-9-generic
-rw------- 1 root root 4690992 avril 5 2012 vmlinuz-3.0.0-19-generic
-rw------- 1 root root 4966768 sept. 26 2012 vmlinuz-3.2.0-32-generic
-rw------- 1 root root 5129040 oct. 9 2012 vmlinuz-3.5.0-17-generic
-rw------- 1 root root 5132688 oct. 19 10:50 vmlinuz-3.5.0-18-generic
-rw------- 1 root root 5132592 nov. 13 18:10 vmlinuz-3.5.0-19-generic
-rw------- 1 root root 5133840 déc. 11 19:14 vmlinuz-3.5.0-21-generic
-rw------- 1 root root 5134960 janv. 8 22:09 vmlinuz-3.5.0-22-generic
-rw------- 1 root root 5134032 janv. 24 13:38 vmlinuz-3.5.0-23-generic
-rw------- 1 root root 5124624 mars 8 23:41 vmlinuz-3.5.0-26-generic
-rw------- 1 root root 5127408 mars 25 20:20 vmlinuz-3.5.0-27-generic
et
root@ubuntu:~# sudo ls -l /sda5/
total 152
drwxr-xr-x 2 root root 4096 nov. 25 17:39 bin
drwxr-xr-x 4 root root 4096 avril 3 19:17 boot
drwxr-xr-x 2 root root 4096 mai 7 2011 cdrom
drwxr-xr-x 5 root root 4096 avril 25 2011 dev
drwxr-xr-x 162 root root 12288 avril 8 15:39 etc
drwxr-xr-x 4 root root 4096 mai 7 2011 home
lrwxrwxrwx 1 root root 32 avril 3 19:16 initrd.img -> boot/initrd.img-3.5.0-27-generic
lrwxrwxrwx 1 root root 33 avril 3 19:15 initrd.img.old -> /boot/initrd.img-3.5.0-27-generic
drwxr-xr-x 24 root root 4096 avril 3 19:13 lib
drwxr-xr-x 2 root root 20480 janv. 29 20:32 lib32
lrwxrwxrwx 1 root root 36 oct. 19 10:40 libnss3.so -> /usr/lib/x86_64-linux-gnu/libnss3.so
drwx------ 3 root root 16384 mai 7 2011 lost+found
drwxr-xr-x 3 root root 4096 déc. 21 12:37 media
drwxr-xr-x 2 root root 4096 avril 21 2011 mnt
drwxr-xr-x 4 root root 4096 mars 24 12:01 opt
drwxr-xr-x 2 root root 4096 avril 21 2011 proc
drwx------ 12 root root 4096 déc. 20 23:11 root
drwxr-xr-x 2 root root 4096 avril 8 21:51 run
drwxr-xr-x 2 root root 12288 avril 3 19:13 sbin
drwxr-xr-x 2 root root 4096 mars 21 2011 selinux
drwxr-xr-x 3 root root 4096 déc. 20 23:08 srv
drwxr-xr-x 2 root root 4096 mars 28 2011 sys
drwxrwxrwt 11 root root 12288 avril 8 15:39 tmp
drwxr-xr-x 11 root root 4096 oct. 15 2011 usr
drwxr-xr-x 14 root root 4096 avril 8 15:39 var
lrwxrwxrwx 1 root root 29 avril 3 19:16 vmlinuz -> boot/vmlinuz-3.5.0-27-generic
lrwxrwxrwx 1 root root 29 avril 3 19:15 vmlinuz.old -> boot/vmlinuz-3.5.0-27-generic
-rw-r--r-- 1 root root 9651 mai 9 2011 xorg.conf.new
root@ubuntu:~# sudo ls -l /sda5/
total 152
drwxr-xr-x 2 root root 4096 nov. 25 17:39 bin
drwxr-xr-x 4 root root 4096 avril 3 19:17 boot
drwxr-xr-x 2 root root 4096 mai 7 2011 cdrom
drwxr-xr-x 5 root root 4096 avril 25 2011 dev
drwxr-xr-x 162 root root 12288 avril 8 15:39 etc
drwxr-xr-x 4 root root 4096 mai 7 2011 home
lrwxrwxrwx 1 root root 32 avril 3 19:16 initrd.img -> boot/initrd.img-3.5.0-27-generic
lrwxrwxrwx 1 root root 33 avril 3 19:15 initrd.img.old -> /boot/initrd.img-3.5.0-27-generic
drwxr-xr-x 24 root root 4096 avril 3 19:13 lib
drwxr-xr-x 2 root root 20480 janv. 29 20:32 lib32
lrwxrwxrwx 1 root root 36 oct. 19 10:40 libnss3.so -> /usr/lib/x86_64-linux-gnu/libnss3.so
drwx------ 3 root root 16384 mai 7 2011 lost+found
drwxr-xr-x 3 root root 4096 déc. 21 12:37 media
drwxr-xr-x 2 root root 4096 avril 21 2011 mnt
drwxr-xr-x 4 root root 4096 mars 24 12:01 opt
drwxr-xr-x 2 root root 4096 avril 21 2011 proc
drwx------ 12 root root 4096 déc. 20 23:11 root
drwxr-xr-x 2 root root 4096 avril 8 21:51 run
drwxr-xr-x 2 root root 12288 avril 3 19:13 sbin
drwxr-xr-x 2 root root 4096 mars 21 2011 selinux
drwxr-xr-x 3 root root 4096 déc. 20 23:08 srv
drwxr-xr-x 2 root root 4096 mars 28 2011 sys
drwxrwxrwt 11 root root 12288 avril 8 15:39 tmp
drwxr-xr-x 11 root root 4096 oct. 15 2011 usr
drwxr-xr-x 14 root root 4096 avril 8 15:39 var
lrwxrwxrwx 1 root root 29 avril 3 19:16 vmlinuz -> boot/vmlinuz-3.5.0-27-generic
lrwxrwxrwx 1 root root 29 avril 3 19:15 vmlinuz.old -> boot/vmlinuz-3.5.0-27-generic
-rw-r--r-- 1 root root 9651 mai 9 2011 xorg.conf.new
Hors ligne
#25 Le 10/04/2013, à 17:45
- Compte anonymisé
Re : [Résolu] Problème GRUB2
Tes fichiers ont l'air ok.
Depuis l'environnement LiveUSB peux-tu tenter ce qui suit (en supposant que tu es resté sur le même terminal et que tu n'as rien fait d'autre) :
sudo mount --bind /dev /sda5/dev
sudo mount --bind /proc /sda5/proc
tu "bascules" la partition root LiveCD sur celle de ton install.
sudo chroot /sda5
tu mets à jour grub :
update-grub
Et là tu vas lister le fichier grub.cfg :
gedit /boot/grub/grub.cfg
tu (ré)installes Grub sur le MBR du DD
grub-install /dev/sda