Skip to main content

Questions tagged [unmounting]

8 votes
5 answers
980 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 ...
Markus Klyver's user avatar
0 votes
0 answers
95 views

How to unmount a drive while a container is running?

I have a Linux (6.6.x) machine with hotswap chassis that allows drives to be inserted and removed without downtime. The system has the following drives: /dev/sda (operating system) /dev/sdb (...
anthonyryan1's user avatar
2 votes
1 answer
219 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 ...
CarloC's user avatar
  • 385
0 votes
1 answer
92 views

Can not change ISCSI disk mount point to other directory

Problem: I can not change ISCSI disk mount point to other directory. Currently I have ISCSI disk mounted to /iscsi2 I would like to change it to /iscsi I changed /iscsi2 to /iscsi in /etc/fstab, but ...
klor's user avatar
  • 426
0 votes
1 answer
401 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/...
user1150896's user avatar
0 votes
0 answers
31 views

Device Notifier fails to safely remove USB drive Kubuntu

I have been using the command: rsync -av $localdir $usbdir to back up my local directories to NTSF formatted USB drives for years. I got a new system and now have a serious problem I am hoping ...
Jon Swanson's user avatar
1 vote
1 answer
96 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 ...
Daniele's user avatar
  • 488
1 vote
0 answers
224 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
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, ...
Martin Vegter's user avatar
12 votes
2 answers
3k 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,473
2 votes
0 answers
464 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
108 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 ...
Kaympe20's user avatar
0 votes
0 answers
226 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
2 votes
3 answers
461 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
  • 170
0 votes
0 answers
248 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

15 30 50 per page
1
2 3 4 5
12