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

Workaround for mounting a filesystem to a local directory without elevated privileges on Linux

I've got an ext3 filesystem sitting in a file, and I'd like to mount it to a local directory without sudo or any elevated permissions. Why? I'm creating a small filesystem for automated testing purposes. The automated tests run on machines I do not…
Chris Betti
  • 380
  • 3
  • 14
6
votes
4 answers

DRDB and NFS: is there any efficient way to make failover transparent for NFS

We are implementing DRDB + heartbeat with two servers to have a file system with failover. These servers exposes a NFS service for other servers Currently DRDB is working just fine, but when testing we switch from one server to another the mounted…
Gabriel Sosa
  • 1,220
  • 1
  • 13
  • 13
6
votes
2 answers

Use NET USE to mount a network drive as read only

I'm using the following code to mount a network drive in a script that configures desktop icons and favorites by copying them when the user logs into windows. NET USE W: \\Server\Files\IT\auto /user:"DOMAIN\username" "password" I have read the…
Kalamane
  • 281
  • 1
  • 4
  • 14
6
votes
7 answers

Linux tool/command to check file system performance

What is the simplest way to check read/write performance to a specific location (e.g. a mounted iSCSI device). I suspect I can't use hdparm because that's lower level. Am I right?
pufferfish
  • 2,830
  • 11
  • 39
  • 40
6
votes
2 answers

Make a filesystem accessible by all users

I have mounted a filesystem in a /mnt/storage but how do i make it accessible for all users not only root?
8k_of_power
  • 193
  • 2
  • 2
  • 5
6
votes
2 answers

How do I unmount a bound /proc in a "dead" chroot?

I built a debootstrap chroot and bound /proc to it, i.e. sudo mount -o bind /proc /proc When I found I no longer needed it, I quite stupidly rm -r 'd it. Of course, rm refused to remove /proc. Now umount says that /proc is in use and…
Brian
  • 303
  • 1
  • 4
  • 8
6
votes
4 answers

How do you specify static mount points for removable usb drives?

I have a bunch of usb ports and hubs. When you attach usb thumb drives, Linux assigns them to virtual block devices on a first-come first-serve basis. It creates sdd, sde, sdf, and so on, regardless of which port I plug the drives into. We copy…
Nick
  • 81
  • 1
  • 2
6
votes
3 answers

Auto mount network share

Hello i am trying to get my slave media center to mount a network drive at startup automatic. I have written this to my /etc/fstab/ \\192.168.1.2\root /media/data cifs username=doomstone,password=XXXX,auto,user 0 0 \\192.168.1.2\xbmc /media/xbmc…
Androme
  • 411
  • 2
  • 6
  • 12
6
votes
7 answers

Is it possible and how to mount an AIX disk into Linux?

I have a disk from a AIX server that I need to explore in order to recover some data (the server is down). Is it possible to mount AIX partitions on Linux? How?
Ghislain Leveque
  • 161
  • 1
  • 1
  • 2
5
votes
1 answer

Run ZFS as non-root

I'm running Debian 10 in a VM (using KVM) and I want to use ZFS as a non-root user. Here is what I did. I added this line to my sources.list file deb http://deb.debian.org/debian buster-backports main contrib non-free Here is my complete…
amrbcl
  • 53
  • 5
5
votes
3 answers

ZFS on Linux: Which mountpoint option when mounting manually per script?

I want to create a zpool with ZFS on Linux (7.13) on Debian Buster. The problem is that the pool will be created based on LUKS encrypted drives (not root, only external). These drives are decrypted and loaded during boot by a script which i created…
MelBourbon
  • 73
  • 5
5
votes
1 answer

Swapfile mount (/etc/fstab): "swap swap" or "none swap"

There seems to be conflicting information on how to mount a swapfile. swap swap: none swap: both: Both ways work. What is the official recommendation and how does each way affect swapping?
Gaia
  • 1,855
  • 5
  • 34
  • 60
5
votes
1 answer

mount says already mounted; umount says not mounted

My Linux server (Centos 7.5) is in a strange state with USB drives. When I try to mount a partition on a USB drive to a newly created mount point I get the error mount: /dev/sdd1 is already mounted or /mnt/foo busy. /mnt/foo is a newly created…
Robert Newton
  • 181
  • 1
  • 5
5
votes
1 answer

Access another process's mount namespace

Is there a way to inspect the files and directories of another mount namespace? setns(2) syscall appears to be able to move a thread to another namespace, but if this functionality is not already built in to a program (a shell, fileserver, ..), it…
Gima
  • 153
  • 6
5
votes
1 answer

Linux: same device mounted on differences mount points

I have a system with following /etc/mtab: /dev/disk/by-label/foobar /etc/somefile ext4 rw,relatime,data=ordered 0 0 /dev/disk/by-label/foobar /var/lib/somedir ext4 rw,relatime,data=ordered 0 0 /dev/disk/by-label/foobar /mnt/foobar ext4…