[PVE-User] Proxmox - BIG PROBLEM

Jean-Daniel TISSOT Jean-Daniel.Tissot at Univ-FComte.FR
Sat Aug 3 18:36:33 CEST 2019


Hi

Yes, certainly that.

But, I think, you must put these aliases in your .bashrc :

# Some more alias to avoid making mistakes:
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

Le 29/07/2019 à 18:55, Frédéric MASSOT a écrit :
> Le 29/07/2019 à 10:55, lord_Niedzwiedz a écrit :
>> I ran a command on the server by mistake:
>>
>> rm /*
>> rm: cannot remove '/Backup': Is a directory
>> rm: cannot remove '/boot': Is a directory
>> rm: cannot remove '/dev': Is a directory
>> rm: cannot remove '/etc': Is a directory
>> rm: cannot remove '/home': Is a directory
>> rm: cannot remove '/media': Is a directory
>> rm: cannot remove '/mnt': Is a directory
>> rm: cannot remove '/opt': Is a directory
>> rm: cannot remove '/proc': Is a directory
>> rm: cannot remove '/Roboczy': Is a directory
>> rm: cannot remove '/root': Is a directory
>> rm: cannot remove '/rpool': Is a directory
>> rm: cannot remove '/run': Is a directory
>> rm: cannot remove '/srv': Is a directory
>> rm: cannot remove '/sys': Is a directory
>> rm: cannot remove '/tmp': Is a directory
>> rm: cannot remove '/usr': Is a directory
>> rm: cannot remove '/var': Is a directory
>>
>> Strange machines work.
>> I'm logged in gui.
>> But I can not get to the machine VM.
>> Do not execute any commands.
>> What to do ??!!
>> From what I see, I deleted my catalogs:
>> / bin
>> / lib
>> / lib64
>> / sbin
>> WITH /.
>> How is this possible ??!!
>
> You definitely have a distribution with a "/usr" merged.
>
> https://wiki.debian.org/UsrMerge
>
> The "rm" command has removed all files on root except folders. Symbolic
> links from "/usr" merged have also been removed. You have to recreate
> them by hand. Maybe by starting the machine on a live or rescue system.
>
> bin -> usr/bin
> lib -> usr/lib
> lib64 -> usr/lib64
> sbin -> usr/sbin
>
>
-- 
Bien cordialement, Jean-Daniel TISSOT <https://chrono-environnement.univ-fcomte.fr/acteurs/annuaire/article/tissot-jean-daniel>
Administrateur Systèmes et Réseaux
Service Informatique UMR Chrono-environnement <https://chrono-ocs.univ-fcomte.fr/wiki_info/index.php/Accueil>
Tel: +33 3 81 666 440 Fax: +33 3 81 666 568

Chrono-environnement

Laboratoire Chrono-environnement <http://chrono-environnement.univ-fcomte.fr/>
16, Route de Gray
25 030 BESANÇON Cedex

Plan et Accès <https://umap.openstreetmap.fr/fr/map/service-informatique-chrono-environnement_239834?scaleControl=true&miniMap=true&scrollWheelZoom=false&zoomControl=true&allowEdit=false&moreControl=true&searchControl=false&tilelayersControl=false&embedControl=false&datalayersControl=true&onLoadPanel=undefined&captionBar=true&datalayers=611097&locateControl=false&measureControl=false&editinosmControl=false#19/47.24516/5.98446>



More information about the pve-user mailing list