Questions tagged [unmounting]
The unmounting tag has no usage guidance.
164
questions
0
votes
0
answers
27
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 ...
0
votes
1
answer
52
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 ...
0
votes
0
answers
20
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 ...
0
votes
0
answers
38
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 ...
1
vote
0
answers
41
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....
0
votes
0
answers
41
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 ...
0
votes
0
answers
25
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 ...
-4
votes
1
answer
155
views
How to mount and unmount disks that use the bcachefs file system under Linux?
Bcachefs is a file system which has similar oak properties as e.g. Btrfs and ZFS.
Among other things, the following non-mainstream kernel compilations are known:
Kernel 6.1:
https://web.archive.org/...
0
votes
0
answers
58
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 ...
0
votes
2
answers
223
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 ...
0
votes
1
answer
990
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 ...
1
vote
0
answers
577
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. ...
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 ...
1
vote
0
answers
63
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 ...
0
votes
2
answers
604
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....
8
votes
6
answers
6k
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 ...
0
votes
0
answers
179
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 ...
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 ...
1
vote
0
answers
107
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 ...
5
votes
1
answer
419
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, ...
0
votes
1
answer
201
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 ...
0
votes
1
answer
25
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 ...
1
vote
1
answer
7k
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, ...
3
votes
1
answer
841
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 ...
2
votes
1
answer
4k
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 ...
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/...
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 ...
0
votes
1
answer
563
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 &...
0
votes
0
answers
803
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 ...
2
votes
2
answers
458
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 ...
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 ...
0
votes
1
answer
4k
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 ...
3
votes
0
answers
199
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 ...
4
votes
2
answers
3k
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 ...
9
votes
1
answer
3k
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 ...
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 ...
0
votes
2
answers
866
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 ...
0
votes
0
answers
341
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 ...
1
vote
2
answers
487
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 ...
3
votes
1
answer
3k
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: ...
2
votes
2
answers
929
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=...
0
votes
1
answer
592
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 ...
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 ...
0
votes
1
answer
170
views
How to find out which process keeps an LVM partition from unmounting *during shutdown*?
I see that LVM1 (/dev/mapper/lvm1--vg-lvm1--lv) fails to umount during the shutdown, when I cannot run one of the many options to find out which process or user is holding up the mountpoint.
It also ...
0
votes
1
answer
226
views
How can we alert when EFS is unmounted for Linux EC2 servers?
I am using below script in cron job to get alert whenever EFS got unmounted.
But its not alerting me when the EFS is unmounted.
#!/bin/bash
Hostname=$(hostname)
##email subject
subject="EFS is ...
1
vote
1
answer
905
views
Can't unmount drive without killing bash [duplicate]
I don't know whether its normal or not but when I mount a filesystem(ext4 partition, USB, SD card etc) via command line, I can't unmount it because it says
target is busy
It is the bash process ...
1
vote
1
answer
180
views
Unmounting /usr from an external drive [closed]
I mounted /usr from the nvidia TX1 dev board to an external SSD connected to the board.
I am wondering how I can restore it original state without re-flashing? If I power down,and disconnect the SSD,...
21
votes
2
answers
4k
views
Is it necessary to explicitly flush the HDD on-disk write caches?
Abstract
Sometimes, the Linux kernel is not aware of on-drive write caches of external USB storage devices. Is it necessary in such situations to explicitly flush those caches prior detaching these ...
4
votes
1
answer
1k
views
What can still be done with a lazy-unmounted filesystem?
umount --lazy calls umount(2) with the MNT_DETACH flag set. umount(2) says that will:
"Perform a lazy unmount: make the mount point unavailable for new accesses, immediately disconnect the ...
1
vote
1
answer
309
views
What is the use-case for MNT_EXPIRE?
From umount(2):
MNT_EXPIRE (since Linux 2.6.8)
Mark the mount point as expired. If a mount point is not currently in use, then an initial call to umount2() with this flag fails with the error ...