Skip to Content
Linux Administration Cookbook
book

Linux Administration Cookbook

by Adam K. Dean
December 2018
Beginner
826 pages
22h 54m
English
Packt Publishing
Content preview from Linux Administration Cookbook

fstab

Our fstab currently looks like this:

$ cat /etc/fstab ## /etc/fstab# Created by anaconda on Sat May 12 18:50:26 2018## Accessible filesystems, by reference, are maintained under '/dev/disk'# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info#/dev/mapper/VolGroup00-LogVol00 /                       xfs     defaults        0 0UUID=570897ca-e759-4c81-90cf-389da6eee4cc /boot                   xfs     defaults        0 0/dev/mapper/VolGroup00-LogVol01 swap                    swap    defaults        0 0

We're going to add another line to the bottom, prompting our /dev/sdb1 partition to mount as /home. First, we're going to get the partition's UUID, because we do not want our sdb device to suddenly come up as sdc and break our boot:

$ ls -l /dev/disk/by-uuid/ | grep sdblrwxrwxrwx. 1 root root 10 Sep 15 06:45 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Linux Security Cookbook - Second Edition

Practical Linux Security Cookbook - Second Edition

Tajinder Kalsi
Mastering Linux Administration

Mastering Linux Administration

Alexandru Calcatinge, Julian Balog

Publisher Resources

ISBN: 9781789342529Supplemental Content