|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
Quote:
|
|
|||
Quote:
Assuming the /home directory is the k partition on disk sd0 and you're logged in as root: 1. Install new OS but when disklabel runs select existing OBSD partition, choose e(dit) and then: > n k mount point (/home) > none > w > x 2. With the new OS installed, assuming you've recreated the users as before: # cd /home # rm -r * (to remove any created home directories but keep the /home mount point) # disklabel -E -F /etc/fstab sd0 > m k (keep size etc) mount point > /home > w > x 3. (And I don't know whether this was necessary but the cpg value was wrong for the k partition so I updated it): # disklabel -e sd0 (this invokes vi. Just change the cpg value to the same as the others - and the same as it was before - and save) 4. #disklabel sd0 ....to check everything is fine and then... 5. Reboot! I've written this up from memory so hopefully I've not made any mistakes. It's based on a total lack of knowledge of how disklabel and the install process work! |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Reinstall while preserving /home | acampbell | OpenBSD Installation and Upgrading | 4 | 11th October 2015 04:40 PM |
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 |
reinstall all packages installed by pkg_add | mfaridi | OpenBSD Packages and Ports | 4 | 5th March 2015 12:47 PM |
System messed up, should I just reinstall? | AncientDragonfly | FreeBSD Ports and Packages | 22 | 22nd April 2009 04:33 AM |