Solved

Mount Hard Drive

Posted on 2007-04-09
2
3,089 Views
Last Modified: 2008-01-09
Could someone please describe in detail what exactly is happening when I mount my external hard drive in Mac OS X?  What is the purpose of mounting my external hard drive? Is mounting the same in a Windows environment?   Please any information would be greatly appreciated.  Thank you.
0
Comment
Question by:SOLIDGOLD24
2 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 500 total points
ID: 18879804
    mount, unmount -- mount or dismount a filesystem

SYNOPSIS
     #include <sys/param.h>
     #include <sys/mount.h>

     int
     mount(const char *type, const char *dir, int flags, void *data);

     int
     unmount(const char *dir, int flags);

DESCRIPTION
     The mount() function grafts a filesystem object onto the system file tree
     at the point dir.  The argument data describes the filesystem object to
     be mounted.  The argument type tells the kernel how to interpret data
     (See type below).  The contents of the filesystem become available
     through the new mount point dir.  Any files in dir at the time of a suc-
     cessful mount are swept under the carpet so to speak, and are unavailable
     until the filesystem is unmounted.

     The following flags may be specified to suppress default semantics which
     affect filesystem access.

     MNT_RDONLY       The filesystem should be treated as read-only; Even the
                      super-user may not write on it.

     MNT_NOEXEC       Do not allow files to be executed from the filesystem.

     MNT_NOSUID       Do not honor setuid or setgid bits on files when execut-
                      ing them.

     MNT_NODEV        Do not interpret special files on the filesystem.

     MNT_UNION        Union with underlying filesystem instead of obscuring
                      it.

     MNT_SYNCHRONOUS  All I/O to the filesystem should be done synchronously.

     The flag MNT_UPDATE indicates that the mount command is being applied to
     an already mounted filesystem.  This allows the mount flags to be changed
     without requiring that the filesystem be unmounted and remounted.  Some
     filesystems may not allow all flags to be changed.  For example, most
     filesystems will not allow a change from read-write to read-only.

     The flag MNT_RELOAD causes the vfs subsystem to update its data struc-
     tures pertaining to the specified already mounted filesystem.

     The type argument defines the type of the filesystem.

     Data is a pointer to a structure that contains the type specific argu-
     ments to mount.  The format for these argument structures is described in
     the manual page for each filesystem.

     The umount() function call disassociates the filesystem from the speci-
     fied mount point dir.

     The flags argument may specify MNT_FORCE to specify that the filesystem
     should be forcibly unmounted even if files are still active.  Active spe-
     cial devices continue to work, but any further accesses to any other
     active files result in errors even if the filesystem is later remounted.

0
 
LVL 11

Expert Comment

by:walkerke
ID: 18881030
To put it simply, mounting is the process of making the drive available to the operating system. In the simplest terms, it is the same for any operating system and is required in order to access any drive whether external or internal. Internal drives are mounted during the boot up process. Although it is possible to unmount/remount an internal drive while the system is running, it is not recommended. External drives, if available during boot up, will also be mounted at that time. Otherwise, they are mounted when the drive becomes available. During mounting, the drive is added to the root tree and remains available without any special commands or routines.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
On MacBook Pro OSX, I can't move application main window for some software like photoshop 2 37
Apple Mackbooks 8 88
exchange support of mac 2 73
Mac Os Sierra Safari Tabs 12 60
Are you new to OS X?  This helpful advice could get you quickly up to speed if you are making the transition from windows or totally new to OS X. Finder gives you the visual connection between you and the files located on the hard drive of your A…
In this article we will discuss some EI Capitan Mail app issues and provide some manual process to resolve them.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now