How do i find / reclaim space after a failed tar operation

New to Debian (Or Linux in general)? Ask your questions here!

How do i find / reclaim space after a failed tar operation

Postby tdiguy » 2017-11-14 22:31

I was trying to archive and compress an entire drive to another drive and my child ended up in front of my computer and managed to cancel the operation about 3/4 of the way through.
I now have a drive ( the source ) that is 90% full and the destination does not seem like it was written to at all.
The exact command i was using was:
sudo tar -czvf /media/emby/* disk-temp/Movies-archive.tar.gz
I cant figure out what is using so much disk space on /media/emby but its now at 90% and the destination is nearly empty

Also of note, i rebooted the system in hopes that it was a temp file.
tdiguy
 
Posts: 14
Joined: 2017-10-12 13:48

Re: How do i find / reclaim space after a failed tar operati

Postby Ardouos » 2017-11-14 22:39

Download and install ncdu. It is a great tool that uses an ncurses interface so you can see what is using all of your storage in the terminal.

You can also use k4dirstat if you want a shiney interface.

Edit: Grammar.
Last edited by Ardouos on 2017-11-15 12:41, edited 1 time in total.
User avatar
Ardouos
 
Posts: 955
Joined: 2013-11-03 00:30
Location: Elicoor II

Re: How do i find / reclaim space after a failed tar operati

Postby tdiguy » 2017-11-14 22:46

Ahh ok it seems there was a problem with the formatting my my tar command. It looks like it started backing up my source drive into the first directory of my source drive.
That explains a lot, also thanks for the tip with the ncdu program really handy for cli access!
tdiguy
 
Posts: 14
Joined: 2017-10-12 13:48

Re: How do i find / reclaim space after a failed tar operati

Postby p.H » 2017-11-16 09:47

Ideed, wrong formatting. The destination file must be right after the "f" option.
By the way, it overwrote the contents of the first file listed by /media/emby/*.
p.H
 
Posts: 178
Joined: 2017-09-17 07:12


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable