LoginSignup
1
0

More than 1 year has passed since last update.

壊れたUSBをntfsfixコマンドを使って治す on Ubuntu

Posted at

注意:多分このやり方よりも安全でわかりやすいやり方があります。

USBが壊れた原因

USBにisoファイルを保存させてアンマウントしたところでエラーが発生し、それ以降USBを指し直してもエラーが出るようになった。

そのエラー内容がこれ 

error mounting /dev/sdc1 at /media/user/other: Unknow error when mounting/dev/sdc1

治す

まずはエラーが出ているUSBを特定する。
幸いにも今回はUSB自体は認識されているので簡単だ。

まずはターミナルを開き、以下のコマンドを実行する。

$ cd /dev/disk/by-id
$ ls

これらを実行すればPCが認識しているディスクがズラーッと表示される。
その中で、エラーが出ているUSBを探す。
自分の場合はこれだった。

usb-SanDisk_Cruzer_Fit_4C53000102122011

無事特定できればそれをコピーしておく。

ここでタイトル回収「ntfsfix」を使う。

sudo ntfsfix コピーしておいたUSBの名前

これで実行すればおそらく治るだろう。

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