Help us understand the problem. What is going on with this article?

Raspberry Pi2/3 でUSBメモリを使う

More than 1 year has passed since last update.

:construction: USBの抜き差しは慎重に行うこと(mount/unmount)

用意するもの


  1. Raspberry Pi2/3
  2. USBメモリ

Raspberry Pi2/3でUSBメモリを使う


  1. USBメモリ差してリブート

    $ sudo shutdown -r now
    
  2. Raspberry Pi2/3がUSBメモリ( /dev/sda1 )を認識しているか確認

    $ sudo fdisk -l
    
  3. Raspberry Pi2/3がUSBメモリをマウントするためのディレクトリを作成
    ディレクトリが空であることを確認

    $ sudo mkdir /mnt/usb1
    $ ls -la /mnt/usb1
    
  4. Raspberry Pi2/3にUSBメモリをマウント
    ディレクトリにUSBメモリの内容が表示されることを確認

    $ sudo mount /dev/sda1 /mnt/usb1
    $ ls -la /mnt/usb1
    
  5. 後はしたいことをする

Raspberry Pi2/3でUSBメモリを取り外す


  1. Raspberry Pi2/3にUSBメモリをアンマウント
    ディレクトリが空であることを確認

    $ sudo umount /mnt/usb1
    $ ls -la /mnt/usb1
    
  2. USBメモリを取り外す

感想


差したら(mount)、外す(umount)!
外したら(umount)、元の場所に戻す!

kenboo
.NET系 -> 色んな火消し -> web front-end -> web back-end -> IoT -> Kotlin(Server side) -> 請負業務なんでも、なんでもやります。
http://www.abi-sol.co.jp
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした