umount detaches a specified file system from the file tree.
Questions tagged [umount]
42 questions
1
vote
2 answers
trigger alert when a specified command executes in linux
I have 3 samba shares mounted in my system, but suddenly, one of them gets umounted without my permision. Maybe one of houndreds of scripts which run in my crontab, but i dont know which one.
I've reviewed all /var/log directory looking for umount…
![](../../users/profiles/472866.webp)
avances123
- 1,765
- 3
- 17
- 21
1
vote
1 answer
How to umount a busy windows file using Ubuntu in WSL?
I must unmount drvfs and remount it with the ‘metadata’ flag to use a new file system features to WSL that allows making changes in permissions in WSL.
But when I do this:
sudo umount /mnt/c
It returns
umount: /mnt/c: target is busy
How can I force…
![](../../users/profiles/11313387.webp)
KPC
- 19
- 5
1
vote
1 answer
Bash umount command substitution
I'm running RHEL 7 and bash here. It seems command substitution does not work for the umount command. It does, however, work as usual for other commands. For example:
[root@localhost ~]# msg=$(umount /u01)
umount: /u01: target is busy.
(In…
![](../../users/profiles/5430953.webp)
Dude
- 91
- 1
- 10
1
vote
0 answers
What is the use of cap_set_proc() if the program needs to be run as root
I am trying to unmount a usb-storage device through a c++ program, using umount2() function. Since umount2() needs administrative privileges, I implemented umount2() with cap_set_proc() as follows
cap_t caps;
cap_value_t cap_list[1];
caps =…
![](../../users/profiles/5893603.webp)
vacky
- 237
- 3
- 15
1
vote
0 answers
Invalid argument error while using umount() function
I am trying to unmount a usb-storage device through a c++ code as follows.
while(umount("/dev/sdc1/")!=0)
{
std::cout << "ERROR: " << strerror(errno) << std::endl;
std::this_thread::sleep_for (std::chrono::seconds(2));
}
But, I get an…
![](../../users/profiles/5893603.webp)
vacky
- 237
- 3
- 15
1
vote
2 answers
Error happens when trying to umount the Lustre file system
When I umount Lustre FS it displays:
[root@cn17663-ens4 mnt]# umount /mnt/lustre
umount: /mnt/lustre: target is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
and if I add the…
![](../../users/profiles/7755544.webp)
Li Hongbo
- 11
- 5
1
vote
0 answers
Freenas gave wrong mount command to /mnt freenas filesystem
My colleague made a mistake and gave:
mount -t nfs freenasip:\mnt\backup \mnt
on FreeNAS server itself instead of other server where it was to be mounted. Immediately he ran:
umount freenasip:\mnt\backup
but it hanged. Now both mount -a and…
![](../../users/profiles/4025599.webp)
munish
- 11
- 4
1
vote
1 answer
how to umount from python script
i want to umount a mounting point named VirtualDVD.
i want to run the command, "gksudo umount VirtualDVD"
My function is:
def umount(self):
'''unmounts VirtualDVD'''
cmd = 'gksudo umount VirtualDVD'
proc = subprocess.Popen(str(cmd),…
![](../../users/profiles/1261030.webp)
demosthenes
- 998
- 1
- 11
- 17
1
vote
1 answer
unshare system call doesn't work
The following simple C++ program attempts to unshare the mount space, mount a USB storage device (located on /dev/sdd), waits for input, and then umounts that device.
#include
#include
#include
#include…
![](../../users/profiles/6156220.webp)
Young Griff
- 21
- 5
1
vote
1 answer
How do you force a Linux process (Java webstart App) to stop locking a Filesystem (CD-ROM) WITHOUT killing the process?
In Linux (CentOS 5.4), how do you force a process to stop locking a file system without killing the process?
I am trying to get my Java Webstart Application, running locally, to eject a CD. I do not have this problem if I am just browsing through…
![](../../users/profiles/328210.webp)
Blake
- 152
- 1
- 5
1
vote
1 answer
Sudo in Java's Runtime.exec & gksu for umount
I am writing a Java application in which (among other stuff) I'd mount a external device, do some copying, and then unmount it.
//I am mounting several devices in created dirs named sdb, sdc... according to the partitions
String[] command =…
![](../../users/profiles/3484800.webp)
Yellrag
- 83
- 6
1
vote
2 answers
Where's umount system call?
In the file util-linux-2.17.2/mount/umount.c, line #246, it is written res = umount (node);.
But where's the umount function located? I've searched so much, but didn't find.
![](../../users/profiles/207812.webp)
Dor
- 6,916
- 4
- 28
- 45
1
vote
1 answer
Delete mounting directory after umount -l
I'm working on Linux OpenWrt where I have to mount and umount manually USB disks when they are attached to the router.
I'm using this script: http://wiki.openwrt.org/doc/howto/writable_ntfs#with.a.custom.hotplug.script to mount and unmount…
![](../../users/profiles/1818123.webp)
Yacine Hebbal
- 364
- 2
- 16
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…
![](../../users/profiles/913356.webp)
sqenixs
- 349
- 3
- 17
0
votes
0 answers
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…
![](../../users/profiles/15670869.webp)
iTom
- 1
- 1