Questions tagged [mount]

Attaches a file system to a specified point in an existing filesystem hierarchy

The mount command attaches a file system to a specified point in an existing filesystem hierarchy. The attached filesystem could exist on a local device or be a remote (e.g. NFS) filesystem. After the mount command succeeds, the local or remote filesystem appears as a normal part of the existing filesystem hierarchy.

Related tags

  • - a way to organize and store computer files with their data
  • - the configuration file containing partitions their mount points
  • - a way of dividing a disk drive into multiple logical storage units
  • - the Network File System
  • - the automatic mounting and unmounting of certain filesystems by a daemon
  • - removing a mounted filesystem from the existing hierarchy

Further reading

On the concept of mounting

Location of mount points

How to mount volumes

Unmounting

3446 questions
240
votes
15 answers

umount: device is busy. Why?

When running umount /path I get: umount: /path: device is busy. The filesystem is huge, so lsof +D /path is not a realistic option. lsof /path, lsof +f -- /path, and fuser /path all return nothing. fuser -v /path gives: USER …
Ole Tange
  • 35,514
66
votes
8 answers

How to mount an image file without root permission?

Can I mount a file system image without root permission? Normally I would do: mount -o loop DISK_IMAGE FOLDER Without using sudo or setting the suid on mount, is there any suitable way to do this? I know I can use fusermount with some ISO images,…
daisy
  • 54,555
61
votes
5 answers

Why does mount happen over an existing directory?

An existing directory is needed as a mount point. $ ls $ sudo mount /dev/sdb2 ./datadisk mount: mount point ./datadisk does not exist $ mkdir datadisk $ sudo mount /dev/sdb2 ./datadisk $ I find it confusing since it overlays existing contents of…
Melebius
  • 768
48
votes
6 answers

Is there a command to see where a disk is mounted?

Is there a simple command that takes a disk's device node as input, and tells me where (and whether) that disk is mounted? Is it possible to get the mount point by itself, so I can pass it to another command? I'm working on a Debian Squeeze live…
detly
  • 5,160
41
votes
6 answers

How to check whether a particular directory is a mount point?

How to check whether or not a particular directory is a mount point? For instance there is a folder named /test that exists, and I want to check if it is a mount point or not.
unixx
  • 421
39
votes
14 answers

can not use mount.cifs: mount error(2): No such file or directory

The command mount.cifs is found not being able to run in a gentoo system with systemd ae429-1105 etc # mount -t cifs //file.abc.edu.au/user /home/directory/path -o credentials=/etc/user,rw,iocharset=utf8,file_mode=0777,dir_mode=0777 mount error(2):…
Chenming Zhang
  • 1,037
  • 1
  • 12
  • 14
34
votes
5 answers

mount error "is not a block device"

I am trying to make olddir accessible from newdir with the mount command: mount olddir newdir Why do I get the following error? mount: olddir is not a block device
33
votes
4 answers

umount - device is busy

Sometimes when I want to umount a device, e.g. sudo umount /dev/loop0 I will get the message umount: /mnt: device is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) I usually…
xralf
  • 15,415
23
votes
2 answers

how to mount by UUID without using /etc/fstab

I am looking for command like mount 1234-SOME-UUID /some/mount/folder I am connecting a couple of external USB hard drives. I want them to be mounted on specific folders during startup. I am unable to boot using /etc/fstab if one of the drive is…
Necktwi
  • 1,026
18
votes
2 answers

Mount command finishes successully, but disk is not mounted

We're trying to mount a disk, but even though the mount command finishes successfully, the disk isn't mounted bart@test:/$ sudo mount -v /data mount: /dev/sdc1 mounted on /data. bart@test:/$ df -h Filesystem Size Used Avail Use% Mounted…
17
votes
2 answers

How to check if a partition is mounted as 'noexec'?

Currently, I'm using grep '\s/location/\s.*noexec' /proc/mounts. (Is that a right way of checking this?)
user
  • 339
15
votes
9 answers

Favorite partitioning and mounting tricks

We all know that mounting a new partition as /home and maybe /boot is extremely useful. Or mounting a remote directory as /opt can be great for sharing system tools. Are there any other, maybe more esoteric, uses for extra partitions or hard drives…
Falmarri
  • 13,047
14
votes
1 answer

accessing files hidden by mounted drive

Possible Duplicate: Access to original contents of mount point I have a directory d containing some file f and I mount a drive on directory d. Is there a way of accessing file f without unmounting?
howard
  • 1,342
  • 1
  • 11
  • 16
14
votes
2 answers

Check if directory is a mount point

Using Python, I scan Unix mounted volumes for files, then add or purge the filenames in a database, based on their existence. I've just realised that if the volume being scanned is unmounted for some reason, the scan will assume every filename on…
MFB
  • 243
12
votes
5 answers

How to mount a NRG file on Linux?

I'm trying to mount an old NRG image file in my Arch Linux box. In Windows 7 I can mount it using PowerISO without problems. When I try to mount it in Linux I get the following error messages: $ sudo mount -o loop file.nrg folder/ mount: wrong fs…
1
2 3 4 5 6