5
5

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 5 years have passed since last update.

LinuxでUSBスティックの不良セクタをチェックしつつフォーマットする

Last updated at Posted at 2014-06-27

USBスティックは頻繁に読み書きするとよく壊れるので、不良セクタのチェックを入れてフォーマットすると良い。

/dev/sdxは適切なデバイスに置き換えてね
sudo mkfs.vfat -I -c -v /dev/sdx

man mkfs.vfatより

-c  Check the device for bad blocks before creating the filesystem.

ということで、不良セクタをチェックしてくれる。直す、とは書いていないので、チェックして表示するだけかもしれない。
これを外せば普通にフォーマットする。

-Iはデバイスにパーティションテーブル作らないオプション、-vは処理状況を表示するオプション。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?