LoginSignup
0
2

More than 5 years have passed since last update.

RaspberryPiでFAT32の外付けハードディスクをマウント

Last updated at Posted at 2017-01-15

FAT32フォーマットのUSB外付けハードディスクをマウントした時のメモ
・利用したOSはRASPBIAN JESSIE WITH PIXEL
・USB外付けハードディスク、容量は500G
・フォーマットはFAT32

1.外付けハードディスクをUSBに接続してRaspberryPiをブート

2.認識の状態を確認する

$ df
ファイルシス 1K-ブロック 使用 使用可 使用% マウント位置
/dev/root 61819132 4276364 54973020 8% /
devtmpfs 469532 0 469532 0% /dev
tmpfs 473864 0 473864 0% /dev/shm
tmpfs 473864 6508 467356 2% /run
tmpfs 5120 4 5116 1% /run/lock
tmpfs 473864 0 473864 0% /sys/fs/cgroup
/dev/mmcblk0p1 63503 20604 42900 33% /boot
tmpfs 94776 4 94772 1% /run/user/1000
/dev/sda1 488263744 160 488263584 1% /media/pi/587A-E65E

/dev/sda1として認識されているらしい

3.マウント先のディレクトリを作成
$ sudo mkdir /mnt/usbhdd
4.外付けハードディスクをマウント
$ sudo mount -t vfat /dev/sda1 /mnt/usbhdd --option codepage=932,iocharset=utf8

5.マウント状態を確認

$ df -h
ファイルシス サイズ 使用 残り 使用% マウント位置
/dev/root 59G 4.1G 53G 8% /
devtmpfs 459M 0 459M 0% /dev
tmpfs 463M 0 463M 0% /dev/shm
tmpfs 463M 6.4M 457M 2% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 463M 0 463M 0% /sys/fs/cgroup
/dev/mmcblk0p1 63M 21M 42M 33% /boot
tmpfs 93M 4.0K 93M 1% /run/user/1000
/dev/sda1 466G 192K 466G 1% /mnt/usbhdd
$ ls -lh /mnt/usbhdd
合計 96K
drwx------ 2 pi pi 32K 1月 15 2017 $RECYCLE.BIN
drwx------ 2 pi pi 32K 1月 15 2017 System Volume Information
-rw-r--r-- 1 pi pi 0 1月 15 2017 新しいテキスト ドキュメント.txt
drwx------ 2 pi pi 32K 1月 15 2017 新しいフォルダー

Windowsで作成した日本語のファイル名とフォルダー名も問題なく表示できている。

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