Mounting a File System Assignment Help

Assignment Help: >> Introduction to File System - Mounting a File System

Mounting a File System

Before a File System is mounted a mount point has to be chosen. A mount point might exist wherever in the File System. Those are directories. File Systems can be mounted using the mount command (that can only be invoked through 'root', unless the normal users are given permission to use it. Whole the mounted File Systems are found in /etc/mtab. The contents of this list are printed to screen if mount is invoked without any argument. That corresponds to the all mounted File Systems. A Mounting and Unmounting of the File Systems occur in during shutting and booting the system correspondingly. These are based on the entries in /etc/fstab.

The mount command is used to mount local and remote File Systems. That is used to show the list of File Systems which are mounted as shown below:

# mount /dev/device /directory/to/mount

/dev/device is the name of the device that is to be mounted

/directory/to/mount is the directory to be overlayed in the local File System. There are options which can be passed to the mount command. Options are as given below:

-a         Mount all the File Systems

-v         Print the output in verbose mode

-V        To use Mount command Print the help message

-r          with read only permission Mount the File System

-w        with write only permission Mount the File System

There are options which can be passed to the mount command. The mainly important features are specified in the -o option. These features are:

rw   read/write

ro    read only

bg    background mount ( It place the procedure into the background  and keep trying until success if the mount fails.)

Let consider the following example:

# mount           -o         rw,bg   /dev/hda4        /mnt

All the mounted File System information will stored in /etc/mtab... /etc/fstab virtual File System table gives entries for mounting File Systems at the time of booting the system.

Mount   is   the   command   which   is   used   to   mount a   File   System   in   Solaris.   These are found in/etc/vfstab in Sun Solaris and in SCO Unix.

Syntax

#   mount   -F   [File   System   type]   -o   [options]   [device   to   mount]

[mountpoint]

Options:

-F         Denotes File System that is used for mounting. An ufs is the file category in Solaris.                   hsfs is the File System to accessing Cd- Rom, Pcfs is the File System to access floppy.

 -o         Indicates the permission.

rw:       Read and write permission

ro:       read only permission.

Let consider the given example:

# mount -F ufs -o rw /dev/dsk/c0d0s0 /mnt

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd