mount -a <===> namontuje vsechny hdd do systemu z fstab (sikovne pokud nenejede system a musim vse ruco delat z root uctu) // mounts all filesystems in /etc/fstab. If the drive is not yet in fstab, then it will do nothing with regard to that drive.
## Q:Do I need to restart my server after editing fstab and mtab
## A:No, there is no need to reboot after editing /etc/fstab. You can testdrive with mount -a
## Note that it is a bad practice to use mount -a for fstab checking. The recommended solution is findmnt --verify
## Mount the new disk using the mount command. First, you’ll need to create a mount point. We’ll use /disk2. This is where we’ll mount /dev/sdb1. Enter the following commands:
# cd /
# mkdir disk2
# mount /dev/sdb1 /disk2
# df -hT
## mount -t FILESYSTEMTYPE
# auto - this is a special one. It will try to guess the fs type when you use this.
# ext4 - this is probably the most common Linux fs type of the last few years
# ext3 - this is the most common Linux fs type from a couple years back
# ntfs - this is the most common Windows fs type or larger external hard drives
# vfat - this is the most common fs type used for smaller external hard drives
# exfat - is also a file system option commonly found on USB flash drives and other external drives
## Mount options in fstab
# rw (read-write)
# suid (respect setuid and setgid bits)
# dev (interpret characters and block devices on the filesystem)
# exec (allow executing binaries and scripts)
# auto (mount the filesystem when the -a option of the mount command is used)
# nouser(make the filesystem not mountable by a standard user)
# async (perform I/O operations on the filesystem asynchronously)
WINDOWS SHARES SUPPORT
mount -t cifs <===> command to mount a windows share so it appears like a local filesystem