• Skip to main content
  • Skip to primary sidebar
  • Home
  • WordPress
  • web Hosting
  • linux
  • mysql
  • nginx
  • apache2
  • devops

Raju Ginni

wordpress tutorials seo hosting etc

You are here: Home / Linux sysadmin tutorials linux system administrator / Linux mount Command with Examples

Linux mount Command with Examples

The mount command in Linux is used to attach file systems, storage devices, and partitions to the system’s directory tree. It allows users to access external storage like USB drives, hard disks, ISO images, and network shares.


Table of Contents

Toggle
  • Summary of mount Commands
  • 1. View Mounted File Systems
  • 2. Mount a Disk Partition
  • 3. Unmount a File System
  • 4. Mount an ISO File
  • 5. Mount a USB Drive
  • 6. Mount a Network Share (NFS)
  • 7. Mount a Windows (NTFS) Partition
  • 8. Automatically Mount on Boot (Persistent Mount)

Summary of mount Commands

Command Description
mount List mounted file systems
sudo mount /dev/sdb1 /mnt Mount partition
sudo umount /mnt Unmount partition
sudo mount -o loop file.iso /mnt Mount an ISO file
sudo mount -t nfs server:/path /mnt Mount NFS share
sudo mount -t ntfs-3g /dev/sdb1 /mnt Mount NTFS partition
sudo mount -a Apply /etc/fstab changes

1. View Mounted File Systems

To list currently mounted file systems:

mount

or

mount | column -t

🔹 Displays a well-formatted list of mounted file systems.

To check only a specific device:

mount | grep /dev/sda1

2. Mount a Disk Partition

To manually mount a partition (e.g., /dev/sdb1 to /mnt):

sudo mount /dev/sdb1 /mnt

🔹 Now, /dev/sdb1 can be accessed under /mnt.

Check the mount:

df -hT

To specify the file system type (e.g., ext4):

sudo mount -t ext4 /dev/sdb1 /mnt

3. Unmount a File System

To unmount a partition:

sudo umount /mnt

or

sudo umount /dev/sdb1

🔹 If it’s busy, use:

sudo umount -l /mnt

or

sudo fuser -k /mnt
sudo umount /mnt

4. Mount an ISO File

To mount an ISO image:

sudo mount -o loop /path/to/image.iso /mnt

🔹 Now, the ISO contents can be accessed in /mnt.

Unmount when done:

sudo umount /mnt

5. Mount a USB Drive

List USB devices:

lsblk

If the USB is /dev/sdc1, mount it:

sudo mount /dev/sdc1 /mnt

6. Mount a Network Share (NFS)

Mount an NFS share from a remote server:

sudo mount -t nfs 192.168.1.100:/shared /mnt

Unmount:

sudo umount /mnt

7. Mount a Windows (NTFS) Partition

To mount an NTFS partition:

sudo mount -t ntfs-3g /dev/sdb1 /mnt

8. Automatically Mount on Boot (Persistent Mount)

Find the UUID of the partition:

sudo blkid /dev/sdb1

Edit /etc/fstab:

sudo nano /etc/fstab

Add:

ini
UUID=your-uuid /mnt ext4 defaults 0 2

Save and apply:

sudo mount -a

 

Primary Sidebar

Linux sysadmin tutorials linux system administrator

  • top 10 apt & apt-get commands (most used) apt vs apt-get
  • If-Else Statements in Shell Scripting
  • linux commands pdf (files & Directories, zip & unzip process, search etc)
  • Find Files with Specific Text on Linux grep find command
  • linux performance tuning inode limit file descriptors tco, kernel etc
  • Variables and Data Types in Shell Scripting
  • Top 10 most used Cat commands with examples (create, view, append files)
  • Ip tables / ufw / firewall d commands for block port ip rate limiting
  • Top 10 zip / tar commands to compress & extract files in linux
  • TOP 10 mv & cp commands in linux to move & copy files in Linux
  • Top 10 GREP Commands in linux to search files directory words strings
  • lsof netstat commands to know listening ports in linux 3 ways
  • Upgrade Ubuntu from 18.04 (19.10) to 20.04 LTS command line or gui server | desktop
  • 3 Ways (SCP, rsync, Sftp) linux server migration between two remote server apache nginx
  • linux system specs commands (CPU, Memory, Disk )speed, type. manufacture
  • linux sysctl command tweaks & hardening
  • linux security limits.conf deciding user limits process limits for nginx server
  • ulimit linux unlimited command unlimto set & know user limits open files file descriptor max user process etc.
  • red hat linux certification cost jobs salary syllabus courses fees
  • ufw firewall commads allow port enable disable ubuntu 20.04
  • ddos attack prevention
  • change ssh port in linux - avoid sshd ddos attacks
  • ping command
  • memcached install ubuntu wordpress
  • check linux version (lsb_release -a) ubuntu debian 32 or 64 bit
  • rsync command linux with examples comparison to scp
  • how to uninstall package in linux ubuntu rpm, yum apt-get
  • increase open file limit linux File descriptor ft nginx , mysql, lemp
  • remove repository ubuntu
  • htop commad memory details virtual vs shard vs resident
  • chown command in Linux with Examples
  • Kill PHP process
  • VIrtual Memory vs RSS Memory vs Shared memory in Linux
  • oom killer fixing it by configuration linux ubuntu
  • Install Lemp nginx mysql php fpm Stack on Debian 11 with repository
  • connect two remote servers linux command line
  • auto start after oom killer Mysql & php fpm nginx etc ubuntu wth systemd or cron job
  • load average Linux 1, 5, 15 min 2,4,8 cores explained
  • Control Structures in Shell Scripting
  • Shell Scripting Roadmap for Beginners to Advanced
  • awk commands with practical examples
  • Shell Scripting Tutorial for Beginners 🚀
  • find Command in Linux with Examples
  • sed Command in Linux with Examples (Beginner to Advanced)
  • Linux Text processing commands in with Examples
  • linux disk management commands
  • fdisk command in linux with examples
  • how to add a new disk in linux
  • Linux mount Command with Examples
  • fstab options with examples
  • Top 50 Shell Scripting Interview Questions and Answers
  • Linux Networking Interview Questions and Answers
  • Linux Networking Commands Cheat Sheet with Examples pdf
  • Netstat & SS Commands cheat sheet with examples Interview Questions
  • Nmap Cheat Sheet – Network Scanning & Security
  • Bash Brackets ([], (), {}, $( ), $(( ))) – Types, Uses & Examples

hi i am raju ginni, primalry i manage wordpress websites on GCP cloud platform as a cloud engineer, and create content on passionate things.
you can follow me on youtbe

© 2025 - All Rights Reserved Disclaimer & Privacy Policy