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
Example:
[[email protected] ~]# 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.
Example:
[[email protected] ~]# umount /dev/cdrom
Or
[[email protected] ~]# umount /mnt/cdrom