Off-Topic > Off-Topic - Tiny Core Lounge
linux 5.10 used in alpine linux
Rich:
Hi vinnie
--- Quote from: vinnie on July 01, 2021, 09:23:44 AM --- ... Do you know why? I found that command just because I couldn't unmount the disk that was always busy, ...
--- End quote ---
A drive will be busy if a file is open for reading or writing. There is a less obvious reason a drive will be busy if you
are not aware of it. That is just being in a directory on the drive, such as:
1. From a terminal or console, cd /mnt/drive. The drive will be busy.
2. Same holds true for Midnight Commander (mc). Have it display the contents of /mnt/drive and the drive will be busy.
3. Most if not all file managers will behave like Midnight Commander.
Interestingly, using the file dialogs such as File->Open or File->Save As in an editor or web browser did not exhibit that behavior. They likely close the directory after reading it. A directory, like everything else in Linux is just a file.
You can try to find what's blocking the umount command like this:
--- Code: ---sudo lsof /dev/sda2 | grep -E "DIR|REG"
--- End code ---
Use the full lsof , not the busybox version
curaga:
Because it's not actually unmounting until later. And you don't know when "later" is. So when you pull the stick, it could still be mounted.
nick65go:
https://www.alpinelinux.org/posts/Alpine-3.15.0-released.html
Linux kernels 5.15 (LTS) + xorg-server 21.1 + Initial support for UEFI Secure Boot on x86_64; etc.
Navigation
[0] Message Index
[*] Previous page
Go to full version