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 ...

Get Raspberry Pi Networking Cookbook - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.