Contents / Previous / Next


Mount

Mounting a device (e.g., hard-disk, CD-ROM, floppy, etc):
Bind a directory to a physical device, so that the device's file system can be read.

The mount command is used as follows:
mount [-t (fstype)] [-o (option)] (device) (directory)

umount [-f] [(device)|(directory)]
The -t option specifies the file system type: ext2, iso9660, minix, msdos, nfs, vfat, ...

LINUX can autodetect most file systems

Example: Mounting CD-ROMs

mount -t iso9660 -o ro /dev/cdrom /mnt/cdrom
(/dev/cdrom is a softlink to /dev/hdc or /dev/hdd or ...)
ls /mnt/cdrom
When you are finished with the CD-ROM unmount and eject it with:
umount /dev/cdrom

eject /dev/cdrom