Questions tagged [unmounting]
The unmounting tag has no usage guidance.
171
questions
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 ...
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, ...
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 -...
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 ...
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 ...
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 ...
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:
[...
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....
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 ...
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 ...
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 ...
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 ...
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....
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 ...
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 ...
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 ...
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 ...
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 ...
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. ...
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
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 ...
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....
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 ...
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 ...
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
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 ...
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, ...
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 ...
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 ...
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, ...
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 ...
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 ...
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
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 &...
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 ...
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 ...
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
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 ...
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 ...
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 ...
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 ...
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
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 ...
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 ...
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 ...
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: ...
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=...
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 ...
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 ...