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
0 votes
2 answers
142 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 ...
Nada's user avatar
  • 3
1 vote
1 answer
37 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 ...
user avatar
0 votes
0 answers
27 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", ...
Vince's user avatar
  • 1
0 votes
0 answers
108 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.
Sohan Arafat's user avatar
0 votes
1 answer
157 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 /...
Anastasia Oxenyuk's user avatar
0 votes
0 answers
226 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 ...
Ihor Drachuk's user avatar
1 vote
0 answers
189 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 ...
Per Strömgren's user avatar
1 vote
1 answer
211 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: ...
Angel Developer's user avatar
0 votes
1 answer
41 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 ...
cipricus's user avatar
  • 3,124
0 votes
1 answer
155 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 ...
Logan Lee's user avatar
  • 123
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 ...
SebMa's user avatar
  • 2,091
0 votes
2 answers
535 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 ...
betho's user avatar
  • 1
1 vote
0 answers
700 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 {...
pigwidgeon's user avatar
0 votes
0 answers
82 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, ...
user909877's user avatar
0 votes
1 answer
296 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 ...
gps's user avatar
  • 1
1 vote
0 answers
220 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 ...
fajin yu's user avatar
  • 179
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 ...
Randy Ssusage's user avatar
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 ...
J23's user avatar
  • 331
1 vote
0 answers
649 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 ...
nrmad's user avatar
  • 143
6 votes
3 answers
16k 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 ...
Iván Prokópov's user avatar
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)...
AdamVarga's user avatar
1 vote
3 answers
679 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 ...
Ciasto piekarz's user avatar
2 votes
1 answer
14k 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 ...
Mike Hu's user avatar
  • 21
1 vote
1 answer
3k 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 ...
Sarah Szabo's user avatar
  • 1,463
0 votes
1 answer
601 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 ...
Akh's user avatar
  • 101
3 votes
2 answers
9k 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,...
gatorback's user avatar
  • 5,465
2 votes
1 answer
715 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/...
benni's user avatar
  • 210
22 votes
3 answers
29k 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 ...
Shray's user avatar
  • 361
3 votes
1 answer
6k 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 ...
Askerman's user avatar
  • 816
0 votes
0 answers
67 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. (...
Spectra's user avatar
  • 205
1 vote
1 answer
287 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 ...
Kewal Shah's user avatar
  • 1,034
6 votes
1 answer
5k 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 ...
Confguy2016's user avatar
40 votes
3 answers
64k 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 /...
K.Wanter's user avatar
  • 788
1 vote
0 answers
583 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-...
gladwin's user avatar
  • 11
5 votes
2 answers
3k views

Why unmount a partition before overwriting the disk?

How to create a bootable Ubuntu USB flash drive from terminal? Why do guys here use umount first? I assume USB flash drive should be formatted first, so does umount format the disk, or just detach ...
mk1024's user avatar
  • 669
3 votes
1 answer
2k views

How to exclude files from ubdatedb?

Yesterday, while trying to unmount our (davfs2 mounted) work webdav server from my filesystem, I got device is busy. Running sudo lsof | grep /mountpoint/of/davfs, revealed that the culprit was ...
Bruni's user avatar
  • 10.2k
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 ...
Byte Commander's user avatar
  • 106k
1 vote
3 answers
455 views

Allow certain exit codes to not abort execution in bash "-e" mode

If umount returns 0 as the exit code, this script continues. Some times, the exit code is 127, I'm okay with it and the script should continue. How can I modify the script to do such a "whitelisting" ...
american-ninja-warrior's user avatar
0 votes
0 answers
2k views

Contradictory mount errors

Can anyone explain how I can unmount a disk in order to perform an fsck? I get contradictory errors: fred@ARAGORN:/media/fred$ sudo fsck /dev/sdd1 fsck from util-linux 2.20.1 e2fsck 1.42.9 (4-Feb-...
Rob190's user avatar
  • 1
0 votes
1 answer
128 views

How to clean '/dev/sdx' cache?

I'm facing a problem in my ubuntu system, as it is for testing, I usually issue the command: echo "scsi add-single-device 0 0 0 0" > /proc/scsi/scsi I'm just using the ata1 port. When I finish ...
xedge's user avatar
  • 51
0 votes
1 answer
580 views

How to umount usb drive? [duplicate]

I am a newbie Linux User I wrote a Lubuntu image to my 8GB usb drive, and made it bootable, using the dd command. After that I wanted to format it or make it umount but when I plug it to my PC I ...
Moji's user avatar
  • 15
0 votes
0 answers
128 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 ...
sh1's user avatar
  • 3
16 votes
2 answers
116k 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(...
user avatar
4 votes
1 answer
6k views

How to unmount a live DVD/USB?

I need to burn a new live DVD (Debian 8.0) from an Ubuntu 16.04 live DVD. the live DVD is the device /dev/sr0 mounted on /cdrom the blank DVD to be burnt is also located at /dev/sr0 Changing the DVD ...
user624473's user avatar
1 vote
1 answer
376 views

How can I get a message that says when you can unplug a usb stick safely?

I have a memory stick. when data is being written, the led flashes. I right click, and select eject, the led will flash and when it stops I will unplug it. Other memory sticks, do not have LEDs, how ...
j0h's user avatar
  • 14.6k
1 vote
2 answers
282 views

Graphical umount application

Is there some application to graphically view which partitions are mounted and be able to unmount them from the GUI? Like on Windows -> My Computer -> Eject.
Smeterlink's user avatar
53 votes
4 answers
37k 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/...
dufte's user avatar
  • 12.9k
3 votes
1 answer
147 views

How can I safely remove an external disk using the launcher icon?

The following animation demonstrates how I tried to safely remove an external USB 2.0 hard disk. However, each time I click on safely remove, the disk is being mounted again. Animation: I can, ...
orschiro's user avatar
  • 13k
0 votes
0 answers
44 views

Mount an ext hard drive and then delete the target mount folder

I'm new to Ubuntu server and wanted to set up Plex on it. I have an old laptop running Ubuntu server 16.04.1 I got an WD external hard drive with a movies folder. Mount point: /media/usb/plex_data/ ...
JoakimE's user avatar
  • 121
0 votes
0 answers
683 views

Unable to mount /tmp to /mnt/tmp properly

I have a EC2 instance, and I have a very small /tmp size which I want to increase. So I tried to mount /tmp to /mnt/tmp using: sudo mount -B /tmp/ /mnt/tmp/ This did mount it to /mnt/tmp. But when I ...
SureshS's user avatar
  • 101