====== Différences ======
Cette page vous affiche les différences entre la révision choisie et la version actuelle de la page.
cours:activite1:depannage_linux [2013/10/31 11:25] r.doiteau [Mot de passe perdu] |
cours:activite1:depannage_linux [2019/05/11 14:35] (Version actuelle) |
||
---|---|---|---|
Ligne 20: | Ligne 20: | ||
**Solution 2** | **Solution 2** | ||
+ | -entrer “cp /bin/zsh /mnt/linux/bin/zsh” | ||
-Entrer "chroot /mnt/linux". | -Entrer "chroot /mnt/linux". | ||
{{ :cours:activite1:mdp_linux4.png |}} | {{ :cours:activite1:mdp_linux4.png |}} | ||
Ligne 26: | Ligne 27: | ||
-Entrer "exit" puis "reboot". | -Entrer "exit" puis "reboot". | ||
- | ==== A distance ==== | + | ===== Réparation GRUB ===== |
+ | |||
+ | |||
+ | -Démarrer SysrescueCD ===== | ||
+ | |||
+ | * sélectionner la ligne 6 | ||
+ | * puis langue : fr | ||
+ | * faire un testdisk => create =>sélectionner disk/dev/sda => intel => analyse =>quick search => yes => selection partition => write => yes => reboot | ||
+ | * une fois SysrescueCd relancé => créer un point de montage | ||
+ | <code=linux> | ||
+ | mkdir /mnt/chroot | ||
+ | mount /dev/sda1 /mnt/chroot #sda1 est la partition linux voir "fdisk -l" | ||
+ | mount --bind /dev /mnt/chroot/dev | ||
+ | chroot /mnt/chroot /bin/bash | ||
+ | grub-install /dev/sda | ||
+ | reboot | ||
+ | </code> | ||
+ | lien (en anglais) | ||
+ | http://www.sysresccd.org/Sysresccd-Partitioning-EN-Repairing-a-damaged-Grub | ||
+ | |||
+ | répa swap | ||
+ | |||
+ | fdisk -l | ||
+ | mkswap /dev/sda2 | ||
+ | swapon /dev/sda2 | ||
+ | reboot |