#1 Le 23/05/2010, à 18:04
- Poun64
[Résolu] Lucid : Comment restaurer Grub-PC avec le LiveCD ?
Bonjour toul'monde ?
Sur mon disque dur d'essai, je teste Lucid un peu dans tous les sens...
Aujourd'hui, je bute sur la restauration de son Grub avec son LiveCD.
La page de la documentation qui me guide est : http://doc.ubuntu-fr.org/grub-pc#reinstallerrestaurer_grub_2
L'identification de mon disque et le point de montage de ma partition système par l'utilitaire de disque donne ceci :
Le disque s'appelle /dev/sdb
Le point de montage est /media/ca7b1....49d1 en fait c'est la partition sdb1
Quand j'essaye de restaurer avec la LiveCD avec la commande du tuto :
~$ sudo grub-install --root-directory=/mnt/sdb1 /dev/sdb, j'obtiens le message d'erreur suivant :
mkdir: ne peut créer le répertoire `/mnt/sda1/boot': Aucun fichier ou dossier de ce type
Cela veut-il dire que je dois remplacer dans la commande le "/mnt/sdb1" par "/media/ca7b1....49d1" ???
Dernière modification par Poun64 (Le 25/05/2010, à 13:41)
1) Xubuntu 22.04._LTS + Windows 10 - Gigabyte GA H77M - Intel Core I7 3770K / HD Graphics 4000 - 4 cœurs - 3,5 Ghz - 16 Go de RAM
2) Xubuntu 22.04._LTS + Windows 10 - Gigabyte H610M S2H - Intel I3-12100 / UHD Graphics 730 intégré - 4 cœurs - 3,3 Ghz - 16 Go de RAM
3) Xubuntu 22.04._LTS - NetBook ACER TravelMate - Intel Celeron N4020 - 2 cœurs - 1,1 Ghz - 4 Go de RAM - Intel UHD Graphics 605
Hors ligne
#2 Le 23/05/2010, à 18:07
- Michel Leunen
Re : [Résolu] Lucid : Comment restaurer Grub-PC avec le LiveCD ?
Et quel est ton problème?
Michel Leunen
http://linux.leunen.com
Hors ligne
#3 Le 23/05/2010, à 18:27
- Poun64
Re : [Résolu] Lucid : Comment restaurer Grub-PC avec le LiveCD ?
Salut Michel !
Et quel est ton problème?
Ça y est, j'ai fini de pondre mon Post... et j'ai essayé d'exposer mon souci...
Dernière modification par Poun64 (Le 23/05/2010, à 18:33)
1) Xubuntu 22.04._LTS + Windows 10 - Gigabyte GA H77M - Intel Core I7 3770K / HD Graphics 4000 - 4 cœurs - 3,5 Ghz - 16 Go de RAM
2) Xubuntu 22.04._LTS + Windows 10 - Gigabyte H610M S2H - Intel I3-12100 / UHD Graphics 730 intégré - 4 cœurs - 3,3 Ghz - 16 Go de RAM
3) Xubuntu 22.04._LTS - NetBook ACER TravelMate - Intel Celeron N4020 - 2 cœurs - 1,1 Ghz - 4 Go de RAM - Intel UHD Graphics 605
Hors ligne
#4 Le 24/05/2010, à 12:27
- Poun64
Re : [Résolu] Lucid : Comment restaurer Grub-PC avec le LiveCD ?
Salut toul'monde
Ben ça coince toujours...
J'ai essayé avec la commande : sudo grub-install –root-directory=/media/ca7b1756-48a2-459b-818e-222e3caf49d1 /dev/sdb et il n'y a rien qui s'installe.
Le retour du terminal est :
ubuntu@ubuntu:~$ sudo grub-install –root-directory=/media/ca7b1756-48a2-459b-818e-222e3caf49d1 /dev/sdb
More than one install_devices?
Usage: grub-install [OPTION] install_device
Install GRUB on your drive.
-h, --help print this message and exit
-v, --version print the version information and exit
--modules=MODULES pre-load specified modules MODULES
--root-directory=DIR install GRUB images under the directory DIR
instead of the root directory
--grub-setup=FILE use FILE as grub-setup
--grub-mkimage=FILE use FILE as grub-mkimage
--grub-probe=FILE use FILE as grub-probe
--no-floppy do not probe any floppy drive
--recheck probe a device map even if it already exists
--force install even if problems are detected
--disk-module=MODULE disk module to use
INSTALL_DEVICE can be a GRUB device name or a system device filename.
grub-install copies GRUB images into /boot/grub (or /grub on NetBSD and
OpenBSD), and uses grub-setup to install grub into the boot sector.
If the --root-directory option is used, then grub-install will copy
images into the operating system installation rooted at that directory.
Report bugs to <bug-grub@gnu.org>.
ubuntu@ubuntu:~$
Sniff
Quelqu'un a-t-il essayé ce tuto ?
Dernière modification par Poun64 (Le 24/05/2010, à 12:30)
1) Xubuntu 22.04._LTS + Windows 10 - Gigabyte GA H77M - Intel Core I7 3770K / HD Graphics 4000 - 4 cœurs - 3,5 Ghz - 16 Go de RAM
2) Xubuntu 22.04._LTS + Windows 10 - Gigabyte H610M S2H - Intel I3-12100 / UHD Graphics 730 intégré - 4 cœurs - 3,3 Ghz - 16 Go de RAM
3) Xubuntu 22.04._LTS - NetBook ACER TravelMate - Intel Celeron N4020 - 2 cœurs - 1,1 Ghz - 4 Go de RAM - Intel UHD Graphics 605
Hors ligne
#5 Le 24/05/2010, à 12:46
- marcodel
Re : [Résolu] Lucid : Comment restaurer Grub-PC avec le LiveCD ?
salut
sudo grub-install –root-directory=/media/ca7b1756-48a2-459b-818e-222e3caf49d1 /dev/sdb
il manque un tiret apres install
essais ca :
sudo grub-install -–root-directory=/media/ca7b1756-48a2-459b-818e-222e3caf49d1 /dev/sdb
et
sudo update-grub
a+
Dernière modification par marcodel (Le 24/05/2010, à 12:52)
En ligne
#6 Le 24/05/2010, à 14:07
- Poun64
Re : [Résolu] Lucid : Comment restaurer Grub-PC avec le LiveCD ?
Salut et merci tout plein marcodel !
Effectivement, je m'étais planté dans les tirets...
Le retour dans le terminal est devenu :
ubuntu@ubuntu:~$ sudo grub-install --root-directory=/media/ca7b1756-48a2-459b-818e-222e3caf49d1 /dev/sdb
Installation finished. No error reported.
En y regardant de près, les fichiers du répertoire /boot/grub/ ont bien été remis à jour.
Par contre, le fichier /boot/grub/grub.cfg est toujours le même. A priori ça me paraît normal.
Je vois également que les fichiers sous /etc/grub.d n'ont pas été reconstruits...
Si je fais (toujours à partir du LiveCD) sudo update-grub, j'obtiens le retour suivant :
ubuntu@ubuntu:~$ sudo update-grub
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
Cette commande sudo update-grub est-elle vraiment nécessaire à partir du LiveCD ???
On en parle pas dans la documentation dont j'ai mis le lien au 1er post.
Dernière modification par Poun64 (Le 24/05/2010, à 14:36)
1) Xubuntu 22.04._LTS + Windows 10 - Gigabyte GA H77M - Intel Core I7 3770K / HD Graphics 4000 - 4 cœurs - 3,5 Ghz - 16 Go de RAM
2) Xubuntu 22.04._LTS + Windows 10 - Gigabyte H610M S2H - Intel I3-12100 / UHD Graphics 730 intégré - 4 cœurs - 3,3 Ghz - 16 Go de RAM
3) Xubuntu 22.04._LTS - NetBook ACER TravelMate - Intel Celeron N4020 - 2 cœurs - 1,1 Ghz - 4 Go de RAM - Intel UHD Graphics 605
Hors ligne
#7 Le 24/05/2010, à 15:04
- Michel Leunen
Re : [Résolu] Lucid : Comment restaurer Grub-PC avec le LiveCD ?
Si je fais (toujours à partir du LiveCD) sudo update-grub, j'obtiens le retour suivant :
ubuntu@ubuntu:~$ sudo update-grub
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
Ben non, tu ne peux pas faire ça depuis le liveCD de cette façon. Pour faire un update-grub depuis le liveCD, tu dois faire ceci (attention: tu dois adapter la partition / à ton cas):
$ sudo mount /dev/sdb1 /mnt
$ sudo mount --bind /dev /mnt/dev/
$ sudo chroot /mnt
# update-grub
# exit
$ sudo umount /mnt/dev
$ sudo umount /mnt
J'ai supposé que ton système (/) se trouvait sur sdb1. A modifier si ce 'est pas le cas.
Note aussi qu'il ne faut pas de sudo avec update-grub parce que tu es en root (chroot) et tu peux le voir au prompt qui est passé de $ à #.
Michel Leunen
http://linux.leunen.com
Hors ligne
#8 Le 24/05/2010, à 15:44
- Poun64
Re : [Résolu] Lucid : Comment restaurer Grub-PC avec le LiveCD ?
Salut Michel Leunen. Merci pour tes éclairages !
Oui, sur mon disque dur de test, la partition système de Lucid est sur sdb1.
Il y a un petit truc que je pige pas bien :
Sur le LiveCD, quand je monte graphiquement sdb1, la partition atterrit dans le répertoire /media et non pas dans le répertoire /mnt. Cela change-t-il quelque chose à tes lignes de commande ?
1) Xubuntu 22.04._LTS + Windows 10 - Gigabyte GA H77M - Intel Core I7 3770K / HD Graphics 4000 - 4 cœurs - 3,5 Ghz - 16 Go de RAM
2) Xubuntu 22.04._LTS + Windows 10 - Gigabyte H610M S2H - Intel I3-12100 / UHD Graphics 730 intégré - 4 cœurs - 3,3 Ghz - 16 Go de RAM
3) Xubuntu 22.04._LTS - NetBook ACER TravelMate - Intel Celeron N4020 - 2 cœurs - 1,1 Ghz - 4 Go de RAM - Intel UHD Graphics 605
Hors ligne
#9 Le 24/05/2010, à 15:57
- Michel Leunen
Re : [Résolu] Lucid : Comment restaurer Grub-PC avec le LiveCD ?
Oui et non parce que en principe la ligne :
sudo mount /dev/sdb1 /mnt
devrait monter la partition sdb1 dans /mnt. Vérifie que ce soit bien le cas.
Sinon, ne tape pacette ligne, monte le en /media/... et change le code comme ceci:
$ sudo mount --bind /dev /media/......./dev/
$ sudo chroot /media/......
# update-grub
# exit
$ sudo umount /mnt/media/....../dev
Remplace les .....par la bonne valeur chez toi (ca7b1756-48a2-459b-818e-222e3caf49d1 d'après ton premier post)
Michel Leunen
http://linux.leunen.com
Hors ligne
#10 Le 24/05/2010, à 17:21
- Poun64
Re : [Résolu] Lucid : Comment restaurer Grub-PC avec le LiveCD ?
La commande sudo mount /dev/sdb1 /mnt remplit bien le dossier /mnt
Si je poursuis, ça me donne ça :
ubuntu@ubuntu:~$ sudo mount --bind /dev /mnt/dev/
ubuntu@ubuntu:~$
ubuntu@ubuntu:~$ sudo chroot /mnt
root@ubuntu:/#
root@ubuntu:/# update-grub
Generating grub.cfg ...
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
Is device-mapper driver missing from kernel?
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
Failed to set up list of device-mapper major numbers
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
Is device-mapper driver missing from kernel?
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
Failed to set up list of device-mapper major numbers
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
Found linux image: /boot/vmlinuz-2.6.32-22-generic
Found initrd image: /boot/initrd.img-2.6.32-22-generic
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
Is device-mapper driver missing from kernel?
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
Failed to set up list of device-mapper major numbers
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
Found linux image: /boot/vmlinuz-2.6.32-21-generic
Found initrd image: /boot/initrd.img-2.6.32-21-generic
Found memtest86+ image: /boot/memtest86+.bin
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
Is device-mapper driver missing from kernel?
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
Failed to set up list of device-mapper major numbers
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
grep: /proc/mounts: Aucun fichier ou dossier de ce type
Cannot find list of partitions!
done
root@ubuntu:/# exit
exit
ubuntu@ubuntu:~$
Si j'essaye ceci :
ubuntu@ubuntu:~$ sudo mount --bind /dev /media/ca7b1756-48a2-459b-818e-222e3caf49d1/dev/
ubuntu@ubuntu:~$
ubuntu@ubuntu:~$ sudo chroot /media/ca7b1756-48a2-459b-818e-222e3caf49d1
root@ubuntu:/#
root@ubuntu:/# update-grub
Generating grub.cfg ...
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
Is device-mapper driver missing from kernel?
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
Failed to set up list of device-mapper major numbers
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
Is device-mapper driver missing from kernel?
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
Failed to set up list of device-mapper major numbers
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
Found linux image: /boot/vmlinuz-2.6.32-22-generic
Found initrd image: /boot/initrd.img-2.6.32-22-generic
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
Is device-mapper driver missing from kernel?
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
Failed to set up list of device-mapper major numbers
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
Found linux image: /boot/vmlinuz-2.6.32-21-generic
Found initrd image: /boot/initrd.img-2.6.32-21-generic
Found memtest86+ image: /boot/memtest86+.bin
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
Is device-mapper driver missing from kernel?
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
Failed to set up list of device-mapper major numbers
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
/proc/devices: fopen failed: Aucun fichier ou dossier de ce type
grep: /proc/mounts: Aucun fichier ou dossier de ce type
Cannot find list of partitions!
done
J'ai à priori le même type d'erreur...
1) Xubuntu 22.04._LTS + Windows 10 - Gigabyte GA H77M - Intel Core I7 3770K / HD Graphics 4000 - 4 cœurs - 3,5 Ghz - 16 Go de RAM
2) Xubuntu 22.04._LTS + Windows 10 - Gigabyte H610M S2H - Intel I3-12100 / UHD Graphics 730 intégré - 4 cœurs - 3,3 Ghz - 16 Go de RAM
3) Xubuntu 22.04._LTS - NetBook ACER TravelMate - Intel Celeron N4020 - 2 cœurs - 1,1 Ghz - 4 Go de RAM - Intel UHD Graphics 605
Hors ligne
#11 Le 24/05/2010, à 18:22
- Michel Leunen
Re : [Résolu] Lucid : Comment restaurer Grub-PC avec le LiveCD ?
Mwouais, j'ai opublié le dossier /proc.
Ca devient:
$ sudo mount /dev/sdb1 /mnt
$ sudo mount --bind /dev /mnt/dev/
$ sudo mount -t proc none /mnt/proc
$ sudo chroot /mnt
# update-grub
# exit
$ sudo umount /mnt/dev
$sudo umount /mnt/proc
$ sudo umount /mnt
Dernière modification par Michel Leunen (Le 24/05/2010, à 18:23)
Michel Leunen
http://linux.leunen.com
Hors ligne
#12 Le 25/05/2010, à 13:07
- Poun64
Re : [Résolu] Lucid : Comment restaurer Grub-PC avec le LiveCD ?
Super Michel Leunen !
Ça fonctionne nickel maintenant.
Merci tout plein à vous tous !
Pour résumer, voilà le tuto qui marche chez moi :
Comment réinstaller / restaurer Grub-PC avec un LiveCD ?
Attention : la procédure suivante n'est valable que si le GRUB a été installé dans le MBR,
c'est à dire quand Ubuntu a été installé par défaut avec le LiveCD (sans aller dans l'option [Avancé]
à la dernière étape du partitionnement).
1) Amorcer le PC avec le LiveCD Lucid et choisir d'essayer Ubuntu sans l'installer
2) Faire Système => Administration => Utilitaire de disque
3) Dans la zone de gauche, cliquer sur le disque supportant le grub à restaurer
4) Dans la zone de droite, cliquer sur la partition système Linux => [Monter le volume]
5) Noter l'identifiant du disque "Champ Périphérique" (/dev/sda par exemple).
6) Noter l'identifiant du volume (sda1 s'il s'agit de la 1ère partition) "Champ Point de montage"
Exemple : /media/ca7b1756-48a2-459b-818e-222e3caf49d1
Nota : on trouvera également cet identifiant dans le dossier système /media de la session live.
7) Dans un terminal, lancer la commande :
~$ sudo grub-install --root-directory=/media/ca7b1756-48a2-459b-818e-222e3caf49d1 /dev/sda
Réponse : Installation finished. No error reported.
8) Si besoin, remettre à jour le fichier grub.cfg dans le volume sda1 :
$ sudo mount /dev/sda1 /mnt
$ sudo mount --bind /dev /mnt/dev/
$ sudo mount -t proc none /mnt/proc
$ sudo chroot /mnt
# update-grub
Réponse :
Generating grub.cfg
Found linux image: /boot/vmlinuz-2.6.32-22-generic
Found initrd image: /boot/initrd.img-2.6.32-22-generic
Found linux image: /boot/vmlinuz-2.6.32-21-generic
Found initrd image: /boot/initrd.img-2.6.32-21-generic
Found memtest86+ image: /boot/memtest86+.bin
Cannot find list of partitions!
done
# exit
$ sudo umount /mnt/dev
$ sudo umount /mnt/proc
$ sudo umount /mnt
9) Redémarrer le PC en enlevant le LiveCD.
Dernière modification par Poun64 (Le 25/05/2010, à 13:24)
1) Xubuntu 22.04._LTS + Windows 10 - Gigabyte GA H77M - Intel Core I7 3770K / HD Graphics 4000 - 4 cœurs - 3,5 Ghz - 16 Go de RAM
2) Xubuntu 22.04._LTS + Windows 10 - Gigabyte H610M S2H - Intel I3-12100 / UHD Graphics 730 intégré - 4 cœurs - 3,3 Ghz - 16 Go de RAM
3) Xubuntu 22.04._LTS - NetBook ACER TravelMate - Intel Celeron N4020 - 2 cœurs - 1,1 Ghz - 4 Go de RAM - Intel UHD Graphics 605
Hors ligne
#13 Le 26/05/2010, à 14:44
- Michel Leunen
Re : [Résolu] Lucid : Comment restaurer Grub-PC avec le LiveCD ?
Formidable! Content que ton problème soit résolu.
Michel Leunen
http://linux.leunen.com
Hors ligne
#14 Le 26/05/2010, à 17:42
- Poun64
Re : [Résolu] Lucid : Comment restaurer Grub-PC avec le LiveCD ?
Et moi donc !
Encore merci et à bientôt !
J'ai encore un p'tit pb à résoudre... Je teste plein de trucs mais j'ouvrirai un post dédié si je m'en sors pas. De temps en temps (1 fois sur 20), mon démarrage plante après le splash - système bloqué. Je redémarre soit avec [Ctrl] + [Alt] + [Sup] à la windows, ou avec le bouton "Reset" sans problème. Je ne détecte rien dans les fichiers logs.
:D:D
1) Xubuntu 22.04._LTS + Windows 10 - Gigabyte GA H77M - Intel Core I7 3770K / HD Graphics 4000 - 4 cœurs - 3,5 Ghz - 16 Go de RAM
2) Xubuntu 22.04._LTS + Windows 10 - Gigabyte H610M S2H - Intel I3-12100 / UHD Graphics 730 intégré - 4 cœurs - 3,3 Ghz - 16 Go de RAM
3) Xubuntu 22.04._LTS - NetBook ACER TravelMate - Intel Celeron N4020 - 2 cœurs - 1,1 Ghz - 4 Go de RAM - Intel UHD Graphics 605
Hors ligne
#15 Le 26/05/2010, à 17:42
- Poun64
Re : [Résolu] Lucid : Comment restaurer Grub-PC avec le LiveCD ?
Et moi donc !
Encore merci et à bientôt !
J'ai encore un p'tit pb à résoudre... Je teste plein de trucs mais j'ouvrirai un post dédié si je m'en sors pas. De temps en temps (1 fois sur 20), mon démarrage plante après le splash - système bloqué. Je redémarre soit avec [Ctrl] + [Alt] + [Sup] à la windows, ou avec le bouton "Reset" sans problème. Je ne détecte rien dans les fichiers logs.
:D:D
1) Xubuntu 22.04._LTS + Windows 10 - Gigabyte GA H77M - Intel Core I7 3770K / HD Graphics 4000 - 4 cœurs - 3,5 Ghz - 16 Go de RAM
2) Xubuntu 22.04._LTS + Windows 10 - Gigabyte H610M S2H - Intel I3-12100 / UHD Graphics 730 intégré - 4 cœurs - 3,3 Ghz - 16 Go de RAM
3) Xubuntu 22.04._LTS - NetBook ACER TravelMate - Intel Celeron N4020 - 2 cœurs - 1,1 Ghz - 4 Go de RAM - Intel UHD Graphics 605
Hors ligne