List Info

Thread: restore command ruins my new OpenBSD install




restore command ruins my new OpenBSD install
user name
2007-05-02 18:40:00
OpenBSD 4.1
on i386 using GENERIC kernel

Hi:

 When I use restore, it trashes my newly installed OpenBSD
install,
upon rebootiing.

  I backed up /etc using the command:
# dump -f /mnt/bsd/OpenBSDEtc.dump /etc

when I do and interactive restore like so:
# cd /root
# restore -i -f  /mnt/bsd/OpenBSDEtc.dump

even if I cd to my home directory and do the restore it runs
the file system.

Anyway, I extract the files fstab, printcap, sysctl.conf and
xorg.conf. I then
copy fstab and printcap to /etc and look at the old
sysctl.conf and
make modifications to the new sysctl.conf. Since I have
softdeps in
the new (copied) fstab, I delete the temporary etc in
/root/etc and
then reboot the computer.

 Upon booting, I see messages that database files are
missing. I
login and see that  /var is the same as /tmp and all the
normal files
are gone from /var.  What am I doing wrong here?

 I have read through the backup sections in Evie Nemeth's
purple book
and also the UNIX Sys Admin book by Aileen Frisch. I
thought
interactive restore was pretty straightforward. Are the
original
inodes being preserved? Also the man page says that there is
a
temporary fi;e called "restoresymtable". I did a
find / -name
"restoresymtable", before I rebooted, and nothing
turned up.



-- 
Kind regards,
Jonathan
_______________________________________________
ColoBSD-talk mailing list
ColoBSD-talklists.nycbug.org
http://lists.nycbug.org/mailman/listinfo/colobsd-talk

Re: restore command ruins my new OpenBSD install
country flaguser name
United States
2007-05-02 21:40:44
Jon,

I am just guessing here but are the filesystems are laid out

in the exact same way as they were on the original install
with
the same options?

Would you send the output of a diff of the /etc/fstab after

the install and the old fstab you are copying over it?

I am not familiar with OpenBSD particulars but the
dump/restore
commands look kosher to me...

Geoffrey


> OpenBSD 4.1
> on i386 using GENERIC kernel
> 
> Hi:
> 
>  When I use restore, it trashes my newly installed
OpenBSD install,
> upon rebootiing.
> 
>   I backed up /etc using the command:
> # dump -f /mnt/bsd/OpenBSDEtc.dump /etc
> 
> when I do and interactive restore like so:
> # cd /root
> # restore -i -f  /mnt/bsd/OpenBSDEtc.dump
> 
> even if I cd to my home directory and do the restore it
runs the file system.
> 
> Anyway, I extract the files fstab, printcap,
sysctl.conf and xorg.conf. I the
> n
> copy fstab and printcap to /etc and look at the old
sysctl.conf and
> make modifications to the new sysctl.conf. Since I have
softdeps in
> the new (copied) fstab, I delete the temporary etc in
/root/etc and
> then reboot the computer.
> 
>  Upon booting, I see messages that database files are
missing. I
> login and see that  /var is the same as /tmp and all
the normal files
> are gone from /var.  What am I doing wrong here?
> 
>  I have read through the backup sections in Evie
Nemeth's purple book
> and also the UNIX Sys Admin book by Aileen Frisch. I
thought
> interactive restore was pretty straightforward. Are the
original
> inodes being preserved? Also the man page says that
there is a
> temporary fi;e called "restoresymtable". I
did a find / -name
> "restoresymtable", before I rebooted, and
nothing turned up.
> 
> 
> 
> -- 
Kind regards,
> Jonathan
> _______________________________________________
> ColoBSD-talk mailing list
> ColoBSD-talklists.nycbug.org
> http://lists.nycbug.org/mailman/listinfo/colobsd-talk
_______________________________________________
ColoBSD-talk mailing list
ColoBSD-talklists.nycbug.org
http://lists.nycbug.org/mailman/listinfo/colobsd-talk

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )