Questions tagged [unmounting]
The unmounting tag has no summary.
177 questions
8
votes
5
answers
1k
views
How to clearly indicate a device is not mounted
Is it a good idea to add an empty file, say a file called NOT_MOUNTED, into mountpoint directory when the backup storage device is not mounted? Or will this be confusing? Is a symlink better, that ...
2
votes
1
answer
231
views
Weird result mounting a tmpfs as root in the directory tree
Using unshare -Umr I created a new user, mount namespaces where the calling process is moved into. Then via mount -t tmpfs tmpfs / I mounted a new tmpfs instance on the root / of the directory tree ...
0
votes
1
answer
497
views
mount: can't read superblock
Problem
Mount directory. sudo mkdir /mnt
sudo chmod -R 777 /mnt
sudo mount /dev/sdm1 /mnt, will work
Do some work..
sudo umount /dev/sdm1, will work
sudo mount /dev/sdm1 /mnt, will not work
Partial/...
1
vote
1
answer
100
views
Mounting directories on demand or until logged
As from object, I want to mount some directories (with binding) at login and possibly unmount them at logout.
At the beginning I tought about autofs, but it dynamically creates mount points, that's ok ...
1
vote
1
answer
62
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, ...
2
votes
0
answers
481
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
0
answers
232
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
259
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
0
answers
204
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 ...
2
votes
2
answers
1k
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
120
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
2
answers
2k
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 ...
1
vote
0
answers
2k
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. ...
1
vote
0
answers
95
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 ...
9
votes
6
answers
12k
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
1
answer
2k
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 ...
5
votes
1
answer
959
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
37
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 ...
3
votes
1
answer
1k
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
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/...
0
votes
1
answer
2k
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 &...
2
votes
2
answers
969
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 ...
2
votes
1
answer
7k
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 ...
4
votes
2
answers
5k
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 ...
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 ...