Ligne 24 : |
Ligne 24 : |
| | | |
| == Safe Boot == | | == Safe Boot == |
− | Nous pouvons traduire "''safe boot''" par démarrage en mode sans échec. | + | Nous pouvons traduire "''safe boot''" par "''mode sans échec''". |
| | | |
| If something goes wrong with your WiPy, don’t panic! It is almost impossible for you to break the WiPy by programming the wrong thing. | | If something goes wrong with your WiPy, don’t panic! It is almost impossible for you to break the WiPy by programming the wrong thing. |
Ligne 30 : |
Ligne 30 : |
| The first thing to try is to boot in safe mode: this temporarily skips execution of {{fname|boot.py}} and {{fname|main.py}} and gives default WLAN settings. | | The first thing to try is to boot in safe mode: this temporarily skips execution of {{fname|boot.py}} and {{fname|main.py}} and gives default WLAN settings. |
| | | |
− | If you have problems with the filesystem you can [[Hack-wipy-repl#R.C3.A9initialiser_la_carte_.28Factory_Reset.29|format the internal flash drive]]. | + | If you have problems with the filesystem you can [[format the internal flash drive]]. |
| | | |
| To boot in safe mode, follow the detailed instructions described [[Hack-wipy-generalite#Boot_Modes_et_Safe_boot|here]]. | | To boot in safe mode, follow the detailed instructions described [[Hack-wipy-generalite#Boot_Modes_et_Safe_boot|here]]. |
Ligne 37 : |
Ligne 37 : |
| | | |
| Entering safe mode is temporary, and does not make any changes to the files on the WiPy. | | Entering safe mode is temporary, and does not make any changes to the files on the WiPy. |
| + | |
| + | == Réinitialiser le système de fichier == |
| + | If you WiPy’s filesystem gets corrupted (very unlikely, but possible), you can format it very easily by doing: |
| + | |
| + | <syntaxhighlight lang="python"> |
| + | >>> import os |
| + | >>> os.mkfs('/flash') |
| + | </syntaxhighlight> |
| + | |
| + | Resetting the filesystem deletes all files on the internal WiPy storage (not the SD card), and restores the files {{fname|boot.py}} and {{fname|main.py}} back to their original state after the next reset. |
| | | |
| {{WIPY-TRAILER}} | | {{WIPY-TRAILER}} |