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
0 answers
13 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.
user avatar
0 votes
1 answer
24 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 /...
user avatar
0 votes
0 answers
59 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 ...
user avatar
0 votes
0 answers
52 views

Ubuntu 21.10 inconsistent USB drive removal behaviour

On Ubutu 21.10 here. I have a number of external USB drives using NTFS and Ext4. Using either Nautilus or Nemo as my file manager: When I plug them in they show the drive names but they aren't ...
user avatar
0 votes
0 answers
48 views

lvremove snapshot met "Logical volume *** in use"

I taked a lvm2 snapshot of my root lv a few month ago, now when I remove it with lvremove, but I get "Logical volume svg/0902_extended in use". I never mounted it, and I now confirmed it ...
user avatar
  • 107
1 vote
0 answers
58 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 ...
user avatar
1 vote
1 answer
45 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: ...
user avatar
0 votes
1 answer
38 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 ...
user avatar
  • 2,443
0 votes
0 answers
92 views

Debugging root partition not unmounted on reboot in Ubuntu 20.04

I have a problem where every time I reboot my Ubuntu 20.04, if I do a fsck on my root partition (from a Live Boot USB), I will get Recovering journal [...] clearing orphaned inode [...] This ...
user avatar
  • 115
0 votes
1 answer
50 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 ...
user avatar
  • 123
0 votes
1 answer
511 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 ...
user avatar
  • 1,487
0 votes
2 answers
83 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 ...
user avatar
  • 1
1 vote
0 answers
314 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 {...
user avatar
0 votes
0 answers
75 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, ...
user avatar
0 votes
1 answer
83 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 ...
user avatar
  • 1
1 vote
0 answers
162 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 ...
user avatar
  • 179
35 votes
3 answers
11k 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 ...
user avatar
0 votes
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 ...
user avatar
  • 171
1 vote
0 answers
451 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 ...
user avatar
  • 133
6 votes
3 answers
12k 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 ...
user avatar
0 votes
0 answers
636 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)...
user avatar
1 vote
3 answers
471 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 ...
user avatar
2 votes
1 answer
9k 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 ...
user avatar
  • 21
1 vote
1 answer
2k 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 ...
user avatar
  • 1,353
0 votes
1 answer
474 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 ...
user avatar
  • 101
1 vote
1 answer
6k 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,...
user avatar
  • 4,035
1 vote
1 answer
567 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/...
user avatar
  • 192
18 votes
3 answers
21k 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 ...
user avatar
  • 321
3 votes
1 answer
5k 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 ...
user avatar
  • 776
0 votes
0 answers
54 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. (...
user avatar
  • 205
1 vote
1 answer
198 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 ...
user avatar
  • 1,004
5 votes
1 answer
3k 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 ...
user avatar
30 votes
2 answers
42k views

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 /...
user avatar
  • 638
1 vote
0 answers
351 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-...
user avatar
  • 11
4 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 ...
user avatar
  • 629
3 votes
1 answer
1k 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 ...
user avatar
  • 9,567
3 votes
1 answer
1k 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 ...
user avatar
  • 101k
1 vote
3 answers
343 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" ...
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-...
user avatar
  • 1
0 votes
1 answer
98 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 ...
user avatar
  • 51
0 votes
1 answer
549 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 ...
user avatar
0 votes
0 answers
110 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 ...
user avatar
  • 3
13 votes
2 answers
105k 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
5k 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 ...
user avatar
1 vote
1 answer
356 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 ...
user avatar
  • 14k
1 vote
2 answers
242 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.
user avatar
51 votes
3 answers
33k 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/...
user avatar
  • 11.9k
3 votes
1 answer
137 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, ...
user avatar
  • 12.4k
0 votes
0 answers
40 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/ ...
user avatar
  • 121
0 votes
0 answers
621 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 ...
user avatar
  • 101