Questions tagged [mount]

Mounting is the concept of attaching a file system to a computer for access.

A mount is the process of attaching a file system to a computer so that it can be accessed. Depending on the operating system, a mount could be local or remote, via a network, read-only or read-write, or many other options.

1212 questions
7
votes
3 answers

is there any advantage mounting an LV by UUID instead of by path?

I know I can specify mounts in fstab by either putting their path (like /dev/sda1 or /dev/mapper/myvg-logicalVolume1) or by fs label (LABEL=root) or by UUID (UUID=1234-5678-...). I see a clear advantage in terms of reliability using the UUID for…
Carlos Campderrós
  • 773
  • 2
  • 6
  • 17
7
votes
2 answers

Create directory before binding via /etc/fstab

I have this line in my /etc/fstab: /mnt/tmp /tmp none bind,nobootwait On EC2 however, /mnt may be lost during restarts causing the mount to fail due to non existent /mnt/tmp. So is there a way to explicitly create this directory?
sfussenegger
  • 8,602
  • 1
  • 16
  • 7
7
votes
1 answer

Make /home /tmp noexec nodev without a separate patition

I need to change some mount options for parts of the root filesystem, such as /tmp /var and /home (add nodev,nosuid and quota), but I haven't ability to make a separate partition and I have not enough RAM to mount /tmp as tmpfs. I've tried mount -o…
gordon-quad
  • 107
  • 1
  • 7
7
votes
2 answers

How do I do a bind mount over a symlink?

I have a symlink: /test Which is pointing at a directory: /source I want to do a bind mount to mount /new over /test mount -o bind /new /test However this binds /new over /source (with /test pointing at /source - showing the files from /new, but…
engie
  • 173
  • 1
  • 3
7
votes
3 answers

Can rm command complete in a bash script before all files have been removed?

I wrote a simple bash script to backup certain files daily to a backup mount and keep the last 3 days of backups. It's obviously too simple, as I'm occasionally getting odd behaviour that could be explained by the first mv being excecuted before…
flash
  • 183
  • 1
  • 5
7
votes
2 answers

Denied root access to user mounted FUSE file system

Let me start with giving you the details of my setup: I am running Fedora 13 on an x86_64 arch. I have mounted a remote directory using sshfs: jim@localsite $ sshfs jim@remotesite:/home/jim /home/jim/remotemount Now if su to root and try to read…
Mansour
  • 499
  • 2
  • 7
  • 14
7
votes
3 answers

Mounting Linux user home directories on CIFS server

I was wondering about peoples experiences with mounting users home directories from an Active Directory authenticated CIFS server under Linux. Preferably the mount would be accomplished upon login instead of mounting every home directory on boot…
bluehavana
  • 131
  • 1
  • 6
7
votes
3 answers

Maximum numbers for file system mounts in Linux

Is there maximum numbers for file system mounts that Linux can handle? Is there differences between distros?
Jim67
6
votes
2 answers

ZFS - Use a file as l2arc cache

I have a CentOS server that is using zfs to manage a big, slow, network attached volume. We read quite a lot from this volume, hence I would like to optimize the read performances. The idea is clearly a L2ARC cache. Unfortunately I only have a…
Siscia
  • 173
  • 3
6
votes
2 answers

‘noexec’ option on NTFS under Windows?

Is there equivalent filesystem option on Windows like 'noexec' mount option on Linux? Is it the same if I set "Read" permission, but unset "Read & Execute" permisson on root directory (whole drive)? For the local users, but also for the LAn users…
igustin
  • 365
  • 2
  • 6
6
votes
2 answers

Prevent writing to unmounted sshfs mount point

Assuming I have a folder /mnt/mountpoint that I use as a mountpoint for some sshfs-mounted directory: sshfs user@host /mnt/mountpoint Now, I want to prevent applications to write to /mnt/mountpoint while it is unmounted. Questions I found here…
Slizzered
  • 814
  • 6
  • 16
6
votes
1 answer

unmounted logical volume is "busy"?

I'm trying to shrink an ext4 filesystem on a CentOS 6 server. I did a lazy unmount of the filesystem while I waited for some processes to finish running. They've all finished running but I can't seem to do anything with the filesystem. How can I…
Jayen
  • 1,857
  • 4
  • 16
  • 28
6
votes
3 answers

How to btrfs check a root partition

I'm sure the reason I'm having a brain fart is because it's late, but how can I go about performing a btrfs check on the root partition? The device needs to be unmounted, which can't happen because it's the root partition... Thanks
Dave
  • 61
  • 1
  • 2
6
votes
1 answer

udev rule not applied on boot for mounted disk

I'm trying to persist a readahead rule on a mounted drive to use with mongodb. The mount is persisted using /etc/fstab and that works as expected. I have added a udev rule ACTION=="add", KERNEL=="sdb", ATTR{bdi/read_ahead_kb}="16"in…
datacarl
  • 161
  • 2
6
votes
1 answer

Loop back mount a VMDK flat image on a Linux Box

I am trying to loop mount a VMDK flat image generated by VMware fusion. The VMDK file has the -flat extension. I am trying to use kpartx kpartx -av /path/to /my/vmdk but I get llseek error device-mapper: resume ioctl on loop0p1 failed: invalid…
user301916
  • 163
  • 1
  • 1
  • 5