LoginSignup
5

More than 5 years have passed since last update.

mountしようとすると、can't read superblockと表示される。

Posted at

ある朝突然chinachuで録画ができなくなった。
raspiを再起動し他ところ、外付けHDDがマウント出来なくなった時の備忘録。

事象 can't read superblockと表示される。

外付けHDDをマウントしようとしたら、can't read superblockと表示されてしまった。

$ sudo mount -a
mount: /dev/sda2: can't read superblock

外付けHDDは認識されているのか?確認

$ sudo fdisk -l | grep /dev/sda
Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
/dev/sda1    2048     264191     262144  128M Linux filesystem
/dev/sda2  264192 3907029134 3906764943  1.8T Linux filesystem

認識はされていた。
続いて、fstabのUUIDは合っているか?

$ sudo blkid /dev/sda2
/dev/sda2: UUID="xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx" TYPE="ext4" PARTUUID="

$ cat /etc/fstab
proc            /proc           proc    defaults          0       0
UUID=xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx /mnt/hdd1 ext4 nofail 0 0

合っていた。
ググると、修復することで、治るかもしれない。
raspberry pi 外付けHDD 復旧 can't read superblock ext4 file system

$sudo mkfs ext4 -n /dev/sda

y一回押す。

$sudo fsck /dev/sda2 -p

自動で修復が始まり、終わるまで待つ。
終わったら、マウント実行して、dfでマウント状況確認。

$sudo mount -a
$df
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/root       15345552 6129352   8560392  42% /
devtmpfs          470180       0    470180   0% /dev
tmpfs             474788       0    474788   0% /dev/shm
tmpfs             474788   12296    462492   3% /run
tmpfs               5120       4      5116   1% /run/lock
tmpfs             474788       0    474788   0% /sys/fs/cgroup
/dev/mmcblk0p1     42136   21334     20803  51% /boot
tmpfs              94956       0     94956   0% /run/user/1000

マウントされてない。。。
一回リブート。

$sudo reboot

出てきた。

$ df
Filesystem      1K-blocks      Used  Available Use% Mounted on
/dev/root        15345552   6129508    8560236  42% /
devtmpfs           470180         0     470180   0% /dev
tmpfs              474788         0     474788   0% /dev/shm
tmpfs              474788     12284     462504   3% /run
tmpfs                5120         4       5116   1% /run/lock
tmpfs              474788         0     474788   0% /sys/fs/cgroup
/dev/mmcblk0p1      42136     21334      20803  51% /boot
/dev/sda2      1921673484 779175288 1044812692  43% /mnt/hdd1
tmpfs               94956         0      94956   0% /run/user/1000

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