Kingston 64 Bit Thumb Drive: Umount Not Installed: Target is Busy SOLVED

OP
Alexzee

Alexzee

Well-Known Member
Joined
Jun 1, 2019
Messages
2,941
Reaction score
1,470
Credits
16,441
Commiserations, Alex. It is hard losing a family member....particularly hard when they were close as you and your Uncle were.

It has been said that time heals all wounds. I don't agree. The wounds remain. Time — the mind, protecting its sanity — covers them with some scar tissue and the pain lessens, but it is never gone. Rose Kennedy.

Cry, mate.....as much as you like, and need to.
Thanks, brother--
 


wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
8,642
Reaction score
7,599
Credits
35,389
Alex, I am sure that those of us who know you well, and even those who don't but have seen how giving you are around the forum, will join with me in wishing condolences on you and your family.

I found Brian's quote from Rose Kennedy very comforting for me over the last (nearly) 11 months, and I still do.

Chris
 

JasKinasis

Well-Known Member
Joined
Apr 25, 2017
Messages
1,706
Reaction score
2,471
Credits
13,702
If the memory stick was formatted as NTFS or FAT/VFAT, there is a system process (I forget which one) that tends to end up keeping the device open and preventing you from in mounting the device. I’ve seen this a few times.

Attempting to unmount the disk while the process is still running, results in a "Device is busy" error message. The only way to unmount is to kill the process first.

For the life of me, I can’t remember which process it was. But to find out, I remember using lsof /dev/sdx, where /dev/sdx was the path to the device that’s being blocked by the process.
That yielded the name of the process that was keeping the device open. Then it was just a case of killing the running process and then it was possible to actually unmount the device.
 
OP
Alexzee

Alexzee

Well-Known Member
Joined
Jun 1, 2019
Messages
2,941
Reaction score
1,470
Credits
16,441
If the memory stick was formatted as NTFS or FAT/VFAT, there is a system process (I forget which one) that tends to end up keeping the device open and preventing you from in mounting the device. I’ve seen this a few times.

Attempting to unmount the disk while the process is still running, results in a "Device is busy" error message. The only way to unmount is to kill the process first.

For the life of me, I can’t remember which process it was. But to find out, I remember using lsof /dev/sdx, where /dev/sdx was the path to the device that’s being blocked by the process.
That yielded the name of the process that was keeping the device open. Then it was just a case of killing the running process and then it was possible to actually unmount the device.
IT was formatted as FAT by Foxclone.
I used lsof to stop the process and the cmd-line returned "Terminated"
However, I couldn't seem to unmount it even with the kill cmd and the exact pid:-
Next time I'll kill the process first if it happens again.

When I have more time I'll make a note of what you typed out so I don't forget in the future. Thanks! Jas-
 
OP
Alexzee

Alexzee

Well-Known Member
Joined
Jun 1, 2019
Messages
2,941
Reaction score
1,470
Credits
16,441
I usually take notes on the advise I'm given so I don't have a repeat in the future.
Got really low energy right now, so I'll be back later and then mark the thread solved--
 
OP
Alexzee

Alexzee

Well-Known Member
Joined
Jun 1, 2019
Messages
2,941
Reaction score
1,470
Credits
16,441
Ahhh... sounds like the 'ole stuck in cache' gotcha.

A lot of times, if you're reading from, or writing to an external device, like a USB thumb drive for example.
Usually this happens when copying a large file to or from the USB drive.

The GUI progress bar or even the CLI prompt will come back, and you'll think good it's finished.
But in reality your computer is lying to you.

I've found that running a 'sync' usually helps speed things up a little.

#> sync; eject

or

#> sync; umount /my/really/long/path/to/some/mount/point/somewhere

that sometimes forces it to "really" finish writing whatever it's doing.
In the GUI some desktops give you the "safe to remove drive" like windows does.
Very helpful, thanks!
 

bob466

Well-Known Member
Joined
Oct 22, 2020
Messages
989
Reaction score
725
Credits
7,297
Alexzee,

I'm very sorry for your loss.
 
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com

Members online


Top