Questions tagged [unmount]

92 questions
166
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
  • 50,022
  • 30
  • 123
  • 131
35
votes
10 answers

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

I mounted to Google drive account A. Now I want to switch to account B but I cannot do that, because there is no way for me to enter a new authentication key when executing drive.mount(). What I have tried and failed: restart browser, restart…
Raymond Kwok
  • 2,461
  • 2
  • 9
  • 11
13
votes
1 answer

Animate Presence exit not working framer motion

Animate presence exit prop is not working what i am doing wrong?
Mr SaaD
  • 133
  • 1
  • 1
  • 6
10
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
  • 421
  • 1
  • 10
  • 22
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,758
  • 4
  • 22
  • 33
9
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
  • 10,460
  • 26
  • 73
  • 113
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…
Swann
  • 2,413
  • 2
  • 20
  • 28
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
2 answers

How can we mount a file as read-only in Linux through Go?

I want to know how can we mount an file as read-only in Linux CentOS 7 Server through Golang. I have tried syscall but that doesn't work, syscall mounts the file but as read-write i have tried to give ro argument in the data but still it's mounting…
DeepakXUV
  • 43
  • 3
4
votes
2 answers

How to avoid unmounting of children components when using JSX's map?

This is a more concise version of a question I raised previously. Hopefully, it's better explained and more understandable. Here's a small app that has 3 inputs that expect numbers (please disregard that you can also type non-numbers, that's not the…
ptrico
  • 1,049
  • 7
  • 22
4
votes
1 answer

Why closing a page does not unmount the component

I know there is normally unmounting the child in a parent and it's not okay to unmount a child itself. But I am just curious about it that why the unloading (closing the page) will not trigger the unmount event. Something interesting behind this…
Hearen
  • 7,420
  • 4
  • 53
  • 63
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,944
  • 8
  • 23
  • 30
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.
John3245
  • 177
  • 2
  • 13
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,339
  • 6
  • 34
  • 51
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.
1
2 3 4 5 6 7