Questions tagged [mount]

mount is a command used to attach the file data structure of a device as a branch of the root tree.

1753 questions
50
votes
5 answers

Mounting nfs shares inside docker container

Does anyone know how to mount nfs share inside docker container with centos base image? I've tried this command: mount server:/dir /mount/point and got the next error: mount.nfs: rpc.statd is not running but is required for remote…
Anatoli
  • 889
  • 2
  • 15
  • 33
47
votes
7 answers

adb remount fails - mount: 'system' not in /proc/mounts

I tried all the commands and suggestions available in stackoverflow and online but none worked https://stackoverflow.com/a/13366444/1441666 https://stackoverflow.com/a/28018008 and many more but nothing works for me I am getting below error - None…
Nirali
  • 13,571
  • 6
  • 40
  • 53
47
votes
9 answers

A terminal command for a rooted Android to remount /System as read/write

I'm writing an android app that needs to copy a file to the "/system" partition at runtime. I've got the commands to run "su" and can successfully request SuperUser permissions and run commands as root. But I don't know how to make this app…
user496854
  • 6,461
  • 10
  • 47
  • 84
46
votes
17 answers

What does cifs_mount failed w/return code = -22 indicate

I am trying sudo mount -t cifs /// -o username=user@domain,password=**** /mnt/ error message: mount: wrong fs type, bad option, bad superblock on //server/share, missing codepage or other error In some…
Adi Pandit
  • 689
  • 1
  • 6
  • 10
45
votes
3 answers

Named routes in mounted rails engine

I'm making a small rails engine which I mount like this: mount BasicApp::Engine => "/app" Using this answer I have verified that all the routes in the engine are as the should be: However - when I (inside the engine) link to a named route (defined…
Markus
  • 2,526
  • 4
  • 28
  • 35
44
votes
9 answers

How to mount from command line like the Nautilus does?

On my Ubuntu linux box I can easily mount USB connected drives or CDROM clicking on devices icons that I can found on the Desktop. For example if I click on a USB connected drive icon the following things happen: a /media/LABEL directory is…
Andrea Francia
  • 9,737
  • 16
  • 56
  • 70
44
votes
4 answers

Mounting a NVME disk on AWS EC2

So I created i3.large with NVME disk on each nodes, here was my process : lsblk -> nvme0n1 (check if nvme isn't yet mounted) sudo mkfs.ext4 -E nodiscard /dev/nvme0n1 sudo mount -o discard /dev/nvme0n1 /mnt/my-data /dev/nvme0n1 /mnt/my-data ext4…
tricky
  • 1,413
  • 1
  • 15
  • 26
41
votes
3 answers

jest + enzyme, using mount(), document.getElementById() returns null on component which appear after _method call

I faced a problem with my jest+enzyme mount() testing. I am testing a function, which switches displaying components. Switch between components: when state.infoDisplayContent = 'mission' a missionControl component is mounted, when…
Dmytro Zhytomyrsky
  • 1,371
  • 2
  • 11
  • 17
40
votes
12 answers

Cannot delete device /dev/loop0

I unsafely removed a USB device that was attached to loop0 with losetup and could not delete nor detach loop0 afterwards. losetup -a shows /dev/loop0: [0005]:145606719 (/dev/sdb1) When I remount the device to /dev/sdb1, umount it and try losetup -d…
BiX
  • 637
  • 1
  • 7
  • 15
39
votes
5 answers

How to register FUSE filesystem type with mount(8) and fstab?

I've written a small FUSE-based filesystem and now the only part's missing is that I want to register it with fstab(5) to auto-mount it on system startup and/or manually mount it with just mount /srv/virtual-db. How can I achieve this? I know, I can…
drdaeman
  • 11,159
  • 7
  • 59
  • 104
37
votes
6 answers

Mounting VMDK disk image

I have a single vmware disk image file with vmdk extension I am trying to mount this and explore all of the partitions (including hidden ones). I've tried to follow several guides, such as :…
Without Me It Just Aweso
  • 4,593
  • 10
  • 35
  • 53
35
votes
6 answers

Google Colab - Google Drive can´t be mounted anymore - Browser Popup (Google Drive for Desktop) instead of Link in the code output for authorization

Since yesterday I have had the problem that I can no longer mount my Google account. Normally, when I run it, I get a link to authorize myself with. Now, when the code is executed, an extra browser window is opened where I should authorize myself.…
Tim
  • 463
  • 1
  • 4
  • 7
31
votes
5 answers

Mounting a windows share in Windows Subsystem for Linux

I'd like to mount a windows server from within WSL (Windows Subsystem for Linux). On Ubuntu (with unity interface) I can just type gvfs-mount smb://domain\;user@server/share and everything mounts just fine. If I try this in WSL then I get the…
David Hoffman
  • 2,205
  • 1
  • 16
  • 30
31
votes
8 answers

How can I remount my Android/system as read-write in a bash script using adb?

For info adb remount returns "remount failed: Operation not permitted" adb shell 'su -c mount -o rw,remount /system' returns unknown option -- o My device is rooted.
Andrew
  • 411
  • 1
  • 5
  • 6
30
votes
3 answers

Shared folder in VirtualBox for Apache

My host machine is ArchLinux and I'm running Apache in a CentOS guest. I have the vhost configuration and all the site code in a shared folder. To be able to put the vhost configuration in a shared folder I mounted the shared folder as…
mqsoh
  • 3,180
  • 2
  • 24
  • 26