Wiped out local and mobile disks thoroughly...

12 respostas [Última entrada]
nadebula.1984
Desconectado
Joined: 05/01/2018

I wanted to move the root directory to a portable disk. But I entered "rm" instead of "mv" by mistake.

Now both disks are emptied.

Is there any free/libre data recovery software?

Magic Banana

I am a member!

I am a translator!

Desconectado
Joined: 07/24/2010

You can try PhotoRec: https://www.cgsecurity.org/wiki/PhotoRec

In Trisquel's repository, you can have it installing the "testdisk" package. Notice that you can install it in a live session. You should write down the recovered files to another disk.

nadebula.1984
Desconectado
Joined: 05/01/2018

Thanks. Sounds fine...

I still keep a Trisquel Live USB.

SuperTramp83

I am a translator!

Desconectado
Joined: 10/31/2014

photorec is da best :)

nadebula.1984
Desconectado
Joined: 05/01/2018

Testdisk and Photorec are really good.

This time, I meant to make a demonstration of basic GNU/Linux operations. However, the result was disastrous...

jxself
Desconectado
Joined: 09/13/2010

This is why it's a good idea to always have backups.

nadebula.1984
Desconectado
Joined: 05/01/2018

I always have backups. But the backups are wiped out as well. Just because I entered "rm" instead of "mv".

jxself
Desconectado
Joined: 09/13/2010

Oh there's your problem then: As you experienced, backups don't do any good if they're online, connected to the machine, and can be destroyed at the same time. This is they should be *offline* backups; i.e. only connected to the computer when they're being updated and then unplugged.

nadebula.1984
Desconectado
Joined: 05/01/2018

Yes, I was about to update my offline backup on a (dedicated) portable HDD, and resulted in disaster...

onpon4
Desconectado
Joined: 05/30/2012

Question: why did you do this as root? Why not just "cp -r /home /media/whatever"?

nadebula.1984
Desconectado
Joined: 05/01/2018

I always use "sudo rm -rf" to delete files irreversibly. So I set the literal "rm" as an alias for "rm -rf".

Because I wanted to move files to the root directory of the portable disk, I had to use "sudo" as well.

The collective result was "sudo rm -rf source destination".

Magic Banana

I am a member!

I am a translator!

Desconectado
Joined: 07/24/2010

You could at least add -I to your alias.

loldier
Desconectado
Joined: 02/17/2016

They say you don't have backups if you only have one on-site copy.

https://www.howtogeek.com/219197/youre-not-backing-up-properly-unless-you-have-offsite-backups/