LoginSignup
9
11

More than 5 years have passed since last update.

Macでコマンドからmicro SDカードの購入後チェック

Last updated at Posted at 2019-02-26

Raspberry Piにでも使おうかと、
SandiskのmicroSDXCカード海外パッケージモデル SDSQUAR-128G-GN6MAを購入したが、
microSDの並行輸入品には偽物が多いとの話なので本物か気になる。

WindowsではH2testwでチェックするのが一般的のように見えるが、
macでは、F3を利用するような記述があるため、F3を利用して確認してみる。

確認環境

  • macOS Mojave
  • f3 stable 7.1

前提

  • UHS-Iに対応したカードリーダーを利用し、macにmicroSDを差し込み、利用できるようになっていること
  • Homebrewがインストールされていること

手順

f3のインストール

$ brew install f3
$ f3write -V
F3 Write 7.1
$ f3read -V
F3 Read 7.1

マウントポイント(OS標準で差し込んだ場合、/Volumes配下)から対象のSDカードをマウントしているパスを探す

$ ls /Volumes/
対象のSDカード名

書き込みチェック

$ f3write /Volumes/対象のSDカード名/
F3 write 7.1
Copyright (C) 2010 Digirati Internet LTDA.
This is free software; see the source for copying conditions.

Free space: 119.02 GB
Creating file 1.h2w ... OK!
Creating file 2.h2w ... OK!
Creating file 3.h2w ... OK!
〜 省略 〜
Creating file 118.h2w ... OK!
Creating file 119.h2w ... OK!
Creating file 120.h2w ... OK!
Free space: 128.00 KB
Average writing speed: 56.08 MB/s

読み込みチェック

$ f3read /Volumes/対象のSDカード名/
F3 read 7.1
Copyright (C) 2010 Digirati Internet LTDA.
This is free software; see the source for copying conditions.

                  SECTORS      ok/corrupted/changed/overwritten
Validating file 1.h2w ... 2097152/        0/      0/      0
Validating file 2.h2w ... 2097152/        0/      0/      0
Validating file 3.h2w ... 2097152/        0/      0/      0
〜 省略 〜
Validating file 118.h2w ... 2097152/        0/      0/      0
Validating file 119.h2w ... 2097152/        0/      0/      0
Validating file 120.h2w ...   36864/        0/      0/      0

  Data OK: 119.02 GB (249597952 sectors)
Data LOST: 0.00 Byte (0 sectors)
           Corrupted: 0.00 Byte (0 sectors)
    Slightly changed: 0.00 Byte (0 sectors)
         Overwritten: 0.00 Byte (0 sectors)
Average reading speed: 72.16 MB/s

書き込みチェック時に作成されたファイルを削除

$ rm /Volumes/対象のSDカード名/*.h2w

結果

だいたい、書き込みチェックに30〜40分、読み込みチェックに10分〜20分程度掛かった。
読み取り72.16 MB/s、書き込み56.08 MB/sと、公称値の半分くらいに見えるし、おそらく本物っぽい。

参考

https://github.com/AltraMayor/f3
http://oss.digirati.com.br/f3/

9
11
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
9
11