A duplicate bind mounted directory (as opposed to a device) on which.
![why cannot unmount disk why cannot unmount disk](http://qnapsupport.net/wp-content/uploads/2016/08/Qnap-file-system-check-unmount-volume-1.jpg)
The original namespace hidden (no more files could be opened, the problem can't get worse).Sudo mount -o bind,ro "$null_dir" "$original" Sudo mount -make-private "$original_duplicate" # Don't propagate/mirror the empty directory just about hide the original Sudo mount -o bind,ro "$original" "$original_duplicate" # So, avoid remount, and bind mount instead: # still files open for writing on the original as each mounted instance is # A request to remount,ro will fail on a `-o bind,ro` duplicate if there are Here's how: null_dir=$(sudo mktemp -directory -tmpdir empty.XXXXX") Hide the original mount point and block the namespace:.Temporarily duplicate the mountpoint with mount -o bind /media/hdd /mnt to another location.Why not use use fuser earlier? Well, you could have, but fuser operates upon a directory, not a device, so if you wanted to remove the mountpoint from the file name space and still use fuser, you'd need to: Read-only re-mount achievement unlocked ?☑Ĭongratulations, your data on the mountpoint is now consistent and protected from future writing. If you can't remount read-only at this point, investigate some of the other possible causes listed here.
![why cannot unmount disk why cannot unmount disk](https://www.remosoftware.com/info/wp-content/uploads/2018/06/Unmount-in-Windows-1280x720.jpg)
You should then be able to remount the device read-only and ensure a consistent state.
![why cannot unmount disk why cannot unmount disk](https://images.wondershare.com/recoverit/article/2020/03/could-not-unmount-disk-3.jpg)
If you are unlucky, focus only on processes with files open for writing: lsof +f - /dev/ | awk 'NR=1 || $4~/+/' Mount -o remount,ro /dev/device is guaranteed to fail if there are files open for writing, so try that straight up.
WHY CANNOT UNMOUNT DISK INSTALL
I would like to clean install OS X lion again.
WHY CANNOT UNMOUNT DISK MAC OS X
Is that disk2 the reason why I cannot partition my main HD? How can I unmount or erase that disk2 Mac OS X Base system ?
![why cannot unmount disk why cannot unmount disk](https://www.poftut.com/wp-content/uploads/2020/04/image-62.png)
So I tried using Terminal to force unmount that disk, but still it doesn't let me. I tried to unmount it or erase that disk2, but it won't let me. As far as I know, I didn't see that disk2 in my disk list before. In Disk Utility, I found another disk called disk2 and Mac OS X Base System. But, when trying to partition, Disk Utility said that it cannot unmount the disk. So I tried to use Disk Utility to erase the startup disk and make a new partition. I tried to reinstall, but nothing came up. So, I tried to reboot again, but it said that the reinstallation failed and asked me to reinstall again. I don't have any Time Machine backups.Įverything went file, but in the middle of the installation, it got stuck, and later the installation failed without any reason. My Mac running Lion was being slow, so I was decided to reinstall OS X.