Mount (Unix)
In computing, OverviewThe The ExamplesTo display all mounted partitions: $ mount
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
/tmp on /var/tmp type none (rw,noexec,nosuid,bind)
10.4.0.4:/srv/export/setup_server on /nfs/setup_server type nfs (ro,addr=10.4.0.4)
To mount the second partition of a hard disk drive to the existing directory /media/PHOTOS (mount point): $ mount /dev/hda2 /media/PHOTOS
To unmount by referring to the physical disk partition: $ umount /dev/hda2
To unmount by referring to the mount point: $ umount /media/PHOTOS
To remount a partition with specific options: $ mount -o remount,rw /dev/hda2
Bind mountingBind mounting allows a filesystem hierarchy or a file to be mounted at a different mount point. Unlike a symbolic link, a bind mount does not exist on the filesystem itself.[3] In the following example, the path $ mount --bind /olddir /newdir
Mounting loop devicesA loop device is a device that corresponds to a file, usually a disk image. Mounting a loop device allows the file to be accessed as a filesystem. This allows it to be used as a virtual drive. For example, a virtual disk image can be mounted as a regular filesystem. $ mount -o loop my_virtual_disk.img /mnt
Derivatives and wrappers
This package also contains a wrapper pmount-hal, which reads information such as device labels and mount options from HAL and passes it to pmount. The All the gnome-mount programs utilize HAL methods and as such run unprivileged. The rationale for gnome-mount is to have a centralized place (in GConf) where settings such as mount options and mount locations are maintained.[4] As with all unix-like commands, the options are specific to the version of mount and are precisely detailed in its man page. In addition to the system call mount, the function mount_root() mounts the first, or root filesystem. In this context mount is called by the system call setup. See alsoReferences
External links |