Questions tagged [unmounting]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5
votes
1answer
465 views

Identify a process that is still using a file on a lazy-unmounted filesystem

I have a /dev/md127 mdadm RAID 0 array that some time ago was mounted as /mnt/storage1. At some point I opened a bash session and changed CWD to /mnt/storage1 and the bash session is still active. I ...
5
votes
2answers
4k views

Mounting and unmounting in same shell script results in error

I need to mount a volume, tar the contents of the mounted volume and unmount that mounted volume, in a single shell script. So I coded as, $ cat sample.sh sudo mount -o loop Sample.iso /tmp/mnt cd /...
3
votes
2answers
5k views

Unable to unmount, permission denied:

I'm having trouble unmounting a mounted remote filesystem in the nautilus UI. (ubuntu gnome) It says permission denied. Am I doing right by mounting this way ? : somepass | sshfs remoteuser@host:...
5
votes
1answer
8k views

Mount error: mount failed: File exists

I am unable to mount my USB: $ mount /dev/sdb1 /mnt mount: mount /dev/sdb1 on /mnt failed: File exists What is the origin of this error and how do I mount my USB? The partition /dev/sdb1 is not in /...
0
votes
1answer
601 views

Unmount MTP device via command line

My MTP device auto mounts on the desktop every time I boot or re connect the camera via usb. The problem is my code to copy files does not work unless the MTP device is first unmounted from the ...
4
votes
0answers
109 views

Fedora 25 medialess installation

Trying to install Fedora 25 on my laptop. I was still running an old Fedora 20. However, I can't burn a DVD and I don't have access to a USB media either. So, I tried with this method . It works ...
2
votes
1answer
2k views

How to detach a disk in Linux (simulate a crash of partition/disk)?

For testing purpose I need to simulate a crash of the disk (by detaching it) while other processes are using it. I tried: umount -f /srv/node/d1/ It doesn't want to unmount it. It shows me the next ...
5
votes
1answer
467 views

how to reliably determine processes using files after `umount -l` on linux

The Question After umount -l was performed on some mounted filesystem, and this filesystem remains still mounted (albeit hidden) because of some process maintaining (at least) one open file handle to ...
0
votes
1answer
442 views

How do I set up a udev rule to mount the SanDisk Cruzer USB upon insertion in order to eliminate an fstab entry?

Suppose I run sudo mount -a after setting /etc/fstab to: /dev/usbhd1 /path/to/mount/point ntfs rw,auto,nofail 0 1 Yesterday, upon asking what steps our architect and I should do next after a ...
0
votes
2answers
3k views

Cannot cleanup ghost mount points

'mount' command shows several mount points across several disk devices that I had previously setup: $ mount ... /dev/sdf1 on /mnt/<mp1> type xfs (rw) ... /dev/sdd1 on /mnt/<mp2> type ...
1
vote
0answers
108 views

SELinux prevents auto-umount of ecryptfs

I'm running SELinux and ecryptfs on a Debian machine. When a user logs out, unfortunately it's home directory is not unmounted, and I get the following error in audit.log: type=USER_AVC msg=audit(...
2
votes
0answers
223 views

How unmounting closes file descriptors?

Checking currently open files on my /Volumes/UNTITLED gives me 2 entries: $ sudo lsof /Volumes/UNTITLED/ COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME mds 62 root 8r DIR 1,6 ...
-1
votes
1answer
430 views

Unable to detach a USB device on Ubuntu 14.04

I was using udisks to unmount and detach USB devices with following commands which work just fine on Ubuntu 10.04: udisks --unmount /dev/sdb1 udisks --detach /dev/sdb Because udisks is not available ...
2
votes
1answer
425 views

Interpreting results of commands

I am having a hard time interpreting the results of the below commands. The more I read about them the more I'm convinced that what I am seeing is somehow not what it's supposed to be. The results ...
10
votes
1answer
2k views

Unmount a rbind mount without affecting the original mount

Asked on serverfault but didn't get enough attention, so reposted here, with the hope some people here know the answer. There is another question discussing about umounting rbind mounts, but the ...
1
vote
0answers
823 views

Unmounting external drive takes tremendously long

This morning I copied around 200GB of data to a quite old USB2.0 1TB external drive. The copying took around 2 or 3 hours. Afterwards I unmounted & the unmounting is still going on (after more ...
2
votes
1answer
403 views

How do I automatically force a umount on a usb drive that has already been removed?

I have debian system that auto mounts an entry in my fstab file when a usb drive is connected. This is done so as a read only device The device is mounted to /media/usb1 If i'm in the console and I ...
8
votes
2answers
3k views

ecryptfs: auto-umount does not work

I've set up an encrypted home directory for user piranha3: root@raspberrypi:~# ecryptfs-verify -u piranha3 -h INFO: [/home/piranha3/.ecryptfs] exists INFO: [/home/piranha3/.ecryptfs/Private.sig] ...
0
votes
1answer
202 views

How often does the tcpdump save into the file

I've got an question, concerning the tcpdumd. Does it save the data directly in the File you can give it with -w, or does it save when it's stopped? So if it was writing on a usbstick, can I just ...
1
vote
1answer
107 views

Safely remove needed before rebooting or shutting down computer?

Is it necessary to use the safely remove function to safely remove your usb stick or external hard drive before rebooting, shutting down computer, using standby or hibernation mode? (or is this done ...
5
votes
2answers
3k views

systemd: running a script on shutdown after filesystems are mounted read-only

Is there a way to run a script on shutdown, after the file system is remounted as read-only? I've a raspberry pi connected to a wireless socket, which I can control via a sender and a script. I want ...
4
votes
1answer
769 views

Why do you have to unmount a drive before formatting or resizing it?

I always have to unmount a filesystem/drive (like a USB) before formatting it or resizing it. Why is this necessary? On a related note (I feel like this would help me understand why it is necessary) ...
5
votes
2answers
7k views

Umount network drives with systemd before shutdown

My shutdown takes quite a long time (I'm on Debian 8.1) and I found out that it can be fixed by unmounting the network drive before shutting down the system. Apparently the network gets disconnected ...
2
votes
1answer
101 views

Partition still almost full but files seem to have been lost. What happened?

I'm running a dual-booting computer with Windows 7 and Linux Mint installed on it, and I am using a logical NTFS partition that can be accessed both from Linux and Windows. After having started ...
3
votes
0answers
1k views

Why is systemd unmounting my fuse file systems right after I mount them?

I am trying to troubleshoot an issue with a fuse library, where my fuse file system is mysteriously unmounted shortly after mounting it. After screwing around with a bespoke unmount executable that ...
1
vote
0answers
308 views

Failed umount /home (ZFS) on shutdown

During shutdown I notice an error reported in the logging messages on the screen that the umounting of /home (a ZFS filesystem) failed. (After restart I don't find any respective log entry in the ...
1
vote
1answer
563 views

Automatically run command before umounting a filesystem

I want to execute a command automatically shortly before a filesystem is unmounted. The command still needs the filesystem to be mounted but I am interested in information as "new" as possible. ...
1
vote
2answers
11k views

Debian: umount /media/usb0: “Operation not permitted”

I recently moved from Ubuntu 14.10 to Debian Testing. Under Ubuntu I had a shell script for backing up my home folder to a USB stick. The last line of the script unmounts the USB stick. Adapting it to ...
5
votes
1answer
3k views

Two *different* mountpoints having the *same* absolute path (bind-mount problem)

Scenario a NFS share is mounted on /mnt/temp/dir (and other shares are mounted in subdirectories), I umount everything there but supposedly, it doesn't work well (maybe I start with umount /mnt/temp/...
1
vote
1answer
125 views

Having issues unmounting partition for debian install

I have a 50gb partition set up on my mac for installing debian, MS-DOS (FAT) format. I blessed it and am now unmounting it in order to copy the img file over. I'm using: $ diskutil unmountDisk /dev/...
40
votes
2answers
60k views

Eject / safely remove vs umount

I'm using Ubuntu 12.04, and when I rigth click on a my flash drive icon (in the Unity left bar) I get two options that have me confused: eject and safely remove. The closer I came to an answer was ...
0
votes
0answers
69 views

Linux dual boot wiped Windows data

I have a Windows Vista/Debian Linux dual boot on my computer. Yesterday I did a bunch of work on Windows, while Linux was hibernated. Today I logged into Linux and tried to look at the data in the ...
1
vote
0answers
819 views

Unmount NFS shared drive without stopping nfs-kernel-server

I have a setup in which I have a Raspberry Pi B+ with Raspbian as file server, sharing a 5 disk usb rack. I don't whant the rack to be on all the time, so I turn it on when I'm going to use it and ...
1
vote
1answer
3k views

How to unmount flash drive gparted says busy

I have a 4GB usb storage drive that I cannot save files to. I have copied the information I want from it, so now I would like to rescue is as a freshly formatted drive, if that is possible. There is ...
1
vote
1answer
113 views

On shutdown, do un-mounting drives happen before shutdown signal handling?

So based on my understanding of the Unix/Linux shutdown process (which is highly limited I admit), I think at some point these steps happen: 1. mounted drives get unmounted 2. a termination signal ...
2
votes
1answer
362 views

Free-ing up unused space on a partition that is unaccessible after a mount

Originally I had a 50GB disk where the root / was mounted to a 6 GB partition on it. The partition was running out of room so I created a second partition with the rest of the free space (44 GB). Here'...
3
votes
1answer
56 views

Is is possible to recover from the unexpected removal of the root device?

Is it possible to recover from the entire removal and reinsertion of the root device (i.e. remounting it after reinsertion)? I'm attempting to teach a group of children about Linux via external USB ...
1
vote
0answers
106 views

Unable to unmount a partition - respawned by udev

I have set up the udev rules to automatically mount/unmount the removable devices with udev rules based on the answer to "How to mount removable media in /media/<LABEL> automatically when ...
1
vote
1answer
2k views

Impossible to umount /mnt [duplicate]

I am running Debian kFreeBSD wheezy. Accidentally I mounted my zfs pool directly into /mnt. When I try to unmount I get an error: zfs unmount myzfspool cannot unmount '/mnt': Device or resource busy ...
0
votes
0answers
193 views

Is there any suggestion to my shell script that (un)mounts an ISO file in order to make it better and safer?

I wrote a script to mount / umount an iso file by detecting whether the /media/iso-file-name exists. Any suggestion for the script as below in order to make it better and safer? #!/bin/bash ...
3
votes
2answers
870 views

How to view files hidden by a mount on Debian 6

I have been trying for a while to view files, hidden by a mount on my device sporting Debian 6, to no avail, and being new to Linux, I am compelled to ask the question: How do you view files hidden by ...
2
votes
3answers
913 views

Un-mount active partition

Is it possible to umount the partition, whose files/directories are in use? The underlying files and directories are in memory so un-mounting the partition is technically safe (I guess). But umount ...
3
votes
0answers
6k views

Mounting windows share using mount -t cifs

All, I have a SUSE SLES 11 box running samba. I am running this command: mount -t cifs //ip/dir1/dir2 /mnt/backups -o username=user,password=pwd,domain=domain Which works and mounts the drive ...
1
vote
0answers
2k views

Unmounting shares on logout with pam_mount

I am using pam_mount to mount cifs and sshfs shares for users when they log in to an Arch Linux workstation. I have the a volume line in /etc/security/pam_mount.conf.xml: <volume user="strongbad" ...
7
votes
7answers
38k views

umount /home does not work

I trying to merge my separate /home partition with my / partition in linux mint 13. I was told to umount /home, mount it on a different location and copy the contents to the /home directory on the / ...
2
votes
1answer
59 views

Forcing compton to free directory

I often have trouble unnounting filesystems because compton is keeping a subdirectory open. Here is one line from lsof I have right now: compton 30043 valmi cwd DIR ...
12
votes
4answers
12k views

Recursive umount after rbind mount

When entering a chroot is sometimes necessary to mount /sys and /dev using -rbind instead of -bind in order to insure everything is in it's right place when somebody goes looking. The problem comes ...
4
votes
2answers
1k views

Rsync won't Give Up Writing to an Unmounted Remote Drive

I've been having issues with a external hard drive staying mounted to a mount point. That's not the topic of this question, but background info. The issue is with rsync. It doesn't seem to recognize ...
0
votes
2answers
121 views

unmount pendrive discarding changes

Is it possible to unmount a (FAT32-formatted) pendrive without committing changes? Use case: easy recovery of accidentally deleted files
0
votes
1answer
2k views

Should tmpfs be unmounted at system shutdown?

Assume I have a linux system with the following partitions mounted (beside root): proc on /proc devtmpfs on /dev devpts on /dev/pts tmpfs on /dev/shm sysfs on /sys tmpfs on /var/run tmpfs on /...