Re: i have lost /etc

2008-03-28 Thread visc
Just a noob here (so take with a big grain of don't blame me), but if an
rm -rf /etc actually is what happened imho you'd need to REALLY want your
config files to spend the time attempting recovery.

/home should still persist just fine regardless of your partitioning
scheme unless you did something silly on day 1 like change the default
home to /etc/home.

You should wait for better minds than mine to confirm, but you could
probably either:

- Boot from an install media (CD, etc - I don't know if hd0a:/bsd.rd
would work in this case or not? List?) and (U)pgrade following
recommended procedures. You'd still need to start from a fresh /etc
though.

- If you have the capability, you could toss the drive into another
device and mount your home partition to grab yer stuff.

Scott

 Hi list,

 Please someone help me I have deleted my /etc dir (rm
 -rf /etc), is there any way to recover it, or there is
 a way to recover my data stored in /home ???

 Rergards




 !Capacidad ilimitada de almacenamiento en tu correo!
 No te preocupes mas por el espacio de tu cuenta con Correo Yahoo!:
 http://correo.yahoo.com.mx/



Re: i have lost /etc

2008-03-28 Thread Marc Balmer

Rafael Morales wrote:


Please someone help me I have deleted my /etc dir (rm
-rf /etc), is there any way to recover it, or there is
a way to recover  my data stored in /home ??? 


restore(8)



i have lost /etc

2008-03-27 Thread Rafael Morales
Hi list,

Please someone help me I have deleted my /etc dir (rm
-rf /etc), is there any way to recover it, or there is
a way to recover  my data stored in /home ??? 

Rergards


  

!Capacidad ilimitada de almacenamiento en tu correo!
No te preocupes mas por el espacio de tu cuenta con Correo Yahoo!:  

http://correo.yahoo.com.mx/



Re: i have lost /etc

2008-03-27 Thread Emilio Perea
On Thu, Mar 27, 2008 at 08:56:41PM -0500, Rafael Morales wrote:
 Please someone help me I have deleted my /etc dir (rm
 -rf /etc), is there any way to recover it, or there is
 a way to recover  my data stored in /home ??? 

For /etc look in /var/backups/ (for /home you're on your own).



Re: i have lost /etc

2008-03-27 Thread Nick Holland
Rafael Morales wrote:
 Hi list,
 
 Please someone help me I have deleted my /etc dir (rm
 -rf /etc), is there any way to recover it, or there is
 a way to recover  my data stored in /home ??? 
 
 Rergards

restore from backup? :)
something tells me this is not an option.  Actually, even if
it is an option, you probably need to get the system up enough
to do your restore...

Several ways.  Easiest might just be to reinstall OpenBSD from
scratch, but don't touch your /home partition (when it asks
where to mount it, say none), then add it to /etc/fstab after
reboot.  You did put /home in a separate partition, right? :)

You could also boot bsd.rd, and do something like:
mount /dev/wd0a /mnt
cd /mnt
tar xzpf /path/etc.tgz

then go through and re-customize it.  You will be worried about
hostname.if, hosts, myname, mygate, resolv.conf, but also other
files, too.

(now you can restore from your backup. :)

Once you get the system gimping along, take a look in /var/backups.
Now, vow to kiss the feet of the person who did that person should
you ever meet them.  Or buy them a beer, which they will probably
prefer anyway.  This doesn't apply if you reloaded the whole system
and blew away your /var partition.  You did have /var in a separate
partition, right?

Nick.



Re: i have lost /etc

2008-03-27 Thread Nick Holland
forgot something:

Nick Holland wrote:
...
 You could also boot bsd.rd, and do something like:
 mount /dev/wd0a /mnt
 cd /mnt
 tar xzpf /path/etc.tgz

er.. one potential problem with that: it will overwrite parts of
your /var partition, which may or may not be a problem for you
(i.e., if you have a really complex httpd configuration, it is
will get overwritten with the default).  Again, /var/backups
is your friend.

Nick.