DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 11th October 2015
acampbell acampbell is offline
Real Name: Anthony Campbell
Shell Scout
 
Join Date: Sep 2014
Location: London, UK
Posts: 138
Default Reinstall while preserving /home

I accidentally deleted /etc (don't ask) and need to reinstall. FAQ14 says that I can do this without overwriting /home, whjch is in partition k. It says "just don't format it". How do I do that (not give it a mount point perhaps)?
Reply With Quote
  #2   (View Single Post)  
Old 11th October 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Sorry about that. The install script will ask you if you want to accept automatic defaults, edit the automatic defaults, or edit the disklabel. Without knowing what you chose in the past, I'd choose editing the disklabel. The install script will only format partitions you [n]ame as mount points, and you can [n]ame all partitions except /home. See the disklabel(8) man page.

Perhaps you'll consider backup and recovery solutions after this experience? There are many options.
Reply With Quote
  #3   (View Single Post)  
Old 11th October 2015
acampbell acampbell is offline
Real Name: Anthony Campbell
Shell Scout
 
Join Date: Sep 2014
Location: London, UK
Posts: 138
Default

Thanks for the prompt reply. I do have backup with tarsnap but I'd rather revive my /home if possible.

By "edit the disklabel" I assume you mean choosing what the install script calls Custom Layout? That seems to be the only way to get "none" as the default mount point. But how do I restore /home after completing the reinstall? Edit /etc/fstab?
Reply With Quote
  #4   (View Single Post)  
Old 11th October 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Yep. Add it back in to your recreated fstab.
Reply With Quote
  #5   (View Single Post)  
Old 11th October 2015
acampbell acampbell is offline
Real Name: Anthony Campbell
Shell Scout
 
Join Date: Sep 2014
Location: London, UK
Posts: 138
Default

Back in business! Thanks very much for your help. Useful lesson!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to reinstall the PBR? acampbell OpenBSD Installation and Upgrading 1 30th July 2015 10:04 AM
Reinstall OpenBSD 5.7 automatically (vps without KVM) wesley Guides 0 1st June 2015 11:07 AM
preserving editor files now takes a much longer time daemonfowl OpenBSD General 1 2nd November 2013 06:40 PM
Preserving existing OpenBSD partition layout during a re-install J65nko Guides 3 17th February 2010 03:55 AM
System messed up, should I just reinstall? AncientDragonfly FreeBSD Ports and Packages 22 22nd April 2009 04:33 AM


All times are GMT. The time now is 03:02 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick