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]
105 questions
55
votes
4 answers
Small snap loop devices visible in gnome-disk-utility OR what is the function of snap ubuntu-core
I just realized, after using gnome-disk-utility (3.18.3.1), that my 16.04 installation features 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
- 14,198
- 5
- 41
- 43
54
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
- 958
42
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,906
37
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
- 387
35
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,862
33
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,420
25
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
- 391
24
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…
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
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:…
xyzzyrz
- 896
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
- 3,098
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
12
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
- 25,251
10
votes
3 answers
Unmounting several partitions at once
I have this portable hard disk with 4 partitions. When I need to safely remove the device I have to unmount each partition manually.
Is there a way I can unmount all at once? Or is it suffice to unmount one partition only and remove the disk?
thameera
- 856