Questions tagged [unmounting]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
41 views

How to unmount an external hard drive in linux?

I have an external Toshiba 2TB hard drive with two partitions. The relevant partition is of type BTRFS and mounted in my Parrot OS system. I want to use it for backup purposes but I have a hard time ...
Green's user avatar
  • 51
1 vote
1 answer
17 views

zsh completion for umount: limit completion to one argument

when I use zsh completion for the umount command: umount /mnt/t<TAB> it completes the mounted filesystem /mnt/tmp. But when I accidentally press tab too many times, it tries to be too helpful, ...
Martin Vegter's user avatar
11 votes
2 answers
2k views

What's using all the space on a seemingly empty partition?

OS: RHEL8 Filesystem: xfs I'm guessing that some zombie process is holding the space, but I can't find it. The problem is with /var/lib/pgsql/14, which df says is using 1.1TB of space: $ sudo df -T -...
RonJohn's user avatar
  • 1,148
1 vote
0 answers
77 views

How to shutdown service before systemd starts unmounting

I have a systemd service that uses After=local-fs.target to ensure that all mount points are established (if possible) before the service is started. Not being too familiar with the systemd ...
Simon Kraemer's user avatar
0 votes
1 answer
53 views

How can I make a secondary drive not periodically unmount

I have a secondary internal hard drive that once in a while will unmount and require the sudo password to mount (in the Dolphin file manager). How can I make so it does not unmount even upon a restart ...
Champe20's user avatar
0 votes
0 answers
59 views

Mount but exclude one subfolder?

I have a Synology NAS in which I use the following command at NAS startup to create a symlink, which works fine: mount --bind "/volume1/SourceFolder" "/volume1/SymlinkFolder" Now I ...
Ahmad's user avatar
  • 101
0 votes
0 answers
164 views

"umount failed: Invalid argument." when trying to umount overlapping mounts

I have a shared RHEL 8.8 system that was misconfigured such that multiple partitions have been mounted at the same mount point /home - a local LVM partition and a network share mounted using autofs: [...
jayhendren's user avatar
  • 8,384
2 votes
2 answers
122 views

Unmount all nested directories under path

Let's consider these conditions: There's multiple nested mounts with a lot of folders/files in /mnt: sdb 8:16 0 300G 0 disk ├─sdb1 8:17 0 256M 0 part /mnt/1/1 ├─sdb2 8:18 0 199....
GrabbenD's user avatar
  • 126
0 votes
0 answers
63 views

Immediately after 'fusermount -u; umount' sporadically fails with Target is Busy

I've a script pre-condition: lsof /dir1 clear #/bin/bash ... fusermount -u /dir1/dir2 # unbind dir2 umount /dir1 # sporadically fails with 'Target is Busy' ... Why do I get ...
participant's user avatar
0 votes
1 answer
145 views

How can I know if a file system was cleanly unmounted?

I know, fsck.ext4 -p /dev/whatever, right? That seemed to be the answer, but then I read that journaling covers a multitude of sins, and the result from fsck will just tell you that there isn't a ...
Opux's user avatar
  • 217
0 votes
0 answers
22 views

How to check which "applications are keeping the volume busy" on Linux? [duplicate]

Sometimes after I read and write files in a USB connected to my linux desktop, then turn off all visible applications, wait for my USB to stop blinking, then attempt to eject the USB, I get a warning ...
pup01903's user avatar
0 votes
0 answers
100 views

How to stop Linux from automatically unmounting CD Drive right before shutdown

I am using Pop OS on my laptop and whenever I poweroff, it automatically unmounts the CD drive. As a result every time I turn on the laptop the CD drive gets stuck in a loop of making a small noise it ...
Paris's user avatar
  • 1
1 vote
1 answer
273 views

nfs unmount on shutdown

I have a laptop with debian that I am mainly using on my home wifi. To access some network disks, I have a few lines like these in /etc/fstab: disk:/media/vol0 /home/disk0 nfs4 noauto,x-systemd....
MortenSickel's user avatar
  • 1,371
0 votes
0 answers
54 views

Unmount user home directory in a delayed background process after logging out

The home directory of user bob is mounted by a superuser from elsewhere. bob himself is a sudoer, he is logged in and is happily using his mounted home directory. He finishes his work and wants to run ...
Greendrake's user avatar
0 votes
0 answers
41 views

Can not unmount ssh connection after hibernation or momentary connection loss

I work on a mounted directory to a cluster through sshfs. However, sometimes my connection fails for a second and the mounting stops working. The problem is that I can not umount to be able to restart ...
Pau Clavell-Revelles's user avatar
0 votes
0 answers
134 views

umount or mount possibly corrupting partitions

I have installed a new system, using void linux with btrfs + LUKS, everything is working now just need to configure the whole system. I mounted my home from the other system to get some files then ...
romachad's user avatar
0 votes
2 answers
485 views

Cannot unmount drive, /var/lib/snapd/snap target is busy

I want to unmount my main drive so I can run fsck on it because dmesg says that I should. However, when I try to unmount the drive I get the following error: Cannot unmount drive, /var/lib/snapd/snap ...
Tyler Durden's user avatar
  • 5,591
0 votes
1 answer
2k views

Linux does not shutdown completely (Failed to unmount /oldroot)

I've been having this problem for a few months where Linux just fails to shutdown. It freezes on the screen where all logs are displayed and stuff, the last line is always: "kvm: exiting hardware ...
Gaurav Satish's user avatar
1 vote
0 answers
1k views

failure to unmount /oldroot on shutdown; is this a problem?

At shutdown, Linux Mint 21.1 briefly flashes a warning that systemd couldn’t unmount /oldroot or /oldroot/sys because the device is busy. It still shuts down and I haven’t noticed anything else amiss. ...
3QuartersColon's user avatar
0 votes
2 answers
21 views

Device name changes without any indication resulted of massive data copying

I have Linux machine with two external ntfs-formatted hard drives. One of the drives contains data, the other one is supposed to be a back-up. I run Rsync to copy data from the first drive to the ...
S. N.'s user avatar
  • 187
1 vote
0 answers
68 views

Slackware(64) 14.2 + Xephyr using chroot, umount partitions

This Exact Same Question i first time i do was ib -> https://www.linuxquestions.org/questions/showthread.php?p=6366697#post6366697 i need improve my script : For close the Xephyr window ...
Inukaze's user avatar
  • 47
1 vote
2 answers
906 views

How to unmount an non-existent filesystem with opened filed?

I have an Yocto-based embedded Linux system (kernel version 5.10.48) and encounter a problem with USB flash drive removal. I have a script that is run by udev when an USB drive is plugged or onplugged....
hdmi87's user avatar
  • 11
9 votes
6 answers
8k views

Unmount /boot after booting

For some highly secure bastion VMs I'll implement soon, I am considering to unmount /boot after booting - among other measures of course. Will be mounted only for updating kernel. Testing this, no ...
Krackout's user avatar
  • 2,642
0 votes
0 answers
202 views

How to umount a script

Cron periodically has root run a script to backup certain partitions to an external USB drive. The script first removes the oldest backup, then backs up specific partitions and finally writes the ...
Haines Brown's user avatar
0 votes
1 answer
1k views

umount bash: warning: shell level (1000) too high, resetting to 1

I can mount drives and images, but I can't unmount them. I get 'shell level too high'. I expect this normally happens when a script calls itself. Is there some script that is run by umount? I can't ...
Rucent88's user avatar
  • 1,870
1 vote
0 answers
128 views

How to stop processes to umount mountpoint for fsck

I am trying to do fsck on the NAS via ssh on /volume1. The volume has to be unmounted, and all processes with reference to /volume1 need to be stopped accordingly. Therefore, logged in as root, all ...
Zipfer's user avatar
  • 11
5 votes
1 answer
551 views

Prevent systemd from unmounting a partition mounted by a systemd service

I have a custom systemd service that automatically mounts some partitions under certains conditions. The service executes a shell script containing some mount commands. When I execute it directly, ...
Adel M.'s user avatar
  • 358
0 votes
1 answer
215 views

Why does my USB flash disk contiune heating while it is unmounted?

I am using Debian-Buster Linux. I use a USB flash disk to mount when I need it. When i am done, I unmount(using umount) it without unplugging it. However, it continues to heat up(like it is being ...
user avatar
0 votes
1 answer
26 views

My server unmounted multiple drives and i don't know why?

so one of my servers was having issues this morning and when I went to investigate I found that the problem was that 4 of my drives seem to not be mounted anymore. I am wondering if there may be a ...
Mexicoder's user avatar
  • 121
2 votes
1 answer
9k views

Can the root filesystem be unmounted in Linux?

I am not talking about rootfs here. If there is only one process running in Linux and its working directory is /, then can it be unmounted? Will rootfs be what is left over? If it cannot be unmounted, ...
Melab's user avatar
  • 3,998
3 votes
1 answer
979 views

root filesystem not listed when executing mount

I'm running slackware 14.0 linux. I was recently doing an open office document and sent emails out and then my internet was cutting out then after a bit I got hinted that my disk was full then I ...
Mike St's user avatar
  • 39
2 votes
1 answer
5k views

umount: /home: target is busy

umount /dev/mapper/nvmeVg-home umount: /home: target is busy I looked at this answer and found this useful page I was unable to solve my problem before posting here. My /var directory is full. /var ...
mister mcdoogle's user avatar
2 votes
1 answer
2k views

Use systemd to run script when usb drive is unmounted

I have a systemd service that calls a script when a USB drive is mounted. signal.service: [Unit] Description= Updater trigger Requires=usb-drive.mount After=usb-drive.mount [Service] ExecStart=/usr/...
Chris's user avatar
  • 143
2 votes
1 answer
1k views

Run systemd service before unmount

I'm trying to run a systemd service at shutdown: it kinda works (it gets called) but it runs after filesystems are unmounted, which is not what I need. So I tried with Before=umount.target and ...
user3534974's user avatar
0 votes
1 answer
876 views

Unable to unmount /mnt which was mounted from a script

I have a startup script which executes the following commands: sudo cryptsetup open /dev/sda3 dm_crypt && sudo mount -t btrfs /dev/mapper/dm_crypt /mnt && cd /mnt && ls -la &...
ng.newbie's user avatar
  • 1,165
0 votes
0 answers
1k views

How do I stop dmesg messages about previously used NFS client mount?

In Linux 5.8.0, NFSv4 client was in use for some time, then server gone away from network, then I umount -f -l-ed it away. Typically I expect NFS-related messages to go away from kernel log, but now I ...
Vi.'s user avatar
  • 5,688
2 votes
2 answers
587 views

Unmounting a filesystem

I am trying to unmount a filesystem. The mount point of the filesystem is /one/two/three/four, and the name of the device file is /dev/sdb8. The command that I executed to unmount the filesystem ...
Ehsan Rasoli's user avatar
0 votes
1 answer
1k views

What's the best way to safely remove an external hard drive from Manjaro?

I had an aging Western Digital external USB HD (spinning, not flash memory) that periodically disappears from the Device section on my Thunar File Manager. I have Manjaro installed. I am able to ...
rplee's user avatar
  • 377
0 votes
1 answer
5k views

How can I mount this disk image?

I'm trying to mount the Android nand image provided by Project Sandcastle (a project that can run Android 10 on an iPhone 7). I'm trying to mount this disk image so that I can edit the boot.img file ...
Sir Wumpus IV's user avatar
3 votes
0 answers
217 views

Why does unmounting of a VFAT filesystem result in reading the whole FAT?

Each time I unmount the filesystem of my SD card that I use on my DSLR, I have to wait several seconds for umount command to finish — even if I've just mounted the FS as read-only and immediately ...
Ruslan's user avatar
  • 3,360
4 votes
2 answers
4k views

Device in use, but not mounted

After plugging in a USB attached SATA SSD, fsck tells me that this device is in use. But it is not mounted at all. What's happening here? And how can I fsck this device? Here are some information ...
Andreas Matthias's user avatar
9 votes
1 answer
4k views

How can I make my ExFAT partition unmount cleanly?

I've got Raspbian running on a Raspberry Pi 4 B. I have a USB hard disk that I'm using with it. The hard disk is a 1TB drive formatted with a single partition using ExFAT. I've got exfat-fuse and ...
user avatar
0 votes
0 answers
1k views

In my linux system umount gives error : error writing /etc/mtab.tmp: No space left on device

I am trying to unmount on /root and fails with the following error: error writing /etc/mtab.tmp: No space left on device I am trying to unmount both "log" and "abc" df -h Filesystem ...
kyabhft's user avatar
0 votes
2 answers
1k views

How to remove google drive folder from Computer

Is there a way to definitely delete the google drive folder appeared in the Computer desktop folder in Linux Mint 19.2? It seems it is treated from the os like a mounted partition, but unmounting it ...
dcfg's user avatar
  • 111
0 votes
0 answers
438 views

Unmount data volume hosting NFS exports

So I've got a customer with two NFS server setup in a pacemaker cluster active/standby configuration. It is a legacy system running RHEL6. On the servers there is /mnt/data1 which is an xfs mountpoint ...
pbrunnen's user avatar
  • 113
1 vote
2 answers
522 views

unmount SD card makes file checksum change

I have an SD card mounted by Lubuntu at /media/$USERNAME/COREELEC/ I need to copy a file from one directory to another and rename it. However if I check the md5sum (or sha512sum) after I unmount it ...
TPPZ's user avatar
  • 505
3 votes
1 answer
4k views

How do I unmount `dev` after mounting it?

It appears that I cannot unmount dev after mounting it. I am running on Ubuntu 18.04.2 LTS with 4.15.0-1052-aws. mkdir -p ~/jail/dev pushd ~/jail sudo mount --rbind /dev dev/ sudo umount dev/ umount: ...
merlin2011's user avatar
  • 3,925
2 votes
2 answers
1k views

Cleanly unmount a usb drive with systemd

I configured an automount for a USB drive by adding an extra rule to /etc/fstab as belows /dev/sda1 /media vfat noauto,nofail,x-systemd.automount,x-systemd.idle-timeout=2,x-systemd.device-timeout=...
Theo's user avatar
  • 31
0 votes
1 answer
621 views

Umount: target is busy to variable

I want to check if a USB is busy and store the result in a variable: $ foo=$(umount /dev/sdb1) $ umount: /path/mounted: target is busy. But when I want to print $foo, I get an empty variable $ echo ...
schrodingerscatcuriosity's user avatar
0 votes
1 answer
3k views

How to stop "failed to unmount /usr/" errors during shutdown in Debian? [duplicate]

I just installed Debian 10 from disk. Whenever I shutdown, I get a single message displayed on screen, "Failed to unmount /usr/". What can I do to correct this? Is this error likely causing damage to ...
Village's user avatar
  • 5,025