LoginSignup
0
0

More than 3 years have passed since last update.

Ubuntu 20.04LTS 内蔵HDDをマウントした際のトラブル

Posted at

トラブル内容

fdiskでパーティションを作成し直しマウント試みるもエラー。

$ sudo mount /dev/sdb1 /sub
mount: /sub: wrong fs type, bad option, bad superblock on /dev/sdb1, 
missing codepage or helper program, or other error.

対処

下記ブログを参考にgdiskにてパーティションし直し。無事マウントできることを確認。

次に自動マウントを設定する。
まず以下のコマンドでUUIDを確認。

$ sudo blkid /dev/sdb1

次に/etc/fstabに自動マウントするHDDとマウントする場所を追記
以下のコマンドでfstabを立ち上げ起動時のマウント設定を追記する。

$ vi /etc/fstab

最終列に以下の情報を追記。
UUID マウントポイント ファイルシステム マウント時オプション ファイルシステムdump要否 fsckチェック要否
例:UUID=xxx-xxxx-xxxxx /mnt/hdd ext4 defaults 0 0

rebootしてdfコマンドでマウントできているかを確認し終了。
参考まで。

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