You are not logged in.

#1 2009-08-09 19:42:46

pritchard92
Member
Registered: 2009-06-19
Posts: 62

PANIC! /etc/ diretory wiped from my server?!

Yeah. I have no idea how that happened! I ssh'd in. Deleted my rsa_id keys as I was going to regenerate them to allow password-less logins.

Its gone. Totally gone. The only thing left is the ssh folder, purely because I tried restoring the few files I deleted (literally only the id_rsa.pub files) from Thunar's wastebasket.

Ideas?
I still have SSH access for now, though I havent properly set up the SSH keys, so im keeping this connection for as long as possible. I just dont know what to do! I have no idea how this happened.
There's too much important stuff in there to restore. This server contains media that took ages to get on the server, so id like to fix this without wiping. But I know that thats just impossible. Is this a job requiring a reinstallation..?

OMG

Offline

#2 2009-08-09 19:57:55

pritchard92
Member
Registered: 2009-06-19
Posts: 62

Re: PANIC! /etc/ diretory wiped from my server?!

Don't think I'll be able to do anything tonight.
Only thing I can do is learn from this, and plan the reinstallation tomorrow. I have a small XP partition on it. I can backup some of the media onto that.

Any ideas on a partition strategy? I originally had a 120GB HD set out as follows:
30GB XP (just incase)
1GB Swap
And the rest for /. Just arch in general. Thought this mad backups a bit daunting. Ive heard that having /etc/ and /home/ on seperate partitions is quite useful. Ideas?

Offline

#3 2009-08-09 20:31:01

pritchard92
Member
Registered: 2009-06-19
Posts: 62

Re: PANIC! /etc/ diretory wiped from my server?!

Wow. I found an /etc directory inside my /boot directory. I may have accidentally dragged it into the boot directory with a swipe of the touch..
Wow. Panic averted. Although I was quite excited at the thought of redesigning my setup..

Last edited by pritchard92 (2009-08-09 20:31:47)

Offline

#4 2009-08-09 21:41:26

bostonvaulter
Member
Registered: 2008-07-17
Posts: 36

Re: PANIC! /etc/ diretory wiped from my server?!

Glad it worked out for you. You should edit the subject to say [solved]

Last edited by bostonvaulter (2009-08-09 21:41:49)

Offline

#5 2009-08-09 21:45:47

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: PANIC! /etc/ diretory wiped from my server?!

For future reference, you can't put /etc on a separate partition. It has to be on / since fstab is there. How would the boot process know where to mount /etc from since the file describing the mount points lives in /etc ?

Putting /home on a separate partition, OTOH, is a really good idea, and many people here do that.

Offline

#6 2009-08-10 07:18:32

jelly
Administrator
From: /dev/null
Registered: 2008-06-10
Posts: 714

Re: PANIC! /etc/ diretory wiped from my server?!

be like breunig and get your /etc back even after rm -rf it. smile

Offline

#7 2009-08-11 07:26:49

dezza
Member
From: Denmark
Registered: 2007-04-05
Posts: 126

Re: PANIC! /etc/ diretory wiped from my server?!

/etc/ partitions rock.

How large do you make your /etc/ partitions? And which FS do you recommend?

EDIT: my /etc/ is currently only 6.9MB lol.

Last edited by dezza (2009-08-11 17:39:22)

Offline

#8 2009-08-11 15:10:03

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: PANIC! /etc/ diretory wiped from my server?!

An entire partition for /etc is probably overkill.  But if you're going to go through with it, ten to twelve megabytes and ext2 (with the -m0 argument, so there is no space being wasted for root reservation) is [more than] enough.

Last edited by Wintervenom (2009-08-11 15:11:03)

Offline

#9 2009-08-11 22:56:21

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: PANIC! /etc/ diretory wiped from my server?!

Wintervenom wrote:

An entire partition for /etc is probably overkill.  But if you're going to go through with it, ten to twelve megabytes and ext2 (with the -m0 argument, so there is no space being wasted for root reservation) is [more than] enough.

But where do you hide your pr0n if /etc/sshd/config/setup/conf/.pr0n is so small!? tongue

Offline

Board footer

Powered by FluxBB