mount command, allows mounting of a file system at a specified point in the file hierarchy.
26
votes
7answers
1k views
Why does mount require root privileges?
Why does Linux require that a user be root/using sudo/specifically authorized per mount in order to mount something? It seems like the decision as to whether to allow a user to mount something should ...
24
votes
6answers
11k views
Different linux distros sharing the same /home folder?
what is the best way to share the same /home directories between different linux distribution?
I mean, I want to have both , say, Fedora and Arch, and I want to find my files at home no matter which ...
19
votes
6answers
17k views
Mount Google Drive in Linux?
Now that Google Drive is available, how do we mount it to a Linux filesystem? Similar solutions exist for Amazon S3 and Rackspace Cloud Files.
18
votes
2answers
879 views
Where do the files go if you mount a drive to a folder that already contains files?
I just accidentally mounted a new drive to a folder that already contained files. I don't care about them and have them somewhere else, but that folder appears empty now. I'm curious what happened ...
18
votes
2answers
3k views
What mount points exist on a typical Linux system?
I have 2 questions.
During Linux installation we specify memory space for 2 mount points - root and swap. Are there any other mount points created without the users notice?
Is this statement ...
18
votes
6answers
31k views
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 ...
17
votes
2answers
2k views
Mount an iso without root access?
Is it possible for a user without root access to mount an arbitrary iso?
If so how?
14
votes
2answers
688 views
What is a “loop device” when mounting?
I am doing a mounting of 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. So I have two questions:
...
13
votes
5answers
2k views
What's the most “correct” mount point for a permanent NTFS partition?
I have an NTFS partition (containing a Windows installation from which I dual boot) that I would like to permanently mount from my Linux installation. Problem is, I can't figure out what the ...
12
votes
2answers
297 views
Can the same ext4 disk be mounted from two hosts, one readonly?
I know that mounting the same disk with an ext4 filesystem from two different servers (it's an iSCSI vloume) will likely corrupt data on the disk. My question is will it make any difference if one of ...
11
votes
2answers
1k views
understanding “mount” as a concept in the OS
I want to understand what mounting is. It is used in different contexts and situations and I can't find resources which:
Describe the mount concept
Explain the actions taken by the ...
10
votes
9answers
884 views
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 ...
9
votes
2answers
350 views
What are these commands for?
Yesterday I had to install a Windows with its Grub override.
Well, it's not the first time I had to fix Grub, so I used LiveCD, mounted the root partition (I don't have boot, just / and home) and ran ...
8
votes
1answer
8k views
How do I mount an `img` created with /bin/dd of a hard drive?
I used dd to backup a 80GB drive
dd if=/dev/sdb of=~/sdb.img
Now I need to access some files on that drive, but I don't want to copy the ".img" back over the drive.
mount ~/sdb.img /mnt/sdb ...
8
votes
2answers
8k views
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 ...
8
votes
2answers
416 views
Prevent disk renumbering on reboot in OSX
I have 3 physical drives in my Mac Pro with OSX 10.6.4. Occasionally after rebooting the machine, the disk numbering changes such that the /dev/disk# does not reference the same drive as it did before ...
7
votes
2answers
4k views
Does mount always require root privileges?
I was under the impression that any sort of call to mount requires root privileges.
But recently I was told "You should instead create appropriate entries in /etc/fstab so that the filesystems can be ...
7
votes
3answers
253 views
Automatizing the sequence of mounting commands
When I connect a device (tablet, camera, flash drive, external harddrive) to my laptop with Linux I often type the following sequence of commands.
$ ls /dev/sd*
Let's say that my device is /dev/sdc
...
7
votes
5answers
369 views
Mounting a partition into a 'sandbox'
I'm wondering if this is possible. I want to set up a linux system that mounts / remote linux machine to / on the local machine. However, I want all changes on the local machine to be saved to ram so ...
7
votes
1answer
2k views
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 ...
7
votes
1answer
876 views
Hard disk labels
How do I add a label to a partition on a disk, and how do I then mount it by label (manually and via fstab)?
note: this is an external hard drive
7
votes
4answers
2k views
Serve files over USB
I would like to be able to serve a section of my box's file system over USB to another computer. For example, if the files are on box A and I am reading from box B, then B would mount A, see those ...
7
votes
3answers
5k views
Is it possible to mount a gzip compressed dd image on the fly?
I like create an image backup for the first time I'm backing up a system. After this first time I use rsync to do incremental backups.
My usual image backup is as follows:
Mount and zero out the ...
7
votes
2answers
1k views
How can I determine the fs type of my current working directory?
I need a platform-independent and lightweight way of detecting the mount type of my CWD. Specifically, I need to determine if my CWD is in an SSHFS, NFS, CIFS, SMB, or local block store mount.
I need ...
6
votes
1answer
826 views
When was `relatime` made the default?
What is the first Linux kernel release to set relatime as the default mount option?
6
votes
1answer
381 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
3answers
1k views
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 ...
6
votes
1answer
229 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
3answers
1k 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
4answers
465 views
Preferred mount points for internal HDDs
I am relatively new to Linux and I apologise if this is a silly question. I read the Linux FS Hierarchy document but it didn't answer my question.
I would like to know if there is a typical drive ...
6
votes
1answer
1k 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 ...
5
votes
3answers
395 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
2answers
2k views
How to umount a USB drive?
I want to know how to umount my USB drive via command line. I am using Ubuntu 12.04 LTS 32-bit.
5
votes
3answers
541 views
Questions about mount and device
Please bear with my following questions.
What is the difference between /dev,
/media and /mnt? Following is what I
have found from internet but I still
have little idea:
/dev this folder ...
5
votes
3answers
285 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 ...
5
votes
3answers
517 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 ...
5
votes
4answers
2k 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
3answers
554 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 ...
5
votes
2answers
127 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 ...
5
votes
1answer
401 views
Partition not mounting from fstab
I have mounted a partition and add it to fstab file and then rebooted but I see that the partition is not mounted although it was added to fstab.
What is wrong, and how can I solve it?
fstab line:
...
5
votes
3answers
2k views
Mount USB (FAT) in Gentoo
Can somebody show me how to make Gentoo mount my USB? This is what I got when trying mount /dev/sdb1 /mnt:
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage ...
5
votes
2answers
1k views
How to mount a cryptsetup container just with `mount`?
I created an encrypted container via
#!/bin/bash
dd if=/dev/zero of=$1 bs=1 count=0 seek=$2
MAPPER=$(mktemp -up /dev/mapper)
LOOPDEV=$(losetup --find --show $1)
cryptsetup luksFormat $LOOPDEV
...
5
votes
1answer
126 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 ...
5
votes
2answers
541 views
Files copied to flashdrive only on unmount
I use Debian wheezy with KDE4. Most of the time when I copy something to a flashdrive, the write does not actually take place until I unmount. This even happens with relatively large amounts of data ...
5
votes
2answers
3k 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 ...
5
votes
2answers
839 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 ...
5
votes
2answers
1k views
Mount ubuntu one or similar web storage services without their clients
I think the title is self explanatory. I want to mount a folder to sync with my Ubuntu One account. The only restriction is that I dont want to use the client provided. I use Arch Linux if it counts. ...
5
votes
1answer
1k views
Is it possible to run a webdav fuse client with no root access?
I have seen examples showing how to use davfs2 under linux, but each has involved one of these things:
Running mount as root
Adding an entry to /etc/fstab
Running mount.davfs setuid, which, alas, ...
5
votes
2answers
3k views
How to re-mount a USB stick after unmounting from Nautilus without disconnecting it?
I find that in order to re-mount a USB stick, I have to physically disconnect it, and then re-connect it. How can I do this without such tiring physical action?
5
votes
4answers
142 views
Check if folder is a mounted remote filesystem
What is the best way (reliable, portable, etc.) to check if a given folder is on a mounted remote (nfs) filesystem within a shell script?
I am looking for a command that would look like:
...
