Linux mount and umount commands

To mount a device or partition, the mount command is used. The mount command provides large number of options and the common pattern for mount command is shown below.

mount options device directory


[root@RHEL06 ~]# mount -t iso9660 -o ro /dev/cdrom /mnt/cdrom

/dev/cdrom is a device file associated with CD-ROM drive. The directory /mnt/cdrom is a directory conventionally used as the mounting point for CD-ROMs. The type of filesystem found on most CD-ROMs is iso9660, and that value is provided with -t option. The -o option, ro, states that the filesystem is read-only.

Refer the next link to learn about different Linux mount options.

To umount an already mounted device, you can use “umount” command.


[root@RHEL06 ~]# umount /dev/cdrom


[root@RHEL06 ~]# umount /mnt/cdrom

Related Tutorials
• Linux File System Management Tools - fdisk command
• Linux File System Management Tools - mkfs, mkfs.ext2, mkfs.ext3 commands
• What is file system journaling?
• Linux File System Management Tools - fsck command
• Introduction to Linux /etc/fstab file
• Linux mount options