Urgent : big file deletion problem system centos 6

Issues related to applications and software problems
Post Reply
michael10fr
Posts: 1
Joined: 2020/03/31 10:39:28
Location: paris
Contact:

Urgent : big file deletion problem system centos 6

Post by michael10fr » 2020/03/31 10:50:44

Good morning, everyone,

I made a big mistake deleting system directories from linux centos6.

The unfortunate command launch is:

rm -rfv /usr/*

it knocked out the server in one fell swoop.

I've been working out of system mode rescue at O.V.H.

then managed to mount the RAID partition in the /mnt directory of the rescue mode OK

now I see the disk and I run the testdisk utility which shows me in red the directories I have deleted.

Here are the deleted directories:
/usr/bin
/usr/games
/usr/etc
/usr/include
/usr/lib

here's a screenshot here
https://snipboard.io/HDrFUV.jpg

so apparently the utility indicates 0 data ??

my question is if i install a linux system of the same version on vmware for example and i copy this file from my virtual machine can i start again normally ?

what would you do in my place?

because reinstalling the server is a big money as the database backups were not done and I don't know if I can get the databases back.
raw will run on another system??

How would you do it?

what do you think about delivering the files from another linux server with the same centos 6 version ?

thanks for your help

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Urgent : big file deletion problem system centos 6

Post by TrevorH » 2020/03/31 12:28:21

what would you do in my place?
I'd boot in rescue mode and copy all your data somewhere safe and then reinstall from scratch.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

tunk
Posts: 1205
Joined: 2017/02/22 15:08:17

Re: Urgent : big file deletion problem system centos 6

Post by tunk » 2020/03/31 14:49:59

And if you decide to reinstall, you may consider using
CentOS 7 or 8 - support for 6 ends later this year.

Post Reply