I have taken a backup of a large directory onto a mounted external disk, using rsync -av
. The command terminated after sometime, but after that I am unable to unmount the disk, when I try to unmount I get the error disk is busy, try after some time
.
Is the data been cached up and the copying is still in progress? How can I know when the copying is finally done and I can unmount?
Or, is there a better way to take a backup of a large directory?
(This is on ubuntu 20.04)
unison-gtk
orrsnapshot
depending if it's one-off or a regular backup. (Timeshift focuses on system-level directories;rsnapshot
is really for home directories, etc.) As for finding out why it's busy, typesudo lsof <path>
and it will tell you what is still using it. If you have some terminal still in that directory, that's enough to prevent unmounting. – Ray May 20 '21 at 04:13