Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why does umount say, “device is busy”?

umount
0
Posted

Why does umount say, “device is busy”?

0

That just means you’re still using the filesystem on that device. Unless something has gone very wrong, you should be able to unmount after you stop using the filesystem. Here are a few ways you might be using the filesystem without knowing it: • NFS might be exporting it. Stopping the NFS service will unuse the filesystem. • A process might be holding open a file on the filesystem. Killing the process will unuse the filesystem. • A process might have some directory on the filesystem as its current working directory. In that case, you can kill the process or (if it’s a shell) cd to some other directory that’s not on the fs you’re trying to unmount. The lsof command can be helpful in finding processes that are using files.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123