Questions tagged [umount]

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.

Filter by
Sorted by
Tagged with
55 votes
4 answers
38k views

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/...
3 votes
1 answer
150 views

sudo apt-get upgrade errors

I get the following errors when running the apt-get upgrade: dpkg: error processing package nfs-common (--remove) cannot remove /sbin/umount.nfs4: Bad message E: Sub-process /usr/bin/dpkg returned an ...
0 votes
2 answers
7k views

Can't Unmount dev/sda3 (boot device)

Please help a frustrated user. I currently run only ubuntu 12.04: I cant seem to umount. I think the umount folder is lost. Tried all possible measures to no avail. Is there a way to force umount. I'...
-1 votes
1 answer
78 views

if running fsck from live media do you still need to unmount target partition

I've been having issues with my ubuntu server. Every day or two I'll lose the ability to remote connect to the server. When I connect directly I see lots of repetitive error messages with long ...
0 votes
2 answers
753 views

Can't unmount /dev/sda2

First I tried Gparted but couldn't unmount it when I tried the terminal command sudo umount /dev/sda2 I got this message: umount: /: target is busy . lsblk -f /dev/sda gives this: NAME FSTYPE LABEL ...
35 votes
5 answers
40k views

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 ...
8 votes
1 answer
6k views

Partition cannot be unmounted "Volume is busy" on Ubuntu 18.04.1 . Offending process - jbd2/sdb4

With Ubuntu 18.04.1 on a fresh install, I sometimes cannot unmount my data backup partition. I was dd'ing a Linux iso from the partition /dev/sdb4 to a USB drive. Later, I exited the terminal, and ...
41 votes
6 answers
68k views

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 ...
43 votes
3 answers
73k views

How to umount non-sudo sshfs created directory

I used sshfs without sudo to create a directory like sshfs [email protected]:/media/user/harddrive /temp/user/harddrive but when I want to umount the /temp/user/harddrive directory with umount /...
1 vote
1 answer
41 views

Firefox complaining about a running instance after crashing with umounts on Xubuntu

In order to run Firefox without allowing any changes to its configuration, I did setup a tmpfs and from it, create two overlays before launching the browser. Script runs fine, creates and destroys the ...
3 votes
1 answer
4k views

Unmount by UUID?

I'm building a script and am able to mount by uuid using mount -U UUID, but I can't seem o unmount by uuid. Is this type of operation possible? How would I do it? umount doesn't seem to have this ...
3 votes
2 answers
10k views

unmount sshfs from mount point

mounted raspberry pi device via sshfs: sshfs osmc@rpi.: /home/user/pi mounting information: user@azimuth:~$ mount | grep osmc osmc@rpi.: on /home/user/pi type fuse.sshfs (rw,nosuid,nodev,relatime,...
16 votes
4 answers
42k views

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. ...
0 votes
0 answers
36 views

umount2() for an NFS mountpoint returns EPERM, even when called as root

I'm running Ubuntu 20.04, but I've had this problem back to Ubuntu 14.04. I've been trying to automate unmounting NFS mounts when my VPN connection closes, but no matter how I call "umount", ...
32 votes
3 answers
11k views

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 ...
0 votes
0 answers
135 views

Is there a way to fix bad block without unmounting?

I was thinking about running a bad sector check up on my system. Is it possible to do that without unmounting the primary filesystem? I want to check it on the system that is currently running.
0 votes
1 answer
214 views

Unmount volume, and dependent mounts

I explain: Currently I have: A volume mounted to a directory, /mountDirectory And I also have a local directory that has a mount bind to a directory on the volume: /localDirectory mount bind /...
22 votes
3 answers
33k views

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 ...
0 votes
0 answers
280 views

Undo `mount --rbind /dev ./chroot/dev`

I've executed mount --rbind /dev ./chroot/dev for using in chroot'ed environment. Then I wanted to unmount it and executed umount ./chroot/dev but it fails with error: umount: ..../chroot/dev: target ...
6 votes
3 answers
18k views

Failed to unmount /oldroot/dev warning during the shutdown or restart

After Upgrading from 18.04 to 20.04 I've notices several warnings during shutdown or reboot like: Failed to unmount /oldroot: Device or Resource busy Failed to unmount /oldroot/dev/pts: Device or ...
1 vote
0 answers
223 views

Desktop "eject" or "quit" does not unmount usb media

I use a USB device with SD-card slots. It works fine, but I cannot seem to unmount it on a proper way from user space. Right clicking on the memory stick icon and selecting "eject" does ...
1 vote
1 answer
308 views

I got these error messages when trying to unmount /dev/sda3

I got these error messages when trying to unmount /dev/sda3. root@marudhu:~# umount -t /dev/sda3 umount: bad usage Try 'umount --help' for more information. root@marudhu:~# umount -t/dev/sda3 umount: ...
0 votes
1 answer
62 views

How to identify which program is using a partition (and is stopping it from being un-mounted)?

Only one partition cannot be unmounted (on other drive than the one the system is installed on) . It is also the only ext4 partition on that drive, the other two are ntfs. I am using dual boot, have ...
0 votes
1 answer
215 views

How to avoid race condition when mounting, copying files into, and umounting images

This script creates ten image files and copy over file(s) to them. #!/bin/bash # script to create multiple floppy images for installing hwp30 #+on virtualbox. # umount image in case mounted sudo ...
4 votes
2 answers
5k views

Why does umount automatically remove the mount point of a drive that has been mounted with a file manager?

If I mount a drive using the file manager (I'm using PCManFM), the mount point is automatically removed when I run the umount command. However, if I mount by running mkdir and then mount, I have to ...
0 votes
1 answer
1k views

Cannot umount /tmp. Both fuser and lsof show nothing locking that LV

I need to reduce my /tmp LV so I type this command : $ sudo lvreduce -r -L -2G /dev/myVG/tmp Do you want to unmount "/tmp" ? [Y|n] y umount: /tmp: target is busy. fsadm: Cannot proceed with ...
16 votes
2 answers
117k views

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(...
0 votes
2 answers
926 views

I'm having an issue with when I'm trying to use umount command to unmount my usb flash drive

I'm using Virtualbox and SEED Ubuntu 16.04. I'm trying to unmount my flash drive with the command sudo umount /dev/sdb1, assuming that my USB is attached as sdb1. However I would get this error saying ...
1 vote
0 answers
829 views

Trying to use extundelete for recovering a "rm -rf"ed directory. But receiving this: extundelete: No such file or directory /dev/sda5

so I accidentally deleted a dirrectory using "rm -rf". I am trying to recover is using extundelete. So far I have done these: $ sudo umount -l /dev/sda5 $ extundelete --restore-directory {...
1 vote
2 answers
2k views

Kubuntu 20.04 Hangs Before Every Reboot (Failed to umount /oldroot)

I'm running a fresh install of Kubuntu 20.04. Every time I reboot, it hangs for several minutes with the last line shown as: [ OK ] Reached target reboot. Several minutes later, it finally proceeds ...
0 votes
0 answers
84 views

Trying to install a fresh version of Ubuntu did not go well, now there is no OS installed at all

this is gonna be painful to read because it's been a very long time since I did anything with my laptop other than just idle use, but here goes: I was having some issues with my Asus Model No. F555U, ...
0 votes
0 answers
132 views

"start" and "stop " missing of update-rc.d command

I noticed that Ubuntu is slowing down at restarting process after I set in /etc/fstab auto mount NAS directory using cifs. The solution is found in this thread by Help Ubuntu ...
0 votes
1 answer
393 views

When should shared NFS dir be unmounted?

I am using NFS services to copy files from the shared directory to another directory on the client (not part of the mount). I don't need NFS services to be running at all times so, once the files are ...
1 vote
0 answers
272 views

How can I fix a stuck NFS without rebooting server?

My environment: I have three servers in my studio. Server A is an NFS server, server B and C are NFS clients. Server B and C mount A:/raid/data on local /data. SELinux is disabled, ufw is not ...
2 votes
3 answers
2k views

Using `umount` for USB mounted ext4 volume without `sudo`

I mount a USB HDD used for intermittent plugin backup via the fstab entry: # <file system> <mount point> <type> <options> ...
36 votes
3 answers
13k views

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 ...
1 vote
0 answers
769 views

Trying to mount a re-writable CD to my file system

I am following along with "The Linux Command Line" 4th Internet addition. I am learning how to mount file systems and have been instructed to run the following commands to do so: mount In the books ...
0 votes
0 answers
1k views

Ubuntu does not start due to too little disk space

In my computer I have 2 disks. I have one that runs Windows 10 and one that has Ubuntu on it. I also have a partition for my personal files (this is mainly used by Windows so it is a NTFS file system)...
1 vote
3 answers
752 views

Booting Ubuntu even if remote share is offline

In my /etc/fstab I use the following: //192.168.5.167/H /mnt/ssd ssd credentials=/root/.smbreds 0 0 But in case if the drive on Windows is not connected or Windows machine is not running, Ubuntu ...
2 votes
1 answer
16k views

How to rescan USB device?

Since when I use The Files to umount the USB device(not console umount command), ubuntu will also remove the block device, I can't click to mount that again. If I don't want to unplug and plug the USB ...
14 votes
1 answer
8k views

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. ...
2 votes
1 answer
785 views

Finding ecrypt-recover-private mountpoint

After heavily struggling on mounting my ecrypted hdd, I now want to securely unmount the recovered hdd. I did it as proposed in this question. It was mounted by using $user> cd /media/$user/...
0 votes
1 answer
6k views

How to mount an unmounted USB device Ubuntu using command? [duplicate]

I first eject device using sudo eject /dev/sr1. And then sudo umount /dev/sr1. But now it's not showing me the device which i'm unmounted. I want to mount it using command.
0 votes
1 answer
642 views

mount --bind /dev sometimes "kills" tty until unmounted

I have a script that uses sudo mount --bind /dev other/dev and then later uses sudo umount other/dev to unmount. After some random number of runs, we can somehow enter an odd state where the main tty ...
4 votes
1 answer
3k views

Local file system not properly unmounted during shutdown

I have a file system with two HDDs and several partitions mounted separately locally. /root, /home, /usr, /var, /local/share, /home/bernhard/fotos/bilder, /backup are on separate partitions and are ...
3 votes
1 answer
7k views

How to make umount wait, until a device is not busy?

I have a bash script file where I execute a bunch of commands. #!/bin/bash umount /media/hdd1 umount /media/hdd2 something1 something2 But since the comands later in the file work with the umounted ...
0 votes
0 answers
80 views

Repartitioning after LVM partitioning

I installed Ubuntu 16.04 using LVM method. Now while trying to re-partition HDD using Gparted, I saw that my HDD present situation is like this : LVM is using the entire part of extended space. (...
1 vote
1 answer
313 views

Cannot hide Google Drive icon from nautilus menu

Ever since I had selected my google drive account as my default storage location in Déjà Dup, an annoying icon with the name of my account shows up at the right side of my nautilus menu. When I ...
1 vote
0 answers
665 views

gparted gives an error when checking the xfs file system

I use ubuntu 16.04 (64). An additional, non-system drive is formatted in XFS. After a power failure, I decided to check it. Gparted report: GParted 0.25.0 --enable-libparted-dmraid --enable-online-...
3 votes
1 answer
2k views

Unmount SSHFS from Nautilus (with umount)

I can mount an SSHFS like this: sshfs -o idmap=user SSH_HOSTNAME:/ ~/mountpoint Now it's nicely displayed in Nautilus like a removable device with an eject button. On clicking that button though, I ...