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).



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).
[email protected]:~$ mount
--list of mounted file systems--
mount -t type To view list of certain type of file systems.
[email protected]:~$ 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.
    [email protected]:~$ 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.





© https://www.includehelp.com (2015-2018), Some rights reserved.




Like other websites, this site uses cookies to deliver relevant ads based on your interest, by using our website, you acknowledge that you have read our privacy policy.
Close