Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Banana Pi Cookbook
  • Table Of Contents Toc
  • Feedback & Rating feedback
Banana Pi Cookbook

Banana Pi Cookbook

By : RYAD E DAJANI, Ryad El-Dajani
4.5 (2)
close
close
Banana Pi Cookbook

Banana Pi Cookbook

4.5 (2)
By: RYAD E DAJANI, Ryad El-Dajani

Overview of this book

This book is intended for anybody who wants to learn how they can utilize the capabilities of the Banana Pi to its full potential. It's full of step-by-step guides and detailed descriptions for the whole range of possibilities in a language that is appropriate for computer enthusiasts and experts alike. It would be helpful to have a basic knowledge of Unix-like operating systems or programming, but no prior experience is required as every concept is explained in the appropriate sections.
Table of Contents (8 chapters)
close
close

Mounting via fstab

In this recipe, we are going to automount our drives using the fstab (located at /etc/fstab) system file.

Getting ready

The following components are required to mount drives conveniently using the fstab file:

  • A working Linux system on the Banana Pi
  • A USB flash drive and/or a SATA drive
  • In case of a SATA drive, a working connection to your Banana Pi and a suitable power supply
  • Access to the Banana Pi's shell

How to do it…

Perform the following to configure a drive in your fstab:

  1. Connect your devices accordingly.
  2. Power your Banana Pi and initiate the boot sequence.
  3. Open a shell.
  4. Determine the used filesystems by blkid on attached partitions:
    $ sudo blkid
    
  5. You will get information about all the available partitions. In the following screenshot, you see that the drive /dev/sda has three partitions (sda1 using ext4, sda2 using FAT32, and sda3 using NTFS):
    How to do it…
  6. Create the necessary target directories to mount these partitions:
    $ sudo mkdir /mnt/ext4_partition
    $ sudo mkdir /mnt/fat_partition...
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Banana Pi Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon