🖥️mount

➡️This is a command-line reference manual for commands and command combinations that you don’t use often enough to remember it. This cheatsheet explains the mount command with important options and switches using examples.

▁ ▂ ▃ ▄ ꧁ 🔴☠ COMMANDLINE-KUNGFU WITH CHEATSHEETS ☠🔴꧂▅ ▃ ▂ ▁

#                ███╗   ███╗ ██████╗ ██╗   ██╗███╗   ██╗████████╗
#                ████╗ ████║██╔═══██╗██║   ██║████╗  ██║╚══██╔══╝
#                ██╔████╔██║██║   ██║██║   ██║██╔██╗ ██║   ██║   
#                ██║╚██╔╝██║██║   ██║██║   ██║██║╚██╗██║   ██║   
#                ██║ ╚═╝ ██║╚██████╔╝╚██████╔╝██║ ╚████║   ██║   
#                ╚═╝     ╚═╝ ╚═════╝  ╚═════╝ ╚═╝  ╚═══╝   ╚═╝   
                                                                
                                                                
                                                               
# To mount / partition as read-write in repair mode:
mount -o remount,rw /

# Bind mount path to a second location
mount --bind /origin/path /destination/path

# To mount Usb disk as user writable:
mount -o uid=username,gid=usergroup /dev/sdx /mnt/xxx

# To mount a remote NFS directory
mount -t nfs example.com:/remote/example/dir /local/example/dir

# To mount an ISO
mount -o loop disk1.iso /mnt/disk

#==============================#
# CMD mount
#==============================##==============================#
mount 10.11.2.23:/check_mk-backup /mnt
# nfs auf dem check_mk auf den NFS server mounten

mount | column -t
# Zeigt die aktuell eingehängten Geräte in einer übersichtlichen Darstellung. The command shows the list of all the mounted filesystem in a nice formatting with specification.

# Format input into multiple columns, like a table, useful or pretty-printing
mount | column -t
# Explanation: column is a utility for formatting text. With the -t flag it detects the number of columns in the input so it can format the text into a table-like format. For more details see man column.

mount -t iso9660 -o loop image.iso /mnt/isoimage 
# mount an ISO image file onto a directory -  Where image.iso is the image file and you want to mount it to /mnt/isoimage.

#mount nfs
#10.144.32.75:/BACK/Cisco /mnt/backup/     nfs     rw,sync,hard,intr 0 0

#mount von vm ware aus
esxcli storage nfs add -H nfsshare.linux.lxu.io -s /Statusfiles -v statusfiles

# zielhost
nfsshare.linux.lxu.io has address 10.11.15.88

# mount befehl
mount -t nfs 10.11.15.88:/Statusfiles /root/bin/statusfiles
umount /root/bin/statusfiles

#==============================##==============================#
# CMD mount
#==============================##==============================#
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

  █║▌│║█║▌★ KALI ★ PARROT ★ DEBIAN 🔴 PENTESTING ★ HACKING ★ █║▌│║█║▌

              ██╗ ██╗ ██████╗  ██████╗ ██╗  ██╗███████╗██████╗
             ████████╗██╔══██╗██╔═══██╗╚██╗██╔╝██╔════╝██╔══██╗
             ╚██╔═██╔╝██║  ██║██║   ██║ ╚███╔╝ █████╗  ██║  ██║
             ████████╗██║  ██║██║   ██║ ██╔██╗ ██╔══╝  ██║  ██║
             ╚██╔═██╔╝██████╔╝╚██████╔╝██╔╝ ██╗███████╗██████╔╝
              ╚═╝ ╚═╝ ╚═════╝  ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═════╝

               █║▌│║█║▌ WITH COMMANDLINE-KUNGFU POWER █║▌│║█║▌

░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░