How to mount devices in Linux

In unix systems, mounting is a way to attach a directory to a device.

Here are some example of mount command:

mount cdrom – mount /dev/cdrom
mount cdrom in a desired folder – mount /dev/cdrom /home/user/cdrom
If you have an iso file and you want to mount it, you will have to add “-o loop” after the mount command:

– mount -o loop /home/user/image.iso /home/user/cdrom

For unmounting the device you will have to write the command umount and the location of the devices:

umount /dev/fd0
umount /dev/cdrom
umount /home/user/image.iso


Leave a Reply