Questions relating to the unmounting of the filesystem of media connected to the computer, whether that is done via software or manually by the user using the command-line.
Questions tagged [umount]
99 questions
53
votes
3 answers
Small snap loop devices visible in gnome-disk-utility OR what is the function of snap ubuntu-core
I just realized using gnome-disk-utility (3.18.3.1) that my 16.04 installation is featuring several small loop devices.
In detail:
78 MB Loop Device (/var/lib/snapd/sn_ntu-core_352.snap -> /dev/loop0)
76 MB Loop Device…
dufte
- 12,772
- 5
- 38
- 43
40
votes
6 answers
device-mapper: remove ioctl on luks-xxxx failed: Device or resource busy
While I was away from my computer, my encrypted USB drive got accidentally unmounted somehow (although it was still physically connected at the time). I haven't been able to recover (haven't tried a reboot yet). I have now completely disconnected…
Brent Bradburn
- 2,766
- 2
- 29
- 35
40
votes
3 answers
How to umount non-sudo sshfs created directory
I used sshfs without sudo to create a directory like
sshfs user@172.19.76.226:/media/user/harddrive /temp/user/harddrive
but when I want to umount the /temp/user/harddrive directory with
umount /temp/user/harddrive
it prompts:
umount:…
K.Wanter
- 788
- 2
- 7
- 15
36
votes
3 answers
I accidentally ran "sudo umount -a" and now have no access to anything
Now I can't remount anything and get access back. How can I fix it?
sudo returns
sudo: effective uid is not 0, is /usr/bin/sudo on a filesystem with the 'nosuid' option set or an NFS filesystem without root privileges?
mount returns
mount:…
Randy Ssusage
- 377
- 1
- 3
- 5
34
votes
5 answers
How do I find out which process is preventing a umount?
When I do
sudo umount /media/KINGSTON
I got
umount: /media/KINGSTON: device is busy.
I close all the windows and make sure all shell are pointing to other directories. How can I find which process is preventing the umount?
Guillaume Coté
- 3,692
- 8
- 30
- 36
32
votes
3 answers
Why do I need root privileges to umount a drive at the command line, but not in Nautilus? How to change that?
When I insert a thumb drive, media card, or USB hard drive, to unmount it via the command line, I need to use:
sudo umount /media/the_device
But, I can unmount the device in a file manager like Nautilus simply by clicking the eject button or using…
vanden
- 1,370
- 1
- 15
- 19
23
votes
4 answers
Mounting Samba share whenever it's available, unmounting when it's not
I am trying setup permanent samba share mounts. That's not too hard using these instructions. But, I want them to
Automatically remount whenever I join the network where these shares are available.
Automatically unmount (or make access requests…
Laurynas Biveinis
- 243
- 1
- 2
- 9
22
votes
3 answers
Difference between --rbind and --bind in mounting
I am confused. Linux filesystem is a tree structure, with the root node(starting node) as the root directory.
Now let's suppose I have a folder abc at location /home/abc and another folder xyz at location /home/xyz
Folder xyz consists of some…
Shray
- 361
- 1
- 2
- 6
17
votes
3 answers
Disk Utility: What's the difference between "Unmount" and "Safe Removal"?
System > Administration > Disk Utility
What's the difference between "Unmount Volume" and "Safe Removal"? Say you insert a flash drive and open the Disk Utility UI, if you click on "Safe Removal" you receive an "Error Detaching Drive" notification,…
trench
- 508
- 1
- 4
- 12
16
votes
2 answers
umount: /: target is busy
When I ran the command umount /dev/mapper/ubuntu--gnome--vg-root I I got :
umount: /: target is busy
(In some cases useful info about processes that
use the device is found by lsof(8) or fuser(1).)
I tried some different options…
user636872
16
votes
4 answers
How to unmount when umount hangs due to disconnected disk?
I have an external disk connected via USB that was accidentally disconnected uncleanly. Now lsing the directory in which it was mounted gives Input/output error. umounting the directory simply hangs. dmesg just contains:
[3360010.363235] usb 2-1.1:…
Yang
- 886
- 3
- 12
- 21
15
votes
2 answers
umount: it seems [device] is mounted multiple times
i was finishing up a job with a compact flash when, trying to unmount it:
#> umount /dev/sda2
umount: it seems /dev/sda2 is mounted multiple times
Looking at what mount says:
#> mount | column -t | grep sda2
/dev/sda2 on /mnt/flashrw type ext3…
Avio
- 2,979
- 5
- 24
- 40
14
votes
1 answer
How to check what are using the mounted disk when I want to eject it
The disk is mounted by sudo mount /dev/sdd5 /media/SDD/Docs and sudo mount /dev/sdd6 /media/SDD/Images and so on, thus there are some directories corresponding to the volumes of the mounted disk.
And when I wanted to eject the disk, i.e. using sudo…
mining
- 297
- 1
- 3
- 11
11
votes
2 answers
Are pre-existing files in a mountpoint directory safe and uneffected?
I've noticed that pre-existing files in a "mountpoint" directory disappear when the mount command is applied... and then they re-appear when the directory is unmounted.
Are these files just on "holiday" for the duration of the mount period? ...…
Peter.O
- 24,311
- 37
- 113
- 162
9
votes
2 answers
Why does Nautilus ask me to "... empty the trash before you unmount?"
I have a SATA hard-drive, formatted as ext4, which is detected by Nautilus each time I boot the computer.
I do need to click on it, in Places, to actually mount it. That's okay, I'm happy with that.
However, when I manually unmount it (via the…
Peter.O
- 24,311
- 37
- 113
- 162