File System Mounting



Rating - 4/5
512 views

File-System Mounting

 Just as a file must be opened before it is used, a file system must be mounted before it can be available to processes on the system. More specifically, the directory structure can be built out of multiple volumes, which must be mounted to make them available within the file-system name space. The mount procedure is straightforward. The operating system is given the name of the device and the mount point—the location within the file structure where the file system is to be attached. Typically, a mount point is an empty directory.

These Topics Are Also In Your Syllabus File System Mounting
1 Types of Operating Systems - Batch operating system, Time-sharing systems, Distributed OS, Network OS, Real Time OS link
2 File Replication link
You May Find Something Very Interesting Here. File System Mounting link
3 Special purpose systems link
4 Computing Environments- Traditional Computing, Client-Server Computing, Peer-to-Peer Computing, Web-Based Computing link
5 Scheduling Criteria link

For instance, on a UNIX system, a file system containing a user's home directories might be mounted as /home; then, to access the directory structure within that file system, we could precede the directory names with ftiome, as in /homc/janc. Mounting that file system under /users would result in the path name /users/jane, which we could use to reach the same directory. Next, the operating system verifies that the device contains a valid file system. It does so by asking the device driver to read the device directory and verifying that the directory has the expected format. Finally, the operating system notes in its directory structure that a file system is mounted at the specified mount point. This scheme enables the operating system to traverse its directory structure, switching among file systems as appropriate. To illustrate file mounting, consider the file system depicted in Figure 10.12, where the triangles represent subtrees of directories that are of interest. Figure 10.12(a) shows an existing file system, while Figure 10.12(b) shows an unmounted volume residing on /device'/dsk.

These Topics Are Also In Your Syllabus File System Mounting
1 Types of Operating Systems - Batch operating system, Time-sharing systems, Distributed OS, Network OS, Real Time OS link
2 What is MULTICS? link
You May Find Something Very Interesting Here. File System Mounting link
3 What is IBM OS/360? link
4 The Mach operating system link
5 Windows XP- History link

File System Mounting

These Topics Are Also In Your Syllabus File System Mounting
1 Types of Operating Systems - Batch operating system, Time-sharing systems, Distributed OS, Network OS, Real Time OS link
2 Swap Space Management link
You May Find Something Very Interesting Here. File System Mounting link
3 Copy on write link
4 File Replication link
5 Special purpose systems link

At this point, only the files on the existing file system can be accessed. Figure 10.13 shows the effects of mounting the volume residing on /device/dsk over /users. If the volume is unmounted, the file system is restored to the situation depicted in Figure 10.12.

These Topics Are Also In Your Syllabus File System Mounting
1 Types of Operating Systems - Batch operating system, Time-sharing systems, Distributed OS, Network OS, Real Time OS link
2 Introduction to Storage Management link
You May Find Something Very Interesting Here. File System Mounting link
3 Introduction to Protection and Security link
4 Distributed System link
5 What is Special Purpose System? link

Systems impose semantics to clarify functionality. For example, a system may disallow a mount over a directory that contains files; or it may make the mounted file system available at that directory and obscure the directory's existing files until the file system is unmounted, terminating the use of the file system and allowing access to the original files in that directory.

These Topics Are Also In Your Syllabus File System Mounting
1 Types of Operating Systems - Batch operating system, Time-sharing systems, Distributed OS, Network OS, Real Time OS link
2 Process Concept link
You May Find Something Very Interesting Here. File System Mounting link
3 Operating System Operations- Dual-Mode Operation, Timer link
4 Operations on Process link
5 Threads overview link

File System Mounting

As another example, a system may allow the same file system to be mounted repeatedly, at different mount points; or it may only allow one mount per file system. Consider the actions of the Macintosh operating system. Whenever the system encounters a disk for the first time (hard disks are found at boot time, and floppy disks are seen when they are inserted into the drive), the Macintosh operating system searches for a file system on the device. If it finds one, it automatically mounts the file system at the root level, adding a folder icon on the screen labeled with the name of the file system (as stored in the device directory). The user is then able to click on the icon and thus display the newly motinted file system. The Microsoft Windows family of operating systems (95, 98, NT, small 2000, XP) maintains an extended two-level directory structure, with devices and volumes assigned drive letters.

Volumes have a general graph directory structure associated with the drive letter. The path to a specific file takes the form of drive-letter;\path\to\file. The more recent versions of Windows allow a file system to he mounted anywhere in the directory tree, just as UNIX does. Windows operating systems automatically discover all devices and mount all located file systems at boot time. In some systems, like UNIX, the mount commands are explicit. A system configuration file contains a list of devices and mount points for automatic mounting at boot time, but other mounts may be executed manually.


Rating - 4/5
481 views

Advertisements