====== 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/30 17:08] r.doiteau |
cours:activite1:depannage_linux [2019/05/11 14:35] (Version actuelle) |
||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ===== Mot de passe perdu ===== | ===== Mot de passe perdu ===== | ||
| + | |||
| + | {{:cours:activite1:fiche_intevention.pdf|}} | ||
| ==== En local ==== | ==== En local ==== | ||
| Ligne 18: | 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 23: | Ligne 26: | ||
| {{ :cours:activite1:mdp_linux5.png |}} | {{ :cours:activite1:mdp_linux5.png |}} | ||
| -Entrer "exit" puis "reboot". | -Entrer "exit" puis "reboot". | ||
| + | |||
| + | ===== 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 | ||
| + | |||