44
34

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Ubuntuで外付けHDDをマウントする

Last updated at Posted at 2017-07-12

Ubuntuにお立ち台でHDDをマウントするときのメモ.

デバイスの認識を確認

sudo fdisk -lコマンドで現在接続されているディスクの状況を確認.

$ sudo fdisk -l

Disk /dev/sda: 5.5 TiB, 6001175126016 bytes, 11721045168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: C7F58AB2-1B53-452F-9F33-EA2CD6958FB4

Device           Start         End     Sectors  Size Type
/dev/sda1         2048     1050623     1048576  512M EFI System
/dev/sda2      1050624 11687622655 11686572032  5.5T Linux filesystem
/dev/sda3  11687622656 11721043967    33421312   16G Linux swap


Disk /dev/sdb: 931.5 GiB, 1000203804160 bytes, 1953523055 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 4096 bytes / 33553920 bytes
Disklabel type: dos
Disk identifier: 0xe7b91096

Device     Boot Start        End    Sectors   Size Id Type
/dev/sdb1           2 1953523054 1953523053 931.5G  b W95 FAT32

Partition 1 does not start on physical sector boundary.

自分の環境の場合は,/sdaが元から接続されているHDDなので,外付けHDDは/sdbにありました.

マウント

/hdd_mount をマウントポイントにして,マウントを行います.

$ sudo mount /dev/sdb /hdd_mount

これで,外付けHDDがマウントできたはず!

注意

HDDのパーティションを分けている場合は,/dev/sdb1のように,パーティションの番号まで指定してください!!

参考

Ubuntuで外付けハードディスクを認識するには - のんびりしているエンジニアの日記
http://nonbiri-tereka.hatenablog.com/entry/2014/11/21/090050

44
34
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
44
34

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?