
もう、もうどうにもなりません。fdisk でこうなります。何をしても、試しても、すべてこうなります。カードには音楽も入っていて、まだ再生できます。ただ、消去して再び使えるようにしたいだけです。更新: 2 つの回答を試しましたが、fdisk の出力は同じで、まだ音楽を聴くことができます。
Command (m for help): p
Disk /dev/sdb: 59.5 GiB, 63864569856 bytes, 124735488 sectors
Geometry: 64 heads, 32 sectors/track, 60906 cylinders
Units: cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x6b736964
Device Boot Start End Cylinders Size Id Type
/dev/sdb1 ? 831055 1626717 795663 777G 83 Linux
/dev/sdb2 ? 649505 912677 263173 257G 65 Novell Netware 386
/dev/sdb3 ? 263179 945973 682795 666.8G 53 OnTrack DM6 Aux3
/dev/sdb4 ? 1908750 1908782 32 31.9M bb Boot Wizard hidden
Partition table entries are not in disk order.
Command (m for help): v
Partition 1: overlaps partition 2.
Partition 1: overlaps partition 3.
Total allocated sectors 4866404289 greater than the maximum 124735488.
-
hartofwave@hartofwave-Flaming-Blade-GTI:~$ sudo sgdisk -Z /dev/sdb
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory.
***************************************************************
Exact type match not found for type code 7400; assigning type code for
'Linux filesystem'
Exact type match not found for type code 6500; assigning type code for
'Linux filesystem'
Exact type match not found for type code 5300; assigning type code for
'Linux filesystem'
Exact type match not found for type code BB00; assigning type code for
'Linux filesystem'
Warning! Secondary partition table overlaps the last partition by
3784448450 blocks!
You will need to delete this partition or resize it in another utility.
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot.
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
答え1
この SD カードは単一のファイルシステムとして直接フォーマットされており、実際にはパーティション テーブルはありません。表示されているのは、fdisk
マスター ブート レコードが存在するはずの通常のファイルシステム データであり、これによって混乱しています。そのため、表示されているパーティション情報は意味不明ですが、カードは引き続き動作します。
カードを消去するには、次のコマンドを入力します。
dd if=/dev/zero of=/dev/sdb bs=8192
これにより、デバイス上のすべてのブロックがゼロになります。
注記:はbs=8192
任意の数値です。 dd
のデフォルトのブロック サイズは 512 バイトで、これは低速です。 BS=8192
はデバイスを 4K のチャンクで消去するので、はるかに高速になります。
注2:SD カードは、SSD と同様にフラッシュ ベースのメディアです。フラッシュ メモリ セルは、書き込みを繰り返すほど「消耗」します。そのため、書き込みを何度も繰り返すとカードの性能が低下します。
答え2
ディスクを消去したい場合は、以下を として、またはroot
を前に付けて試してくださいsudo
:
sgdisk -Z /dev/sdb
その後、ディスクを再パーティション化できるはずです。できない場合は、ディスクをチェックして、一部の (すべての?) SD カードにあるように、読み取り専用タブがあるかどうかを確認してください。そのようなタブがある場合は、別の位置にスライドさせて、もう一度試してください。
それでもダメなら、ディスクが壊れているのではないかと思います。そのディスクをゴミ箱に捨てて、新しいディスクを入手したほうがよいでしょう。