echo '/dev/vdb /data ext4 defaults 0 2' | sudo tee -a /etc/fstab
Add a disk to /etc/fstab so it mounts automatically on every reboot
fstab entries persist mounts across reboots. The fields are: device, mount point, filesystem, options, dump, fsck priority. Test with 'sudo mount -a' to catch errors before rebooting.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.