Mounting File System
Mounting and Unmounting File Systems. Before you can access the files on a file system, you need to mount the file system. Mounting a file system attaches that file system to a directory (mount point) and makes it available to the system. The root ( / ) file system is always mounted.All files accessible in a Unix system are arranged in one big tree,the file hierarchy, rooted at /. These files can be spread out over several devices. The mount command serves to attach the filesystem.
mount a filesystem
The mount command mounts a storage device or filesystem, making it accessible and attaching it to an existing directory structure.
The umount command “unmounts” a mounted filesystem, informing the system to complete any pending read or write operations, and safely detaching it.
mount -t type device dir
mount -t ext4
Mounting a USB Flash Drive
mount -t vfat /dev/sdc1 /media/flashdisk
Mounting ISO Image
mount -o ro,loop Fedora-14-x86_64-Live-Desktop.iso /media/cdrom
Mount all the file systems listed in /etc/fstab
Do everything except for the actual mount system call. This option is useful in conjunction with the -v flag to determine what mount(8) is actually trying to do.
Force the mount of an unclean file system (dangerous), or the revocation of write access when downgrading a file system’s mount status from read-write to read-only.
Mount the file system read-only. This is identical to using -o ro.
Update mount options on the file system.
Mount the file system read-write.