mount command, allows mounting of a file system at a specified point in the file hierarchy.

learn more… | top users | synonyms

7
votes
1answer
4k views

What is the loopback interface

What is the loopback interface and how does it differ from the eth0 interface? And why do I need to use it when mounting an ISO or running a service on localhost?
7
votes
1answer
425 views

How is /etc/fstab accessed before root is mounted?

I was making some changes to /etc/fstab, when this chicken and egg question occurred to me - if /etc/fstab contains the instructions for mounting the file systems, including the root partition, then ...
7
votes
3answers
6k views

Automount USB drives with no GUI requirement (halevt replacement)

For minimal installations of Debian, I have been using halevt to enable automounting of USB drives. Halevt is reliable and requires no configuration aside from installing the package. Now, halevt has ...
7
votes
2answers
3k views

USB drive permissions when automounting

On Debian there is the common problem, that you try to plug an ntfs formatted USB harddrive and then can't write to it as a regular user to it because the directory belongs to root. A little time ago ...
7
votes
1answer
2k views

ext4 overrides my commit=100 mount option with commit=0

Here is the relevant line from my /etc/fstab file: UUID=f51aa298-9ce4-4a19-a323-10df333f34f5 / ext4 data=writeback,noatime,barrier=0,errors=remount-ro,commit=100,nobh,nouser_xattr ...
7
votes
4answers
890 views

Faster alternative to ArchiveMount?

At the moment I am using ArchiveMount to mount a 123,000 kb archive that contains more then 3 million files inside. So far it has been mounting for 5+ hours and still isn't finished. Is there a ...
6
votes
4answers
2k views

Where in “/” should extra disks be mounted?

According to Wikipedia http://en.wikipedia.org/wiki/Unix_directory_structure http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard extra disks should not be mounted in /mnt/ according to the ...
6
votes
4answers
326 views

Listing all devices as non-superuser

I'm trying to mount external hard drive. As I know, to mount manually, I should use fdisk -l to determine which device refers to the drive. When I'm doing so without sudo I have next output: ...
6
votes
4answers
8k views

Mount an loop file without root permission?

Can i mount a loop file without root permission , normally i do: mount -o loop DISK_IMAGE FOLDER Without setting up sudo or suid mount program , is there any suitable way to do this ? I know i can ...
6
votes
3answers
500 views

Access to original contents of mount point

On my headless NAS I have sdf1 (a flash-card) mounted as / while /home is mounted from lv00 (an LVM volume backed by a software RAID). To be able to access the machine when the RAID fails, I have a ...
6
votes
2answers
209 views

how to mount a range of drives in bash?

I use something like this to unmount a range of drives: umount /dev/sd[c-k]2 Is there any way to use same thing with mount? something like this: mount /dev/sd[c-k]2 /[c2-k2]
6
votes
3answers
621 views

Check if 2 directories are hosted on the same partition on Linux

How can I check if /my/dir is on the same partition as /? This is for integration within a script. Bind mounts should be handled correctly. POSIX compatible solutions are welcome.
6
votes
3answers
592 views

How to get mount point of filesystem containing given file

I am looking for a quick way to find the mount point of the file system containing a given FILE. Is there anything simpler or more direct than my solution below? df -h FILE |tail -1 | awk -F% ...
6
votes
2answers
20k views

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
6
votes
2answers
8k views

how to find the type of img file and mount it

I have to mount a .img file but I don't know what type of .img it is. How can I figure out what type of .img file it is? # mount -t auto -o ro,loop gmapsupp.img /mnt/iso/ mount: you must specify the ...
6
votes
3answers
1k views

How to check if /proc/ is mounted

How can I check if /proc/ is mounted? Using /etc/mtab is discouraged as it might be inconsistent. Using /proc/mounts is also not an option as might not exist if /proc/ is not mounted (although ...
6
votes
2answers
6k views

Make all files under a directory read-only without changing permissions?

First, some background: /dev/md1 is a RAID-0 array serving as primary file store. It is mounted to /var/smb. /dev/md2 is another RAID-0 array storing backup snapshots taken from /dev/md1. It is ...
6
votes
3answers
22k views

How to mount/recover data on a disk that was part of a mdadm raid 1 on another machine?

Some background The disk itself was "worked on" by a friend and is said to be still intact, undamaged and still mountable/recoverable The disk was part of a software raid 1 on Ubuntu 12.04 The other ...
6
votes
3answers
2k views

Mounting and modifying a loopback file without sudo/root, is it possible?

I'm trying to adapt a tutorial into an easy to use script http://qt-project.org/wiki/RaspberryPi_Beginners_guide. I'm trying to reduce the need for sudo/root as much as possible (preferably, only ...
6
votes
1answer
8k views

Mounting an ext3 fs with user privledges

I'm trying to mount an ext3 file system from another linux installation so that the user, not root, will have full access to all the files. (I really do need user to have access to those files, ...
6
votes
1answer
207 views

What's the purpose of the /proc/pid/mountinfo file?

What's the purpose of the /proc/pid/mountinfo file (with pid being numerical process id)? As far as I can see it reflects contents of the /proc/mounts file but with added information. Also the file ...
6
votes
2answers
3k views

Automount CIFS shares on boot?

I have a script saved that mounts my CIFS share, but I have to run it manually every time I boot into Linux and I connect to the internet. Is there a way that I can set the script to run as root every ...
6
votes
1answer
664 views

accessing files hidden by mounted drive [duplicate]

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 ...
6
votes
4answers
2k views

How does Bash path completion work with sudo?

Tab path completion does not work (at least on Ubuntu and AFAIK Arch) with sudo mount <whatever> The iso file I am trying to mount is not in /etc/fstab. If I just type mount <whatever> ...
6
votes
2answers
299 views

Which of proc, sys etc. should be bind-mounted (or not) when chrooting into a “replacement” distribution?

This answer to another question basically boils down to chrooting into another Linux distribution in order to mainly use that as a replacement to its too restricted (but irreplaceable) parent. The ...
6
votes
1answer
796 views

Mounting from dolphin vs commandline

I have been wondering how this is possible (i.e. how this works internally). When you want to mount a directory you have to be root. sudo mount /dev/something /mnt/somedir I know you can get around ...
6
votes
1answer
515 views

HDD allocation fstab

In my PC running Ubuntu 12.04 LTS I have installed three SATA hard drives. Two of them are installed near a cooler. I want to physically switch two drives (one that is not near the fan should be moved ...
6
votes
2answers
5k views

How do I add an entry in /etc/fstab for a windows share?

I want to be able to mount our file server's file share (on a Mac OS X server, shared via AFP and Windows File Sharing) on my Ubuntu 10.10 linux laptop. I want to be able to mount it as my normal ...
6
votes
1answer
681 views

Run shell script when new volume mounted

I'm interested in running an rsync script whenever any new volume is mounted on my Debian box. What are some potential triggers / strategies for listening for a new volume mount?
6
votes
2answers
1k views

Where should I mount my external harddrive?

I've got an external harddrive that I'd like to auto-mount. It will be present most times when my laptop boots. Where is the "correct" place to mount it? /media/my-hd: Will litter /media with an ...
6
votes
1answer
1k views

Difference between 'sync' and 'async' mount options

What is the difference between sync and async mount options from the end-user point of view? Is file system mounted with one of these options works faster than if mounted with another one? Which ...
6
votes
3answers
2k views

How to create a read-only snapshot in btrfs?

As far as I understand, the snapshots made by btrfs subvolume snapshot are writable by default and are visible at a certain path under the mountpoint of your btrfs volume. How to setup the system so ...
6
votes
1answer
4k views

autofs mounts not disconnecting after inactive

I have autofs installed on several linux servers that are connecting to central NFS server for the users /home directories. It works great when mounting the directories on login, but the mounts never ...
6
votes
1answer
904 views

Mounting an old floppy image file (.ima format) - how hard can it be?

I'm trying to mount and access a floppy image file in the .ima format (raw dump to floppy, similar to .img) on ArchLinux. This file is part of a set of 30. It is not bootable, but rather a ...
6
votes
1answer
1k views

How to mount a Truecrypt container with a timeout from the command line?

I'm mounting a truecrypt container via the command line (i.e. truecrypt file dir). Is there any way to have truecrypt automatically unmount the container after a given amount of inactivity in dir?
6
votes
2answers
545 views

CD disk not detected by Fedora on my Laptop

I rarely use cd's on my laptop, but I recall having the same problem a few months ago. When I put a cd in my DVD drive nothing happens. It kicked in last time without me doing anything but I don't ...
5
votes
6answers
9k views

How does a kernel mount the root partition?

My question is with regards to booting a Linux system from a separate /boot partition. If most configuration files are located on a separate / partition, how does the kernel correctly mount it at boot ...
5
votes
2answers
917 views

Why does mount have the SUID bit set?

I'm not sure why mount is installed with SUID bit on many distributions. In graphical environment, it doesn't require user to type the mount command to mount a partition. Normally udisks will ...
5
votes
3answers
628 views

How to get my USB key to auto mount

I'm currently working in a command line only environment. When I plug my USB key in, I see a new device file in /dev: ... sdi sdi1 ... If I simply sudo mount /dev/sdi1 /media/tmp, and umount it ...
5
votes
3answers
2k views

Mounting a device — role of /dev, /media and /mnt, and the mount command [closed]

I have several closely related questions about what happens when I insert a CD. The files on the CD /media/Ubuntu\ 11.04\ i386/, but from what I've seen /dev/cdrom is also involved. What is the ...
5
votes
3answers
4k views

Mounting multiple devices at a single mount point on Linux

Is there a way to mount multiple hard drives to a single mount point? Let's say I run out of space on /home and decide to add an extra hard drive to the computer. How do I scale the space on a mount ...
5
votes
3answers
5k views

Creating mounting point

I am mounting an image, and just realized that I have to create the directory for mounting point first. The command mount won't mount to a non-existing directory. But I seem to remember in some ...
5
votes
1answer
6k views

Move /tmp to RAM

I am trying to move /tmp to RAM and obey good practice: /var/tmp should NOT be placed in tmpfs, as it must survive reboots not mount /tmp as a stand-alone tmpfs, but rely on /dev/shm or /run/shm ...
5
votes
4answers
3k views

Detect if a (NTFS) drive is mounted or not. If not then mount it

I want to sync an USB drive with a folder located on a NTFS partition which is not mounted at boot time. I have found a command to do that: rsync -axu /media/USB/folder /home/user/folder. But I have ...
5
votes
1answer
250 views

Know which directory is “mount -o bind” by asking the kernel (Linux)

If I do mount -o bind /my/dir /mnt/tmp, I can see the content of /my/dir within /mnt/temp. However, if I type cat /proc/mounts, I get the following output: /dev/sda7 /my ext4 ...
5
votes
1answer
915 views

What does the errors=continue mount option mean?

On the output of the mount command on my system there are some lines like the following: /dev/sda2 on /var/log type ext3 (rw,relatime,errors=continue,barrier=1,data=ordered) And inside the ...
5
votes
5answers
9k views

Mounting external drive does not work anymore

~$ dmesg | tail [ 479.558062] usb 1-1: SerialNumber: S07F1601A00000090095 [ 479.559231] scsi7 : usb-storage 1-1:1.0 [ 480.557093] scsi 7:0:0:0: Direct-Access Ext Hard Disk PQ: ...
5
votes
2answers
9k views

How to fix boot failure due to incorrect fstab?

It seems that I have added incorrect record to /etc/fstab: //servername/share /mnt/share cifs defaults,username=myuser 0 0 When I did mount -a, it asked user password to mount network ...
5
votes
3answers
252 views

Can I make the O/S drive READ ONLY and prevent metadata write back?

Sorry to ask a (probably) stupid question. I am a hardware designer struggling with provision of safe shutdown power to an embedded system. I am aware the Linux normally makes a heavy use of the ...
5
votes
3answers
822 views

As what user is an sshfs mounted folder being accessed?

I'm trying to do a network backup of a drive. There are two machines in this process. PC1: Distant machine with 2 hards sda and sdb sdb is the drive which needs backing up two users exist, root and ...