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

3375 questions
563
votes
3 answers

What is a bind mount?

What is a “bind mount”? How do I make one? What is it good for? I've been told to use a bind mount for something, but I don't understand what it is or how to use it.
Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
238
votes
5 answers

How to get the complete and exact list of mounted filesystems in Linux?

I usually use mount to check which filesystems are mounted. I also know there is some connection between mount and /etc/mtab but I'm not sure about the details. After reading How to check if /proc/ is mounted I get more confused. My question is: How…
xanpeng
  • 5,595
  • 7
  • 24
  • 20
237
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
  • 33,591
  • 31
  • 102
  • 198
206
votes
17 answers

mount: wrong fs type, bad option, bad superblock

I added a new hard drive (/dev/sdb) to Ubuntu Server 16, ran parted /dev/sdb mklabel gpt and sudo parted /dev/sdb mkpart primary ext4 0G 1074GB. All went fine. Then I tried to mount the drive mkdir /mnt/storage2 mount /dev/sdb1 /mnt/storage2 It…
Eli Korvigo
  • 2,183
  • 2
  • 11
  • 7
162
votes
3 answers

Mount cifs Network Drive: write permissions and chown

I have access to a cifs network drive. When I mount it under my OSX machine, I can read and write from and to it. When I mount the drive in ubuntu, using: sudo mount -t cifs -o username=${USER},password=${PASSWORD} //server-address/folder…
Vincent
  • 2,778
  • 6
  • 23
  • 28
119
votes
1 answer

What happens when you 'mount over' an existing folder with contents?

Right now /tmp has some temporary files in it. When I mount my hard drive (/dev/sdc1) on top of /tmp, I can see the files on the hard drive. What happens to the actual content of /tmp when my hard drive is mounted? Is it possible to perform r/w…
user
  • 1,569
  • 4
  • 15
  • 20
108
votes
4 answers

What is meant by mounting a device in Linux?

I've heard the term "mounting" when referring to devices in Linux. What is its actual meaning? How it handling now unlike older versions? I haven't done that manually via the command-line. Can you give the steps (commands) for mounting a simple…
Renjith G
  • 5,788
  • 16
  • 40
  • 48
102
votes
10 answers

How to mount a device in Linux?

I read some resources about the mount command for mounting devices on Linux, but none of them is clear enough (at least for me). On the whole this what most guides state: $ mount (lists all currently mounted devices) $…
its_me
  • 13,709
  • 23
  • 54
  • 52
92
votes
12 answers

Why is Linux's filesystem designed as a single directory tree?

Can anyone explain why Linux is designed as a single directory tree? Whereas in Windows we can have multiple drives like C:\, and D:\, there is a single root in Unix. Any specific reason there?
user2720323
  • 3,549
  • 7
  • 24
  • 26
91
votes
5 answers

Determine what device a directory is located on

If I do # cd / # ln -s /home test # cd test # mount --bind $PWD /mnt the entry in /proc/mounts is /dev/sda2 /mnt ext4 rw,noatime,data=ordered 0 0 which is the device that is mounted to /home and is not easily deducible from $PWD which is /test.…
StrongBad
  • 5,151
  • 9
  • 47
  • 73
81
votes
4 answers

How to mount a disk image from the command line?

I know how to mount a drive that has a corresponding device file in /dev, but I don't know how to do this for a disk image that does not represent a physical device and does not have an analogue in /dev (e.g. an ISO file or a floppy image). I know…
user628544
  • 1,495
  • 2
  • 12
  • 16
81
votes
15 answers

mount.nfs: access denied by server while mounting on Ubuntu machines?

I have three machines in production - machineA 10.66.136.129 machineB 10.66.138.181 machineC 10.66.138.183 and all those machines have Ubuntu 12.04 installed in it and I have root access to all those three machines. Now I am supposed to…
arsenal
  • 3,053
  • 17
  • 44
  • 49
79
votes
3 answers

What is a "loop device" when mounting?

I am mounting an ISO file, and looking at this tutorial. They use the command: $ mount -o loop disk1.iso /mnt/disk I'm trying to understand the use of -o loop. I have two questions: When I look at the long man page for mount, it takes time to find…
Vass
  • 5,271
  • 9
  • 38
  • 45
79
votes
9 answers

Why do we need to mount on Linux?

I understand what mounting is in Linux, and I understand device files. However I do not understand WHY we need to mount. For example, as explained in the accepted answer of this question, using this command: mount /dev/cdrom /media/cdrom we are…
Greeso
  • 893
  • 1
  • 7
  • 8
79
votes
6 answers

What is a better way to deal with server disconnects of sshfs mounts?

I have several directories mounted through sshfs. I sometimes get disconnects from the server (not configurable by me). I usually mount the directories like this sshfs [email protected]:/home/user /mnt/example When a server disconnects, the…
Sebastian
  • 8,677
  • 4
  • 39
  • 49
1
2 3
99 100