Skip to content

Commit

Permalink
update post
Browse files Browse the repository at this point in the history
  • Loading branch information
mnishiguchi committed Dec 12, 2023
1 parent b9c3cb3 commit b82ecf1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions public/20231211-nerves-factory-reset.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,21 @@ https://hexdocs.pm/phoenix/directory_structure.html

https://hexdocs.pm/nerves/advanced-configuration.html#root-filesystem-overlays

[v1.9.2](https://github.com/nerves-project/nerves/blob/main/CHANGELOG.md#v192---2023-02-05)から以下のディレクトリのオーバーレイが禁止になりましたので、注意してください。
- `/root`
- `/tmp`
- `/dev`
- `/sys`
- `/proc`

https://github.com/nerves-project/nerves/blob/main/CHANGELOG.md#v192---2023-02-05

https://github.com/nerves-project/nerves_system_br/issues/495

## `/root`(別名`/data`)内のすべてのファイルとディレクトリを再フォーマット

https://qiita.com/torifukukaiou/items/9dd5cfa81109a2e0a5eb

工場出荷状態に初期化するとは、読み書き可能な`/root`(別名`/data`)内のすべてのファイルとディレクトリを削除し、[SDカード]`mix burn`を実行した時と同じ状態にすることと考えることができます。 その考えでいけば、すべての設定とデータを`/root`に保存するということになります。

直接ファイルを削除するのではなく、下位レベルの`/data`パーティションをゼロにして再フォーマットするのが確実だと考えられます。
Expand Down

0 comments on commit b82ecf1

Please sign in to comment.