Web hosting servers - 218 Part II . Getting Around in Linux

218 Part II . Getting Around in Linux Mounting file systems The mount command is used for mounting file systems on Linux. The standard form of the mount command is as follows: mount -t type device mountpoint This command specifies the file system type, the device containing the file system, and the directory where the file system is to be located. A common location for mounting file systems on many distributions is the /mnt directory. This directory can be configured with subdirectories such as /mnt/floppy and /mnt/cdrom. An example of the use of this command is shown in the following with the /dev/hda2 device using the ext2 file System to the mount point of /fun. # mount t ext2 /dev/hda2 /fun Several options can be used with the mountcommand; these are covered in Table 5-11. Table 5-11 Options Used with mount Option Use -h Displays help information. -v Mounts the file system verbosely. -a Mounts all file systems listed in /etc/fstab. -f Fakes the mounting of file systems. -l Adds the ext2 labels to the output displayed. -n Mounts a file system without adding it to the /etc/mtab file. -r Mounts the file system read-only. -w Mounts the file system in write mode. -L Mounts the file system with the specified label. -t FILESYSTEM_TYPE Mounts the device as the specified file system type. -V Displays version information. Unmounting file systems The umount command is used to unmount file systems on Linux systems. This is often used to unmount a removable media device before it is ejected. No open files can exist on the file system when unmounting. File systems can be unmounted using either the device name or the mount directory. Several options can be used with the umountcommand; these are covered in Table 5-12.
Check Tomcat Web Hosting services for best quality webspace to host your web application.

Leave a Reply