端末が点滅すると、SDカードが読み取れなくなります。

端末が点滅すると、SDカードが読み取れなくなります。

現在SDカードをフラッシュしようとしていますが、SDカードを読み取れないというエラーが発生し続けます。 etcherとddを試してみましたが、これを続けますか?

Flashを試しています。https://www.home-assistant.io/hassio/installation/ RPIで使用できるようにSDカードに追加しましたが、通常の更新後にSDカードを開くことができないのはなぜですか?

再フォーマットしてからファイルを追加できますが、更新時にのみ破損しますか?

SDカードはうまく機能し、LinuxシステムまたはWindowsシステムで問題なく開くことができるので、このMacBook(私が好む製品)にのみ問題があるようです。

なぜ?フォーマットに問題がありますか?

フラッシュ:

sudo dd if=hassos_rpi3-1.13.img of=/dev/disk8 bs=2m
Password:
dd: /dev/disk8: Resource busy
MacBook-Pro:Downloads$ dd
dd            ddns-confgen  
MacBook-Pro:Downloads$ dd
dd            ddns-confgen  
MacBook-Pro:Downloads$ diskutil unmountdisk /dev/disk8 
Unmount of all volumes on disk8 was successful
MacBook-Pro:Downloads$ sudo dd if=hassos_rpi3-1.13.img of=/dev/disk8 bs=2m
1024+0 records in
1024+0 records out
2147483648 bytes transferred in 487.625960 secs (4403957 bytes/sec)

ここに画像の説明を入力してください。

コンピュータが接続されているディスクを読み取れません。

ベストアンサー1

この回答で提供されているツールは、MacツールではなくGNU / Linuxツールです。

あなたの質問にリストされている画像ファイルには、次のhassos_rpi3-1.13.imgパーティションが含まれています。

# gdisk -l hassos_rpi3-1.13.img
GPT fdisk (gdisk) version 1.0.3

Partition table scan:
  MBR: hybrid
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with hybrid MBR; using GPT.
Disk hassos_rpi3-1.13.img: 4194304 sectors, 2.0 GiB
Sector size (logical): 512 bytes
Disk identifier (GUID): 6A9E3D38-090C-48BA-A14D-7682BA479872
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 4194270
Partitions will be aligned on 2048-sector boundaries
Total free space is 671677 sectors (328.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048           67583   32.0 MiB    0C01  hassos-boot
   2           67584          116735   24.0 MiB    8300  hassos-kernel0
   3          116736          641023   256.0 MiB   8300  hassos-system0
   4          641024          690175   24.0 MiB    8300  hassos-kernel1
   5          690176         1214463   256.0 MiB   8300  hassos-system1
   6         1214464         1230847   8.0 MiB     8300  hassos-bootstate
   7         1230848         1427455   96.0 MiB    8300  hassos-overlay
   8         1427456         3524607   1024.0 MiB  8300  hassos-data

最初のパーティションはタイプとして一覧表示されます0C01Microsoft予約パーティション。残りのパーティションタイプは8300標準のLinuxパーティションコードです。

gdiskマニュアルページによると、このタイプのパーティションは通常、Windowsの起動に必要なコードを保存するために使用されます。

If Windows is to boot from a GPT disk, a partition of type Microsoft Reserved (gdisk internal code 0x0C01) is recommended. This par‐
tition should be about 128 MiB in size. It ordinarily follows the EFI System Partition and immediately  precedes  the  Windows  data
partitions.  (Note  that old versions of GNU Parted create all FAT partitions as this type, which actually makes the partition unus‐
able for normal file storage in both Windows and Mac OS X.)

これMicrosoft予約パーティションパーティションには VFAT ファイルシステムとブートファイルが含まれています。

ls -l
total 3304
-rwxr-xr-x 1 root root   25311 Nov 21 08:14 bcm2710-rpi-3-b.dtb
-rwxr-xr-x 1 root root   25574 Nov 21 08:14 bcm2710-rpi-3-b-plus.dtb
-rwxr-xr-x 1 root root   24087 Nov 21 08:14 bcm2710-rpi-cm3.dtb
-rwxr-xr-x 1 root root   52116 Nov 21 08:14 bootcode.bin
-rwxr-xr-x 1 root root    1847 Nov 21 08:14 boot.scr
-rwxr-xr-x 1 root root      34 Nov 21 08:14 cmdline.txt
-rwxr-xr-x 1 root root      52 Nov 21 08:14 config.txt
-rwxr-xr-x 1 root root    6666 Nov 21 08:14 fixup.dat
drwxr-xr-x 2 root root   14336 Nov 21 08:14 overlays
-rwxr-xr-x 1 root root 2857060 Nov 21 08:14 start.elf
-rwxr-xr-x 1 root root  364060 Nov 21 08:14 u-boot.bin

これは、Raspberry PiのBroadcomシステムオンチップ(ARM)プロセッサを起動する際の標準構成です。

したがって、Microsoft WindowsコンピュータはSDカードの最初のパーティションを読み書きできる必要があります。これは、LinuxまたはUnixオペレーティングシステムがインストールされている通常のコンピュータを持っていない多くのユーザーにとって便利です。さまざまなシステムレベルの構成パラメータを使用できます。cmdline.txtそして構成.txtsshそして、ディレクトリに空のファイルを配置すると、RPiのSSHサーバーがアクティブになります。

残りのパーティションにはextファイルシステムが含まれます。 Macコンピュータのサポートはext可変であり、MacまたはMicrosoftオペレーティングシステムにはデフォルトオプションとして含まれていません。ただし、設置は可能ですOSXヒューズextこれにより、Macのファイルシステムのサポートが追加されます。

おすすめ記事