3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Raspberry PIのSDメモリをWindowsで編集

Last updated at Posted at 2021-05-15

概要

Raspberry PIのSDメモリ内容をWindowsで開いてファイルを編集及びコピーができるように設定します。

事前インストール

次のサイトから「Linux File Systems for Windows」をダウンロードしてインストールします。
・サイト
https://www.paragon-drivers.com/en/lfswin/#overview

image.png

・インストール画面
image.png
image.png
image.png
image.png
image.png
image.png
★10日以後は速度が遅くなるけど、編集及びコピーは可能らしいです。★
image.png
image.png

プログラムを起動

Windowsのスタートメニューに以下のアプリ「Linux File Systems for Windows by Paragon Software」を起動します。
※事前にRaspberry PIのSDメモリをパソコンに差し込みます。

・アプリ
image.png

・起動画面
H:ドライブに読み書きモードにマウントされました。
image.png
image.png

ファイル編集し、注意事項

Windowsでファイルを編集する場合、サクラエディタの場合は文字コードがSJISに保存されるので、注意が必要です。
次の画面から確認してみましょう。
・サクラエディタからの文字コード
※SJIS
image.png
・NotePad++からの文字コード
※Unix(LF) UTF-8
①編集画面
image.png
②「df -h」行を追加して保存します。
image.png

ファイル編集及びコピーが終わった場合、必ずUmountします。

次の画面でメニューにあるUnmountをクリックします。
★★★Unmountしないまま閉じた場合、Mountした時点に戻ります。つまり保存されないことです。★★★
①Unmountする前の画面です。
image.png
②Umountされた後の画面です。
image.png

SDメモリをRaspberry PIに差し込んでブートします。

Raspberry PIが正常にブートされたら、SSHで接続します。
※Raspberry PIのパスワード変更していない場合、次のメッセージが表示されます。

SSH is enabled and the default password for the 'pi' user has not been changed.
This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.

image.png

終わりに

Raspbery Piがブートされない場合、既存のファイルをバックアップするときと大量のファイルをコピーする場合役に立つと思います。

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?