Questions tagged [unmount]

76 questions
136
votes
5 answers

How to unmount, unrender or remove a component, from itself in a React/Redux/Typescript notification message

I know this question has been asked a couple of times already but most of the time, the solution is to handle this in the parent, as the flow of responsibility is only descending. However, sometimes, you need to kill a component from one of its…
Sephy
  • 48,024
  • 30
  • 119
  • 129
20
votes
9 answers

How to unmount drive in Google Colab and remount to another drive?

[Update] I closed the notebook and reopen it after 1.5h, now running drive.mount() will require a new key. Not sure the minimum amount of time needed to wait... not sure if that is normal to wait... I mounted to Google drive account A. Now I want to…
Raymond Kwok
  • 321
  • 1
  • 2
  • 6
9
votes
3 answers

How does Mac OS X know what programs are using a mounted filesystem?

This may sound like a silly question but up until recently if you tried to unmount a volume that was in use the Finder reported that it was in use, but not by whom. This is simple Unix functionality, if a file is open on a mount point, do not allow…
awiebe
  • 3,257
  • 3
  • 18
  • 31
8
votes
1 answer

React lifecycle animations

I'm trying to find a way to perform animation depending of the ReactElement's lifecycle, it's pretty easy to do an animation when the component has just been mounted, but I would do another one before the component unmount. I can't really use the…
soueuls
  • 2,093
  • 2
  • 18
  • 26
7
votes
1 answer

Unmounting a Component with a SetInterval in React

I'm trying to unmount a component with a setInterval. This is based on the answer here: Component: class ImageSlider extends React.Component { constructor(props) { super(props); this.state = { activeMediaIndex: 0 }; } …
lost9123193
  • 7,498
  • 18
  • 49
  • 87
7
votes
1 answer

Unmount my external hard drive in bash

So, this should apparently be really simple, but had trouble finding any good answers online. I have a mounted external usb hard drive. I would like to unmount it, using bash. (Essentially I'm just looking for the equivalent bash command for right…
Dennis
  • 381
  • 1
  • 8
  • 19
4
votes
4 answers

VBScript - Unmount USB drive

I have a tedious project coming up. I need to insert an USB flash drive into a computer, then copy over three files to that drive, and then unmount it and repeat 3000 times (literally). I was hoping to come up with some VBScript that can reduce my…
user736887
  • 43
  • 1
  • 5
4
votes
4 answers

losetup -d not working

I have setup 5 loop devices with backup files as raw 40 MB files in /tmp folder. $ losetup -l NAME SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE /dev/loop1 0 0 1 0 /tmp/1 /dev/loop2 0 0 0 0…
Shehbaz Jaffer
  • 1,764
  • 8
  • 21
  • 29
4
votes
2 answers

Is this Possible to know device Mounting and Unmounting Time in Ubuntu?

from dmesg we can know that particular device has been mounted or unmounted. But I want to know on which time the device has been mounted or unmounted.
Mark10
  • 167
  • 1
  • 12
3
votes
2 answers

Virtualbox boot mount won't unmount

I have what I think is a very useful script here if you use NetBeans on VirtualBox guest. There seems to be one problem: If you look at the script, it writes to a boot scripts that in turn, mounts NetBeansProjects from the Host system to Guest. This…
thejartender
  • 9,119
  • 6
  • 31
  • 50
3
votes
2 answers

Programmatically Unmounting drive from Java

Does anyone knows how to unmount a drive in java in OSx I am trying to unmount a sdcard from java. I am using java Swing class and the drive gets mounted automatically, but how do I unmount it.
3
votes
4 answers

Mount and unmount hard drives

How can I mount and unmount hard drives (platform independent, so no using Runtime to execute a hard-coded command) in the Java Programming Language?
user238033
3
votes
1 answer

Can I "safely remove" a USB device from Android OTG, after writing files to it?

This regards Android Lollipop 5.0 and above only. We have a custom device that can be mounted as a file system over USB. I've written an Android app that lets the user mount the device with OTG, after which we update files on the device. That part…
Bill Evans
  • 51
  • 6
3
votes
1 answer

Programmatically mounting USB storage on android 4.2.1

I've search and searched here, and no topics come close to answering the question. Mounting and unmounting a USB stick from within a rooted APK. I've been successful in doing it from the command line via adb as follows: prompt>> mount -t vfat -o rw…
user1762148
  • 51
  • 1
  • 4
3
votes
1 answer

how to create a folder in sdcard programmatically that can be shown directly in windows and in the phone

I created an android application in which it creates a folder that stores data, but I want it to be shown right away in windows when the usb is connected. right now, it can only be seen after i restarted the mobile device or mount and unmounted the…
She Smile GM
  • 1,302
  • 1
  • 11
  • 31
1
2 3 4 5 6