0
0

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.

「mount: /dev/sdx: can't read superblock」エラーが出た時の対処

Last updated at Posted at 2019-09-17

はじめに

何度かディスクを消去したりパーティションを切ったりを繰り返すと不意にマウントができなくなる事が多々ある。

# mount -a
mount: /dev/sda1: can't read superblock

どうするか

ネットで同様の事象を調べると、xfs_repairコマンドで修復してやると良いと出てくるが
私の場合はうまくいかなかった

# xfs_repair /dev/sda1
Phase 1 - find and verify superblock...
xfs_repair: error - read only 0 of 4096 bytes

superblock含めディスクを初期化してやることにした。

partedコマンドでパーティションを削除

# parted /dev/sda
GNU Parted 3.1
/dev/sda を使用
GNU Parted へようこそ! コマンド一覧を見るには 'help' と入力してください。
(parted) p
モデル: FTS PRAID EP420i (scsi)
ディスク /dev/sda: 199GB
セクタサイズ (論理/物理): 512B/4096B

パーティションテーブル: gpt
ディスクフラグ:

番号  開始    終了   サイズ  ファイルシステム  名前     フラグ
 1    1049kB  199GB  199GB                     primary

(parted)
(parted) rm 1
(parted)
(parted) p
モデル: FTS PRAID EP420i (scsi)
ディスク /dev/sda: 199GB
セクタサイズ (論理/物理): 512B/4096B
パーティションテーブル: gpt
ディスクフラグ:

番号  開始  終了  サイズ  ファイルシステム  名前  フラグ


(parted) q
通知: 必要であれば /etc/fstab を更新するのを忘れないようにしてください。

ディスクを初期化

# wipefs -a /dev/sda
/dev/sda: 8 bytes were erased at offset 0x00000200 (gpt): 45 46 49 20 50 41 52 54
/dev/sda: 8 bytes were erased at offset 0x2e71fffe00 (gpt): 45 46 49 20 50 41 52 54
/dev/sda: 2 bytes were erased at offset 0x000001fe (PMBR): 55 aa
/dev/sda: calling ioclt to re-read partition table: 成功です

再度パーティションを作成し、問題なくマウントできた。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?