LoginSignup
1
1

More than 3 years have passed since last update.

USBメモリが総容量が数MBになってる状態の解消

Posted at

ある日USBメモリを接続すると..

認識しない!!
windowsでもエラーで認識しない。
Macのディスクユーティリティでも数MBになっている。(マウントもできない)
フォーマットしても治らない。
そんな時は以下を試しましょう。

ターミナルから試みる

まずはUSBメモリを接続して以下を試しましょう

$ diskutil list                                                                                                                          167ms  日 10/13 09:12:01 2019
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *1.0 TB     disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk1         1000.0 GB  disk0s2

##################
###############

/dev/disk3 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     Apple_partition_scheme                        *31.6 GB    disk3
   1:        Apple_partition_map                         4.1 KB     disk3s1
   2:                  Apple_HFS                         2.4 MB     disk3s2

こんな感じでファイルシステムのディスク容量が表示されると思います。
今回の場合は32GBのUSBメモリを接続したので/dev/disk3ですね。

それではフォーマットしましょう。

# disknameには適当な名前を入れてください
$ diskutil eraseDisk ExFAT diskname MBRformat disk3                                                                                            日 10/13 09:16:23 2019
Started erase on disk3
Unmounting disk
Creating the partition map
Waiting for partitions to activate
Formatting disk3s1 as ExFAT with name diskname
Volume name      : diskname
Partition offset : 2048 sectors (1048576 bytes)
Volume size      : 61700096 sectors (31590449152 bytes)
Bytes per sector : 512
Bytes per cluster: 32768
FAT offset       : 2048 sectors (1048576 bytes)
# FAT sectors    : 8192
Number of FATs   : 1
Cluster offset   : 10240 sectors (5242880 bytes)
# Clusters       : 963904
Volume Serial #  : 5da26d09
Bitmap start     : 2
Bitmap file size : 120488
Upcase start     : 6
Upcase file size : 5836
Root start       : 7
Mounting disk
Finished erase on disk3

これでうまくフォーマットできれば完了です。

1
1
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
1
1