Earlier today, I made a home partition but accidentally labeled it "Home" instead of "home". And I was following this tutorial on how to transfer files from the old home folder to the new partition.
However, I accidentally used this command:

sudo rsync -aXS --progress --exclude='/*/.gvfs' /home/. /media/home/.

Instead of this one:

sudo rsync -aXS --progress --exclude='/*/.gvfs' /home/. /media/Home/.  

And now, I don't have space on the filesystem root partition and I have an undeleteable folder in /media (actually two from another mistake).
This is the error message:

rsync: write failed on "/media/home/oussema/Videos/Course": No space left on device (28)
rsync error: error in file IO (code 11) at receiver.c(393) [receiver=3.1.2]  

I can't make screenshots now to show the state of folders but I think it's clear.


Since these directories are the result of failed backup attempts, I assume that you have no data in them that you want to preserve, or that you've already saved the data elsewhere.

NOTE be sure to type this command accurately - you can break your system with typos in this command.

sudo rm -rf  /media/Home 

This will delete the directory, and all the files and directories beneath it.

  • Actually, I need to delete the "/media/home" not "/media/Home". I just found this command a minute ago and executed it with success. Thank you for writing an answer. I will mark it as accepted after editing it.
    – Oussema
    May 30 '18 at 19:28
  • nevermind, I'll just accept it
    – Oussema
    May 31 '18 at 13:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.