failed rsync from Pi to Shared folder with rm -rf shenanigans - how to remove ghost data?

  • Hi all,


    So, Im making my way through burning to learning. I have a NextCloud instance on a pi 4 that finally died, but had some good data that I want to keep.

    I connect to it from my laptop via ssh ssh pi@10.0.1.47, where I navigate to my storage as root.


    from there, I open another ssh session, connecting to my OMV instance on my Proxmox server: ssh root@10.0.1.67 and create a sub directory inside my shared folder:


    root@omv-peT1102:/srv/dev-disk-by-uuid-dce1886d-59dc-4ec2-b361-b45424f16a61/OMV_Shared/test/ncp


    I check my file browser (mac) and it shows up, Sweet!

    I then send an rsync command from my pi to the folder I had just created:

    rsync -av . root@10.0.1.67:/srv/dev-disk-by-uuid-dce1886d-59dc-4ec2-b361-b45424f16a61/OMV_Shared/test/ncp


    all fine and dandy until I forgot to add screen and closed my laptop for the night, and the transfer was incomplete.

    I woke up to an incomplete transfer, and a folder that is not accessible at ALL.


    my next thought was, oh, i know, sudo rm -rf /ncp


    sweet, it doesnt show up in the terminal, when I send ls or ls -la, but the folder is still present and it is still taking up ~300GB of disk space..


    what are the steps of actually removing the data from this now ghost folder?


    Thanks in advance :)

  • votdev

    Approved the thread.
    • Official Post

    my next thought was, oh, i know, sudo rm -rf /ncp

    with this you delete the ncp folder on the root. It looks like this is not what you want.


    MAYBE you want

    rm -rf -i /srv/dev-disk-by-uuid-dce1886d-59dc-4ec2-b361-b45424f16a61/OMV_Shared/test/ncp


    Or just run the rsync job again to finish the task of copying the files.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!