You are not logged in.

#1 2009-01-25 06:04:36

anarxi
Member
From: schaumburg, IL
Registered: 2008-12-20
Posts: 55
Website

How to restore system? messed up libs. [solved]

Em.. I exidently moved some libs, somewhere. Don't know how exactly, I was playing with sasl in

/usr/lib/sasl2/

I backed up sql libs to sql folder

mkdir sql
cp mysql* sql/*

then I deleted sql libs for testing purposes, and after a while I came back to this directory, to restore libs.

inside /usr/lib/sasl2/ I executed

mv /sql/* ../*

I might have misstyped something, but I'm not sure because after that the system went down. nothing worked pacman said I missing some libs, wget said I'm missing some libs, ls command didint worked /bin/ls no such file or directory and so on. now the system won't even start, says grub error 15.

I could reinstall the system, but I'd learn the approach to fix something like this

Last edited by anarxi (2009-01-25 07:23:15)


there is now knowledge that is not power

Offline

#2 2009-01-25 06:38:36

rok3
Member
From: NJ, USA
Registered: 2008-03-09
Posts: 44

Re: How to restore system? messed up libs. [solved]

First make sure that you still have the required files in the directory you made first by

 ls /usr/lib/sasl2/sql

then

mv /sql/* ../*

Should read

mv sql/* ./

That's assuming that you are in /usr/lib/sasl2/

/sql = /sql
where in this case
sql = /usr/lib/sasl2/sql

Offline

#3 2009-01-25 06:59:43

anarxi
Member
From: schaumburg, IL
Registered: 2008-12-20
Posts: 55
Website

Re: How to restore system? messed up libs. [solved]

I understand all that, and thats why its so interesting why everything stopped working if in worst case scenario I only messed sasl2 libs.

every command stoped working, I could not execute even "ls" which said /bin/ls no such file or directory.

I'll try to boot from usb, mount hard drive and check if files are there or something, I was running couple services like postfix and bind with public access without finishing confugring them. maybe it was just coincidence that I was playing with libs, and I was actually hacked smile


there is now knowledge that is not power

Offline

#4 2009-01-25 07:14:59

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: How to restore system? messed up libs. [solved]

You have to be very careful using mv command [I prefer to cp! just in case]

Try chrooting in [see wiki!] to fix some of the problems to get booting system

Failing that backup important files configs etc and reinstall

my2c


Mr Green

Offline

#5 2009-01-25 07:15:35

anarxi
Member
From: schaumburg, IL
Registered: 2008-12-20
Posts: 55
Website

Re: How to restore system? messed up libs. [solved]

I booted from arch usb, mounted partition to check whats there, and it looks weird, I got only "dev lib proc sbin srv sys tmp usr var". can't figure out what happened neutral which log should I check and what to look for?


there is now knowledge that is not power

Offline

#6 2009-01-25 07:17:40

anarxi
Member
From: schaumburg, IL
Registered: 2008-12-20
Posts: 55
Website

Re: How to restore system? messed up libs. [solved]

hehe, I found all the directories I'm missing in var smile


there is now knowledge that is not power

Offline

Board footer

Powered by FluxBB