Stack Exchange Network

Stack Exchange network consists of 175 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

-1
votes
1answer
45 views

Using sudo: file system with the 'nosuid' option

In this Linux playground I create a new user, add it to the sudo group and try to use sudo without success. I get the error message: sudo: effective uid is not 0, is /user/bin/sudo on a file system ...
0
votes
2answers
19 views

Is directory on external hard drive?

I am wondering how to check if a directory (on my RaspberryPi) is on an external drive or not. I think I mounted my WD MyPassport correctly, and was able to write to it via /media/pi/MyPassport. ...
0
votes
2answers
30 views

Set hidepid=1 persistently at boot

I'd like my system's /proc directory to be mounted with the hidepid=1 option. I know that once the system is already up, I can do that with sudo mount /proc -o remount,hidepid=1. How can I make /proc ...
0
votes
1answer
26 views

umount filesystem when exit from chroot

Is there a way to automatically unmount a filesystem when doing 'exit' command from a chroot? $ mount --bind /proc proc $ chroot . ~ exit #now in chroot and call exit. $ # back to main device. I ...
0
votes
0answers
22 views

Are bind mounts just another mount of the same filesystem?

I'm reading What is a bind mount? I tried mount --bind -o ro / /mnt, then I get the folowing two lines in /proc/self/mountinfo: 23 0 0:21 /ARCHLINUX / rw,relatime shared:1 - btrfs /dev/sda rw,...
0
votes
1answer
17 views

After re-connecting hard disk, terminal commands stop working

The current working directors is, e.g. /media/username/ExtHDD/. When disconnecting and re-connecting that HDD, commands such as ls do not work properly anymore. $ -????????? ? ? ? ? ...
0
votes
0answers
21 views

Altered fstab - no longer able to SSH but ping responds [on hold]

I altered /etc/fstab in a remote machine that I access via ssh. File looks like following: " ################################################################################ # # /etc/fstab # # # ...
1
vote
2answers
71 views

Is it accurate to say that the Linux partition is “mounted” to the “/” directory?

Say we have a partition called /dev/sda2, in order to use this partition, we have to mount it to some directory, for example we can mount it to the /mnt/sda2 directory. Now say that Linux is ...
0
votes
0answers
16 views

Boot Process with LILO bootloader

I just want know what happens in the background when these commands are executed mount /dev/root / ro mount /dev/sdax / ro How does it find that / is mounted on sdax?
2
votes
1answer
41 views

Mounting is slow after 4000 mounts

I have a need to create about 10,000 total bind mounts for various chroots. After about 3000-4000 mounts, it slows down significantly from 100/s to about 5-10/s. I'm assuming it's hitting some weird ...
0
votes
0answers
9 views

About the use of sshfs between multiple servers

For now, I can use ssh -p 2222 username@ip1 to login in a jumpserver, which will have an option to login in target server with ip2 by 1) Enter ID directly login or enter part IP, Hostname, Comment ...
0
votes
1answer
34 views

Why mount command works only with root [duplicate]

When I type mount <device> <folder> I get message "mount: only root can do that", how so? if mount has -rwsr-xr-x. permissions?
-1
votes
2answers
33 views

How to remount a device in read-write mode, which is already mounted read-only?

I am thinking to do such thing, but I am not aware for such conditions. So, I wanted to know what will happen if I remount.
-1
votes
0answers
14 views

Mount overlayfs on top of another overlayfs or change existing upperdir on the fly

I have this crazy idea of running a live linux distro from an USB stick. The stick has 4 partitions: boot, EFI, rootfs (contains squashfs image) and a CoW partition which is mounted to root (/) during ...
1
vote
1answer
32 views

Can be the journal path on a filesystem other than /?

I would like to store the default journal directory /var/log/journal/ on a mounted device, but I am not sure if I can do it due to the fact that journal is an important service which may already run ...
0
votes
0answers
9 views

Readonly flag after error: why does Kernel detect an error?

I'm debugging a C++ application running on Linux Embedded: uname -r: 4.14.40 The application is downloading a file on an external flash SD card: mount: sd-path type vfat (rw,relatime,fmask=0022,...
0
votes
0answers
23 views

Using rm --one-file-system to only delete files on the local filesystem

I have a FUSE mount located in /media/writable, however, sometimes this FUSE mount disconnects, but some programs will still attempt to write to /media/writable. When I restart the FUSE mount service,...
1
vote
1answer
18 views

How to automatically mount at boot? [duplicate]

I have a file, called "some.img", created with fallocate, that has a filesystem on it. I can mount the img file using mount -o loop some.img /media/where, and I see the filesystem. When I reboot, ...
0
votes
1answer
23 views

Bash Scripting: How to check for active sshfs mount in dir?

If currently have this code: 0130: moba(){ 0131: if [ -z "$(ls -A /home/me/Documents/A/B)" ]; then 0132: echo "Empty" 0133: sshfs me@domain:/home/C/D /home/me/Documents/A/B/ 0134: ...
0
votes
0answers
22 views

Home directory locked after reboot on Ubuntu 18.04 [migrated]

After rebooting my Ubuntu 18.04.2 LTS, my home directory disappeared and I only see Access-Your-Private-Data.desktop and README.txt. ecryptfs-recover-private actually recovered partially, and I am ...
0
votes
0answers
30 views

How to pass a whole code block to unshare?

I want to pass an entire code block to unshare, but I don't see an option to pass a function directly. I currently have a solution with two files: File 1: run_with_bash_as_default_shell.sh sudo ...
0
votes
0answers
24 views

AutoFS for mouting Samba share with Kerberos Ticket

I've setup a Samba AD on Debian Stretch. Another stretch client node is able to authenticate using AD credentials. The domain user has limited rights on the client node, meaning he can't mount ...
-1
votes
1answer
39 views

How can I find what uses the space in a LV(logical volume)?

The logical volume(aka LV), centos-home is created automatically when installing CentOS 7 by default, but I didn't use it manually. Now, I have mounted an empty directory, work to centos-home. /home/...
1
vote
0answers
60 views

Rescueing Microsoft reserved partition

A few year ago I built myself a NAS. It has a 320GB HDD for ubuntu OS and a 2TB HDD for files. I mounted de 2TB disk and shared it with samba over my network. Now I have build a HTPC like system and ...
-1
votes
0answers
46 views

Trying to mount/recover an old RAID HDD from broken RAID

I'm running Ubuntu 16.04.4 LTS and am trying to recover an old drive from my NAS that died. A Shuttle Omninas KD20 running RAID0. The other 3TB drive died completely. This 2TB disk is the working one. ...
0
votes
1answer
19 views

Mount cifs with Write access for group

I am trying to mount a cifs on RedHat 6.10 with below in /etc/fstab: //chq-qaedinas.chq.ei/DataHistory /DataHistory cifs auto,credentials=/etc/samba/user,noexec,umask=0002,uid=20588,gid=50011 0 0 ...
1
vote
0answers
40 views

Is that true we can only bind mount directory to directory and file to file?

From http://man7.org/linux/man-pages/man2/mount.2.html mount() attaches the filesystem specified by source (which is often a pathname referring to a device, but can also be the pathname of a ...
1
vote
1answer
24 views

Expose mount from LXC to host

I am working with a proprietary POSIX client to mount a network directory. The packages provided by the vendor are horrible (e.g., post-install that does ln -sf /usr/bin/fusermount?!), so I'm trying ...
4
votes
1answer
101 views

Group permissions for root not working in /tmp

I experience a strange behaviour in my /tmp directory. Although a user belong to a group has permissions to read/write a file, he cannot do so. In this example, I create a new file /tmp/test.txt as ...
-1
votes
0answers
17 views

How to use a CentOS HDD on another CentOS PC

My CentOS 5 server crashed (for unknown reasons).  I have the hard drive connected with USB to my laptop, which runs CentOS 7.  How do I mount this drive so that I can extract some of my important ...
0
votes
1answer
85 views

mount -t cifs fails with permission denied

I have a Windows 10 share for a particular user. Then I have Debian:stretch in a docker container. I try to mount a shared folder like this: root@b9cda19f784c:~# mount -t cifs -v -o username=...
0
votes
1answer
35 views

Default file system when mounting a partition

When I attach an SD card with multiple partitions to a Debian computer for example and use the mount command to mount a partition to the file system without specifying the file system type, which file ...
-1
votes
2answers
30 views

Data recovery after dd on a sda partition

I had installed opensuse in UEFI mode in my computer but having a legacy Windows so it did not appear in boot menu. Following a weird tutorial on the internet I dd the Windows partition of my sda. I ...
0
votes
1answer
19 views

When boot into a live Lubuntu from a bootable flash drive, what filesystems on the disk are mounted automatically?

Assume a computer has Lubuntu installed on its disk. Booting into a live Lubuntu from a bootable flash drive is often a way to access filesystems on the disk that are required to be not mounted. So I ...
0
votes
1answer
43 views

How can you umount `/home`?

When log in Lubuntu, I can't $ sudo umount /home umount: /home: target is busy. where /home itself is a mount point of a filesystem. How can you umount /home? / can't be umounted, because OS is ...
-1
votes
0answers
17 views

How can I move `/home` to LV `home` and mount LV `home` at `/home`?

Currently / and /home are both in LV root. I would like to move /home to LV home and mount LV home at /home. How shall I do it? Thanks. $ sudo lvs LV VG Attr LSize Pool Origin ...
2
votes
1answer
38 views

Can I umount or remount a filesystem, when some process has its working or root directory on it?

If some process has its current working directory or root directory on a mounted filesystem, can I umount/remount that filesystem? If some process has a read/write file descriptor or read/write/...
0
votes
0answers
27 views

mount failing when mounting ewf1 as a loop device

I am trying to mount an EWF image on Debian. From the original E01 format, I used ewfmount to mount it and it worked fine. Now, I need to mount the ewf1 file, and it claims that I do not have the ...
-1
votes
0answers
27 views

Network user access to folder

I mount a folder on a NAS file server on my ubuntu machine using cifs and the NAS account and it mounts the server folder and I have full access to it. Now I run a program which uses a folder on the ...
2
votes
0answers
30 views

Why duplicate mount --bind cause empty /dev/pts?

$ ls /dev/pts 0 1 ptmx $ sudo mount --bind /dev /mnt $ ls /dev/pts 0 1 ptmx $ sudo mount --bind /dev /mnt $ ls /dev/pts $ I run on Debian 9 with Linux 4.14.13 kernel.
0
votes
2answers
43 views

What is the default behaviour when we mount filesystem with `nodev` option?

I read this in "RH413 Red Hat Server Hardening" course that we mount the filesystems with nodev which then does not allow the special files/devices to be mounted from it. However, it did not show an ...
0
votes
0answers
7 views

Register Active Directory users with system

I have connected my system to a Windows (Active Directory) Domain, and everything works for the most part. Additionally, I have connected a Windows drive using NTFS-3G and its User Mapping feature to ...
0
votes
0answers
17 views

Manually set MTD NAND oob (NAND oob geometry problem)

When mounting yaffs dmesg outputs: yaffs: NAND geometry problems: chunk size 512, type is yaffs, inband_tags 1 Reading I found some useful clues: This is caused by yaffs1 can not work with ...
0
votes
1answer
54 views

Mount external USB drive

i'm trying to search a student device with CAINE. I'm trying to pull an image of the drive for analysis, first I'm trying to mount an external USB hard drive sdb with read and write privileges so I ...
0
votes
3answers
51 views

disk partitions don't mount to filesystems after reboot

i have a VM machine that rebooted last night and we could't connect to it via ssh. i used console and saw that only / and swap are mounted with lsblk command: NAME MAJ:MIN RM SIZE RO TYPE ...
1
vote
0answers
21 views

fstab bound folders show as disks in GUI

I'm trying to mount different folders on sda7 in the folders in the /home folder. like documents, pictures, and music. I always did that like this: /media/betty/Tuinhuisje/Betty/Documents /home/...
0
votes
1answer
32 views

boot partition updates

I'v been install and starting using OpenSuse 15 at my disk several weeks ago, the special setup of this installation that is I chose the /boot located in a USB pendrive, so no boot partition needed on ...
0
votes
1answer
40 views

Mounting using alternate fstab file

I need to use an alternative fstab file for mounting a folder in another folder, like the command mount --bind /folder1 /folder2 I tried the command mount --fstab /pathToFile.fstab as stated in ...
3
votes
0answers
41 views

Can't Export Any Directory Off My Home Directory - Ubuntu 18.04

Whenever I make an NFS export on a folder off my home directory I get the error below (appreciate this example is too brief, but the next set of code shows how I got here): $ sudo exportfs -ar ...
1
vote
0answers
14 views

How to access a UFS2 formatted drive in OSX/High Sierra?

I found this guide and I was able to successfully compile the ufs executable. I already have OSXFUSE because I needed it earlier for accessing ext4 partitions. I was able to successfully run the ufs ...