We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
You are here: TWiki> Wikilearn Web>BltTermsToDefine>Mount (01 Sep 2002, RandyKramer)
Tags:
create new tag
, view all tags
See BLT.

mount / umount: In Linux, a (data) disk or partition must be mounted to be utilized. Mount is the Linux command to mount a disk, umount is the Linux command to unmount a disk. See man mount for a better definition, in terms of attaching a file system to the file hierarchy tree (rooted at /).

Gotchas:

  1. An audio CD does not have to be and must not be mounted in order to play
  2. Before mounting a partition you must use mkdir to create a directory / mountpoint if it does not already exist.
  3. However, if the directory / mountpoint already exists and contains files, then, if you mount a partition at that mountpoint / directory, the files (and directories) that existed under that directory before mounting the partition will be hidden and unavailable. (They will become available again if the partition is unmounted (umount).)

Example:

mount -t smb //nnn/c /mnt/c -o fmask=666,dmask=777

Note: The following is from memory / best guesses -- needs to be confirmed.

Where:

  • -t smb means type Samba
  • //nnn/c is the partition or disk to be mounted (in this case a disk on another computer)
  • /mnt/c is the mount point (where the partition will be accessible after mounting)
  • -o indicates options to follow
  • fmask=666 means files are to be given permissions of 666 (-rw-rw-rw-)
  • dmask=777 means directories are to be given permissions of 777 (-rwxrwxrwx)

Contributors

  • RandyKramer - 15 Jan 2002
  • <If you edit this page, add your name here, move this to the next line>
Topic revision: r6 - 01 Sep 2002 - 17:16:00 - RandyKramer
Wikilearn.Mount moved from Wikilearn.MountUmount on 18 Jan 2002 - 22:58 by RandyKramer - put it back
 
TWIKI.NET
Copyright © 1999-2008 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
See TWiki's New Look