You are not logged in.

#1 2009-09-16 16:10:20

Pank
Member
From: IT
Registered: 2009-06-13
Posts: 371

/etc folder gone

Hello,
During partition-resizing I have somehow lost my /etc-folder. Naturally, I cannot boot arch. I have a lot of files in my lost+found folder but they have strange file names (some letters plus a number).

If the folder has somehow moved somewhere else I cannot locate (the command) it, since i cannot updatedb.

Is there some way to re-created the /etc-folder? Could I copy /etc from the installation-disk?

Thanks,
Rasmus


Arch x64 on Thinkpad X200s/W530

Offline

#2 2009-09-16 16:29:17

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: /etc folder gone

I'd say your best bet is to just reinstall the system. You might have some lock at restoring some of the files, but you probably will not restore them in full. Another option that might work would be reinstalling all the pkgs you have installed on your system from within a livecd environment after you restore the pacman /etc files.


Website - Blog - arch-home
Arch User since March 2005

Offline

#3 2009-09-16 16:36:12

zyghom
Member
From: Poland/currently Africa
Registered: 2006-05-11
Posts: 432
Website

Re: /etc folder gone

restore from backup - don't say you don't have it - everybody does backup from time to time smile


Zygfryd Homonto

Offline

#4 2009-09-16 16:38:02

Pank
Member
From: IT
Registered: 2009-06-13
Posts: 371

Re: /etc folder gone

Can I install on top of my old setup? Primarily, I am conserned about preserving my home drive (of course I could make a backup  and put

pyther,
How exactly would I go about your second suggestion? Would I copy /etc from the live cd and somehow let pacman analyze my system?

Thanks,
Rasmus

PS: Is there some utility to handle the files in lost+found or does one have to examine the files manually?


Arch x64 on Thinkpad X200s/W530

Offline

#5 2009-09-16 16:41:16

Pank
Member
From: IT
Registered: 2009-06-13
Posts: 371

Re: /etc folder gone

(Sorry for double-posting).
zyghom,
I had a backup but it was on a USB . . . And I formatted it to try Haiku yesterday.
Now it seems stupid I did not copy the backup to my NAS.

I guess I have learned my lesson  smile

I appreciate any hints though.

-Rasmus


Arch x64 on Thinkpad X200s/W530

Offline

#6 2009-09-16 17:27:52

tomd123
Developer
Registered: 2008-08-12
Posts: 565

Re: /etc folder gone

another reason why you should think what the command does before prepending sudo / su -c

What I would recommend is just backup your home and reinstall since if you don't know how it happened (I presume), then there could be other files missing in other folders.

Offline

#7 2009-09-16 18:50:34

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: /etc folder gone

Something like this might work from a livecd once you setup networking and what not

NOTE: NOT TESTED!!!!

pacman -Qq | xargs pacman -S -r /mnt/arch --noscriptlet --nodeps

I think this should work, but I don't have a system to test it on and I may have overlooked something


Website - Blog - arch-home
Arch User since March 2005

Offline

Board footer

Powered by FluxBB