Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mount]

Attaches a file system to a specified point in an existing filesystem hierarchy

0
votes
0answers
7 views

Cannot create directories in mounted external drive although in the mountpoint

I don't know what happened, but I all of a sudden cannot write to my external drive anymore. It first said that $sudo touch Data_Files touch: cannot touch 'Data_Files': Read-only file system When I ...
1
vote
1answer
13 views

How do I control whether ZFS arrays show in the devices pane in Ubuntu?

I am using Ubuntu Bionic 18.04 with XFCE as my DE. I have mounted a zfs array 'big-tank' to /media/big-tank, however, it does not show up in the devices pane. Additionally, the leftover space from a ...
0
votes
1answer
34 views

Is passwd file always in /etc/passwd?

So, I'm writing a script that needs to modify the such a file but from the partition of a non booted OS (for example from a livCD to a OS installed on another drive) and I was wondering if, given I ...
2
votes
2answers
40 views

How to remount special device proc which does not exist?

I did this: root# mkdir /tmp/test && mount --bind /tmp/test/ /proc/ root# rm -rf /tmp/test root# mount -t proc proc /proc But then I ran into this: mount: special device proc does not ...
1
vote
2answers
31 views

Is it possible for mount(8) to override systemd MountFlags?

I am working on Debian stretch/4.14.75 and have been using my own automounter (udev-hook + shell-script) for years. Since it breaks recently due to the namespace problem that the mounted directory is ...
0
votes
0answers
11 views

How to Mount Linux(RHEL 7.5) Drive in Windows OS

I have faced a problem of server migration from RHEL 6.x to 7.5. One of the important function is I have to mount an RHEL file (eg./opt/MyFile) in my PC.(windows 10) The problem is... In RHEL 6.x, I ...
7
votes
4answers
2k views

Why does one need a loop device at all?

I previously used to create image files using dd, set up a filesystem on them using mkfsand mount them to access them as mounted partitions. Later on, I have seen on the internet that many examples ...
2
votes
2answers
32 views

Swapping a mounted drive between machines - is it possible?

Let's say I have a storage device called A. I install A into my machine M1 (which contains a drive called B which is a unix boot drive containing the operating system). I then boot up M1 and mount ...
0
votes
0answers
28 views

Error during mounting an nfs directory [on hold]

every time I try to mount a directory, on one of my linux boxes I get the below error, and it will never mount anything. can anyone let me know how I can fix this error? # mount -o nolock 192.168....
1
vote
0answers
17 views

Mounting nested ZFS filesystems exported via NFS

I have a linux (ubuntu) server with a zfs pool containing nested fileystem. E.g.: zfs_pool/root_fs/fs1 zfs_pool/root_fs/fs2 zfs_pool/root_fs/fs3 I have enabled NFS sharing on the root filesystem (...
0
votes
0answers
20 views

Suspending (to disk or ram) changes USB drive device file

When the system is suspended (to ram or disk), the USB drive (/dev/sdb) is "moved" to /dev/sdc. When it is mounted, it stops working. I have root on this device so I can't work with system. (I only ...
0
votes
0answers
13 views

Undo Magic SysRq “remount-ro”

Is there a way to undo an accidental Magic SysRq "remount-ro"? On my notebook keyboard, this combination happens all too often... I tried to remount the roor partition with mount -o remount,rw /dev/...
0
votes
1answer
24 views

What's the difference between direct-IO (“losetup --direct-io”) and “mount -o sync” for loop-devices?

I understand that without use of any flags, there are two caches involved with loop-devices. Once a page cache when writing to the file-system within the loop-device, and then again to the page cache ...
1
vote
0answers
14 views

Mounted CIFS directory by web shell not visible in the system shell

I use PHP shell_exec to run the command echo password | sudo -S mount.cifs //192.168.1.15/Share /share -o username=root,password=password HTTPD user is granted sudo-pivilege, the command ran ...
0
votes
1answer
19 views

Trouble with executing a bash with sudo privileges

I wrote a script that prompts me in dmenu the availible drives to mount or unmount and I added to the with visudo the following line ALL ALL = NOPASSWD: /path/to/usb-mount and the script basically ...
0
votes
1answer
35 views

zerofree won't open filesystem [closed]

I am trying to run zerofree on virtualbox .vdi disk. I attached the vdi disk to the storage to another virtual machine - debian desktop. I started the machine and mounted the hard disk with this ...
0
votes
1answer
24 views

Mount command finishes successully, but disk is not mounted

We're trying to mount a disk, but even though the mount command finishes successfully, the disk isn't mounted bart@test:/$ sudo mount -v /data mount: /dev/sdc1 mounted on /data. bart@test:/$ df -h ...
2
votes
0answers
19 views

Remove spaces from Auto-mount mountpoint

Is it possible to remove spaces from auto-mount mount point label? For example: If insert a thumb drive that has the name "Device Name With Spaces" it should auto-mount to /media/...
0
votes
0answers
19 views

Cannot touch “/static/a”: Read-only file system

I want to edit /static/volumio/app/plugins/music_service/mpd/mpd.config.tmpl file but when I try, It says read-only file system. On mount command: /dev/loop0 on /static type squashfs (ro,relatime) ...
2
votes
1answer
36 views

What code prevents mount namespace loops? In a more complex case involving mount propagation

Background information The following commands return an error: # touch /tmp/a # mount --bind /proc/self/ns/mnt /tmp/a mount: /tmp/a: wrong fs type, bad option, bad superblock on /proc/self/ns/mnt, ...
2
votes
1answer
57 views

Prevent Mount under Destination

I want to prevent all users (including root) from mounting anything under a specific destination (e.g. /tmp) by SELinux or any other Linux tool, is this possible? And how would it be done? Regarding ...
0
votes
0answers
18 views

Mount “Visible” to PHP but not to “System”

I have a mount bash script. I can run the script from CL fine. It mounts as expected. I call this same script from PHP using exec() and get no errors. www-data has sudo rights listed for this ...
0
votes
0answers
27 views

Running Commandline Scripts Through PHP

I am having difficulties running bash scripts with php's exec() and wanted to get some suggestions. I would love to be more flexible in this area because I can see a lot of potential for my small ...
0
votes
1answer
32 views

autofs indirect mount in CentOS 7

I am using CentOS7. I have tried to test "autofs". I have created 2 centos servers as cent_ldap and cent_client. I have configured cent_client to use ldap authentication successfully. In cent_ldap I ...
0
votes
2answers
37 views

Can not access manually mounted hard drive from command line

I am trying to manually install a USB hard drive from the command line on my Raspberry Pi. I am following the usual steps: Create a directory in /media, mount the drive,... However I can not access ...
0
votes
0answers
44 views

can changing permissions cause input/output errors

Best of knowledge can screwing with permissions cause input/ output errors? permissions for users home directory were changed to ftpdsamba:root (root is the group owner of home directory /home/...
0
votes
0answers
27 views

mount.cifs error(-13) - permissons denied

I am trying to learn more about Samba shares with CentOS 7, and while I can get smbclient connections to work with my server and client, I'm having trouble with mounting the SMB share on the client ...
-1
votes
0answers
17 views

SAMBA share not mounting via nautilus (Centos 7)

I'm not sure if this is a great place to ask, but: I am able to mount a SAMBA share manually via commandline using mount.cifs, but when I try to mount via nautilus, I get a very quick "connection ...
2
votes
1answer
27 views

What happens to the mount namespace of an interrupted process

I am experimenting with mount namespaces. I have a python script, which creates a bind mount, after that a mount namespace with the unshare system call. I print the PID, and pause the script. I can ...
1
vote
1answer
34 views

Fedora: cp: Invalid argument while coping a file named with Chinese characters to a vfat filesystem

I want to use cp to copy a file named with Chinese characters to my fat32 usb stick. This is done using a script, so using nautilus is not a solution for me. I do not want to rename the files, too. I ...
0
votes
0answers
74 views

mount error(2): No such file or directory - CIFS - Rasperry Pi

I am playing around with a share on my NAS being unable to mount a SMB share. Based on the ubuntu smb documentation the command for mounting a SMB / CIFS should be as following: sudo mount -t cifs -o ...
0
votes
2answers
30 views

How can I pin a mount folder to a specific serial number, so that the same disk gets mounted in the same place every-time?

I have many hard-disks that need to be mounted on restarts some have have NTFS file-systems other have EXT4, some are USB and some are SATA, some have the same label names, and they don't get mounted ...
0
votes
1answer
21 views

can not set user write permissions to file in SMB mounted directory [duplicate]

I have mounted a Windows 10 directory so I can edit some files on my Windownz machine. sudo mount -t cifds //W10/Users ~/public/ -o username=bobby When checking the directories they all have the ...
1
vote
2answers
48 views

Why do I have mounted partitions that do not appear in /etc/fstab?

My /etc/fstab has only two lines: root partition and debugfs, while /etc/mtab has much more, in addition to these two, like (sysfs, proc, udev, devpts, tmpfs, cgroup, ...). Where do the additional ...
1
vote
2answers
27 views

Mount directories after taking input from 2 files

I would like to run a script which will take input from two files in order to mount multiple directories. Goal is: #mount 'line 1 from file 1' 'line 1 from file 2' #mount 'line 2 from file 1' 'line ...
0
votes
2answers
43 views

NFS mount a directory from server node to client node

In one of my assignments on CentOS 7, I am trying to NFS mount /home directory from management node to client node. I have given the commands I have tried below. I tried to disable firewall, but it'...
0
votes
1answer
29 views

Cryptmount-setup is not working

When I tried to set up encryption using cryptmount-setup, it just returns without any feedback. It did not even created the crypto.fs file. I ran the commands: cryptmount nextcloud_data and cryptmount ...
2
votes
2answers
81 views

ext4-fs: bad geometry: block count exceeds size of device

I have 2TB disk that I use in notebook. This disk was formatted as ext4 and It works fine in notebook, but when I attach it to desktop (via sata-usb adapter), I am unable to mount it due to following ...
1
vote
1answer
32 views

Is devtmpfs special with respect to namespaces? a permissions problem

I'm wondering if devtmpfs is special with respect to namespaces. Here's my system info (using Vagrant for testing) vagrant@ubuntu-xenial:~/test$ uname -a Linux ubuntu-xenial 4.4.0-135-generic #161-...
1
vote
1answer
28 views

Mounting USB subdirectory for NFS export

Ubuntu 18.04.1 LTS I am having trouble exporting a directory from a USB drive. I have a number of exports similarly configured as to permissions and they are just fine. Here is the error: mount --...
0
votes
1answer
23 views

How to detect RO FS when Linux can't [closed]

So I've got several disks on several servers who lost their disks due to a brief network delay. according to mount and /proc/mounts, the disks are rw. When I sudo or try to access a faulty mount, I ...
6
votes
3answers
269 views

With the command pv it is possible to clone a drive, how do I mount it? [duplicate]

I was able to backup a drive using the following command. pv -EE /dev/sda > disk-image.img This is all well and good, but now I have no way of seeing the files unless I use this command pv disk-...
0
votes
2answers
41 views

Comparing mounted-mount points with fstab

I took the sample script, below, off the net to check and validate mount points of system that is already up and running. The problem: I want to compare existing mounted-mount points which are not ...
0
votes
1answer
25 views

“cp: cannot create regular file” on a VFAT formatted external USB flash drive

I have an external USB drive which is formatted in FAT32. That's the output of the fdisk -l command: /dev/sdb1 * 56 15728639 15728584 7.5G c W95 FAT32 (LBA) I have the following entry in ...
0
votes
0answers
58 views

Mounting exfat SD card on Linux

I tried to mout an exfat formatted SD card following this https://www.techwalla.com/articles/how-to-mount-an-sd-card-in-linux manual. sudo fdisk -l gives me for the SD card: The backup GPT table is ...
3
votes
3answers
87 views

Why can't you rename (or move) a mount point?

I can move the parent directory of a mount point as follows: $ mkdir -p f/mnt $ bindfs --no-allow-other f/mnt f/mnt $ mv f g $ But I cannot rename the mount point itself: $ mv g/mnt g/m mv: cannot ...
0
votes
1answer
26 views

Unable to mount read an write partitions

I use for a half and a year Linux with 6 HDD with NTFS format and modify my fstab to can read and write, also I have ntfs-3g installed. UUID=480a3f32-e304-49b0-b322-4964349fd941 / ...
1
vote
1answer
30 views

using VFS to do dynamic mounting

I have what may sound like a strange situation. I have a mount point for a directory containing a variety of log files. From time to time it is necessary to unmount this directory and remount it in ...
21
votes
3answers
1k views

What is the difference between mount and mount -o loop

I have a iso file named ubuntu.iso. I can mount it with the command: mount ubuntu.iso /mnt. After mounting it, I can see it from the outout of the command df -h: /dev/loop0 825M 825M 0 100% ...
1
vote
0answers
24 views

File on SD card does not exists after reboot

I have a weired scenario on a Production unit. There is a SD card on the unit. I can create a file in the SD card and it shows that the newly created file exists there. I can do read/write operation ...