Book Image

Banana Pi Cookbook

By : Ryad El-Dajani
Book Image

Banana Pi Cookbook

By: Ryad El-Dajani

Overview of this book

Table of Contents (13 chapters)

Mounting a USB drive


USB flash drives are widely used to store various files and directories. They are great to exchange data from or to different computers. They are found literally everywhere. In this recipe, we are going to mount an external USB flash drive. This way, you will have access to the contents of the flash drives.

Getting ready

This recipe requires the following ingredients:

  • A booted up Linux on the Banana Pi

  • A USB flash drive

  • Access to the Banana Pi's shell

How to do it…

Perform the following to successfully mount a USB flash drive (also called USB disk):

  1. Boot up your Linux distribution on the Banana Pi.

  2. Attach the USB flash drive to one of the available USB ports, as shown in the following image:

    Tip

    On some distributions (such as Raspbian), the USB drive may be mounted automatically by a program called udisks.

  3. Determine the USB device by entering the following command into a shell:

    $ sudo fdisk –l
    
  4. You will see a list of attached disks. The following screenshot shows the output of the...