Questions tagged [umount]

umount detaches a specified file system from the file tree.

44 questions
1
vote
2 answers

Android busybox command to gain root and umount

So, I have a device in which I need to unmount a dir. I wanted to run something like: Runtime.getRuntime().exec("system/bin/busybox/ umount /mydir/subdir"); The issue is that I need root to unmount. Can I gain root through busybox in a one line…
Mick0311
  • 161
  • 4
  • 11
0
votes
1 answer

How to get rid of "Device busy" during reboot, redhat 5.1 without modifying rc.sysinit?

I have a samba mount located within /opt. I have a script in init.d called sysinit that is linked to in rc6.d. This gets called on a reboot (the first thing, I set it to K01sysinit) and it is supposed to unmount the /opt directory. However, on…
SSB
  • 349
  • 3
  • 18
0
votes
0 answers

Unmount OverlaysFS directory with multiple lower directory

There are multiple directory mounted with physical device. lower0 -> /dev/blk/sda-0 lower1 -> /dev/blk/sda-1 lower2 -> /dev/blk/sda-2 lower3 -> /dev/blk/sda-3 Then I stacked them together using using overlayfs as shown…
CleanCoder540
  • 57
  • 1
  • 8
0
votes
0 answers

ext4 - Unable to umount block device

File system used is ext4. Unable to umount the block device because it is still in use by jbd2 process. ps command output. root 131678 0.0 0.0 0 0 ? S May19 0:10 _ [jbd2/nvme4n1-8] This process is in sleep state for long…
0
votes
0 answers

In Linux, how to do quick remove of USB device, like Windows, without file system impact or corruption?

In Linux, how to do quick remove of USB device, like Windows, without file system impact or corruption? I know the following: Lazy unmount will remove the mount reference, on USB device quick remove in Linux, but that does not protect file system,…
0
votes
1 answer

Unmounting and Mounting fileshare in azure

I have a storage account where fileshare has been mounted which includes nearly 300+ files in that fileshare. Now if I try unmounting it with below command, sudo umount /xyx/files Then what is the command to mount it back? Is it P sudo mount…
Trupti
  • 1
  • 1
0
votes
1 answer

Not able to unmount a Nas folder, target busy

I have some issues to unmount my Nas folder. When I try to unmount it with sudo umount /media/Nas6To i get a message telling me that the device is busy, and I cannot unmount it: thomas@NZXT:~$ sudo umount /media/Nas6To umount: /media/Nas6To: the…
iTom
  • 11
  • 4
0
votes
0 answers

'df' hangs after a connection to a mounted smb (cifs) storage was lost

First I mount a storage from an SMB server using the command sudo mount.cifs //{addr}/{path} /mnt/smb -o vers=2.0,guest Second, I down a network interface (through which I have access to the SMB storage). sudo ifconfig enp0s3 down After that…
0
votes
1 answer

umount of davfs2 mounted directory causes segfault on Fedora 31 (davfs2-1.5.5-1.fc31.x86_64)

dmesg shows : [6086030.335354] umount.davfs[1583255]: segfault ... Looks like the issue in : https://bugzilla.redhat.com/show_bug.cgi?id=1736871 which suggests using davfs2-1.5.6-1.fc30 How can I build / get a davfs2 which fixes this as in…
0
votes
1 answer

why to remount filesystem to read-only before unmounting in umountfs script?

On embedded Linux distribution with ext4, I have the following umountfs script: #!/bin/sh ### BEGIN INIT INFO # Provides: umountfs # Required-Start: # Required-Stop: # Default-Start: # Default-Stop: 0 6 # Short-Description: Turn…
user3518295
  • 180
  • 3
  • 14
0
votes
0 answers

Umount /dev/sda1 accidentally and now unable to open ubuntu in vmware

I ran out of memory in ubuntu 14.04 installed on VMWare Player. So i was trying to delete some file but accidentally used. sudo umount -l / this command made all the partitions of same configuration as that of /dev/sda1. Niether i am able to…
nile
  • 67
  • 2
  • 2
  • 5
0
votes
1 answer

deal with an improperly unmounted disk

I didn't properly unmount a new external disk which I mounted like: jeremy@jr:~$ sudo mount -t exfat /dev/sdc1 /home/jeremy/exfat FUSE exfat 1.2.3 and now I am stuck - jeremy@jr:~$ df -h df: /home/jeremy/exfat: Transport endpoint is not…
jeremy_rutman
  • 3,552
  • 4
  • 28
  • 47
0
votes
1 answer

How to merge unallocated space in Raspberry Pi?

I have a 300 GB external drive connected to a Raspberry Pi. I changed the file boot/cmdline.txt in order to use the SD card only to boot up the system. Then the partition /root is located in /dev/sda2 (external drive). How can I increase the size of…
0
votes
1 answer

sd card data broken after umount

I wrote an SD host-controller Linux driver for a totally customized board, using IP TE4395. With the driver I wrote, I can mount an SD card, read and write. when mounted, once I umount, the next mount will fail. command mount -o remount…
jianing
  • 153
  • 1
  • 1
  • 9
1 2
3