Quick links: HR Interview Que. Code Snippets C Programs C++ Programs Java Programs Scala Solved Examples PHP Examples

Home » Linux

Linux Terminal Commands - mounting and un mounting systems

There are two commands, that are used to mount and un mount the other external devices (file systems). The commands are mount and umount.

mount: mounts the external devices (file systems), also used to view list of mounted devices.

umount: un mounts the external devices (file systems).


Sponsored Links

Working with mount and umount devices (file systems)

command description example
mount This command is used to view list of all attached (mounted) external devices (external devices).
ih@linux:~$ mount
--list of mounted file systems--
mount -t type To view list of certain type of file systems.
ih@linux:~$ mount -t ext2
--list of mounted ext2 type file systems--
Creating a mount point

If you want to attach an external device, just like pen drive, SD card and other media device, you have to mount that particular device in your linux system. You can mount that device with the help of mount command. syntax
mount partition-name mount-point
command description
mount /dev/sdb1 /mmc To mounts (attaches) external device with a mounting point.
    ih@linux:~$ mount
    --list of mounted file systems--
here, /dev/sdb1 is the partition name and /mmc is the mouting point
( a directory where device is going to be mounted).
You can access (read, write) the device from here.


Keywords (like Linux, Java, Oracle etc) used in this website are the trademarks of their respective owners/company. This website is not affiliated to any company. The tutorials are designed by includehelp Team with the help of well known books and other online resources. These Tutorials are free for all, for learning purposes only. Enjoy learning:)
Copyright © 2015 - 2016. All Rights Reserved.