Join Scott Simpson for an in-depth discussion in this video Mount volumes on demand, part of LFCS: Storage Management (Ubuntu).
- [Instructor] Using the autofs package,…we can tell the system to mount file systems on demand,…rather than needing them to be mounted at boot time…and having them always online.…We can install the autofs package with apt install autofs.…And when it's installed,…it starts up a service called autofs.…In order to use autofs, we need to create a map file…that tells it which mount to keep an eye on.…
The master map file, located at /etc/auto.master,…holds a listing of entries that effectively correspond…to directories for mount points…and configuration files for them.…These entries give us a path that we can use…to mount various volumes as they are needed.…Let's make my other disk, sdb1,…automatically mount when we need it,…rather than keeping it mounted all the time.…To do that, I'll edit this auto.master file,…to add a line with /misc,…where I'll expect the device to be.…
I don't want to use /mnt…because I don't want autofs to take over my regular mount.…And then I'll provide a path to a file…where I'll provide more information…
Join instructor Scott Simpson, as he shows how to manage and optimize file storage on Ubuntu Linux. First, learn how to create, modify, and mount partitions and filesystems, and manage swap space. Scott then combines these basics into more sophisticated solutions using volume management, and shows how to secure Linux storage and configure disk quotas and backup policies.
- Creating and modifying partitions
- Creating, modifying, and mounting filesystems
- Mounting encrypted partitions
- Creating redundant storage with RAID
- Working with physical volumes, volume groups, and logical volumes
- Securing filesystems with ACLs
- Backing up data