Skip to main content

Mount

# mount [-t <type>] { <source> | <device> } <directory>

mount /dev/sda1 /srv/

Re-mount mount point in fstab

# ro: read-only
# rw: read-write

# mount -o remount[,ro][,rw] <directory>

mount -o remount,ro /srv/

Lists all mounted filesystems

# -l: lable

# mount [-l] [-t type]

mount

The most common type are ext2 | ext3 | ext4 | xfs | btrfs | vfat | sysfs | proc | nfs | cifs

Mount CIFS / SMB / Windows Shared Folder

OptionDescription
username=<username>Username
password=<password>Password
domain=<domain>Domain
vers=1.0SMBv1 (Default)
vers=2.0SMBv2.002 for Windows Vista SP1 and 2008
vers=2.1SMBv2.1 for Windows 7 and 2008R2
vers=3.0SMBv3.0 for Windows 8 and 2012
nopermClient bypass permission checks
# mount.cifs = mount -t cifs

# mount.cifs -o <option>[,...] //<host>/<share name> <directory>

mount -t cifs -o username=User,password=Password,vers=3.0,noperm //10.0.0.1/Share/ /mnt/Share/