Book Image

Raspberry Pi Networking Cookbook - Second Edition

By : Rick Golden
Book Image

Raspberry Pi Networking Cookbook - Second Edition

By: Rick Golden

Overview of this book

<p>With increasing interest in Maker Projects and the Internet of Things (IoT), students, scientists, and hobbyists are using the Raspberry Pi as a reliable, inexpensive platform to connect local devices to Internet services.</p> <p>This book begins with recipes that are essential to installing the Raspberry Pi and configuring it for network access. Then it continues with recipes on installing common networking services such as firewalls and file sharing.</p> <p>The final chapters include recipes for network monitoring, streaming data from the Raspberry Pi to IoT services, and using clusters of Raspberry Pis to store and analyze large volumes of data.</p>
Table of Contents (14 chapters)
Raspberry Pi Networking Cookbook Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Auto-mounting USB disks at boot (/etc/fstab)


This recipe shows how to configure the Raspberry Pi so that it automatically mounts attached USB disk drives during the boot process.

The goal of this recipe is to mount the example disks at boot time with the same configuration that is used by the command pmount.

The first few steps of this recipe use the pmount and mount commands to discover the correct filesystem table configuration parameters for two example disk drives. Once the correct configuration parameters are discovered, the filesystem table configuration file (/etc/fstab) is updated so that the disks are mounted when the Raspberry Pi boots.

This recipe does not provide details on the meaning of each configuration parameter. Instead, the recipe reuses the same configuration that is used by the pmount command. More detail on the configuration parameters can be found in the man pages for the mount command.

After completing this recipe, the Raspberry Pi will mount USB disk drives at boot time...