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 23rd October 2019
acampbell acampbell is offline
Real Name: Anthony Campbell
Shell Scout
 
Join Date: Sep 2014
Location: London, UK
Posts: 109
Default Can't preserve /home on reinstalling 6.6 release

I've just (re)installed 6.6 on a laptop. My previous /home was at /dev/wd0k.

While reinstalling, I told disklabel to modify /dev/wd0k. It didn't offer me the option not to mount the partition but I put "none" for the mount point, which seemed to work.

After rebooting I inserted a line in /etc/fstab:
/dev/wd0k /home ffs rw,nodev,no suid 1 2

This causes an error message on boot:
mount dev/wd0k on /home: Invalid argument

The same thing happens if I run the command manually.

I know this method of saving /home worked for me some time ago. Has something changed in 6.6 which prevents it working? Have I missed a step?

I can reconstitute /home if necessary without too much hassle (it's not my main computer) but I'd like to find out what's happening.
Reply With Quote
  #2   (View Single Post)  
Old 23rd October 2019
ip6ix's Avatar
ip6ix ip6ix is offline
Real Name: Neil
Port Guard
 
Join Date: Sep 2017
Location: Wales, UK
Posts: 44
Default

There shouldn't be a space between "no" and "suid" in the line you inserted in /etc/fstab.
__________________
dc -e '[q]sa[ln0=aln256%Pln256/snlbx]sb12247225403800449909543746snlbxq'
Reply With Quote
  #3   (View Single Post)  
Old 24th October 2019
acampbell acampbell is offline
Real Name: Anthony Campbell
Shell Scout
 
Join Date: Sep 2014
Location: London, UK
Posts: 109
Default

Sorry - that was a typo in my post here. It's correct in my fstab.

But I think I've found what's wrong: I ran fsck on /dev/wd0k and it finds problems with superblocks.

Last edited by acampbell; 24th October 2019 at 08:54 AM.
Reply With Quote
  #4   (View Single Post)  
Old 28th October 2019
fvgit's Avatar
fvgit fvgit is offline
Spikes in tights
 
Join Date: May 2016
Location: perl -MMIME::Base64 -le 'print decode_base64("U2hlcndvb2QgRm9yZXN0")'
Posts: 207
Default

Just for completeness, in case anyone was having doubts: preserving /home during 6.6 installation works like a charm. Yesterday I performed a fully automated 6.6 installation incl. preserving /home. Works great, plus it's fun having the computer do all the work.
Reply With Quote
  #5   (View Single Post)  
Old 29th October 2019
bsd-keith bsd-keith is offline
Real Name: Keith
Open Source Software user
 
Join Date: Jun 2014
Location: Surrey/Hants Border, England
Posts: 199
Default

You used to select u (upgrade) instead of i (install) if I remember right, but my attempt at installing 65 & 66 didn't work, so not sure if anything has changed in that regard.
__________________
Linux since 1999, & also a BSD user.
Reply With Quote
  #6   (View Single Post)  
Old 29th October 2019
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,806
Default

No. Instead, you a) ensure you are using the existing disklabel and that b) you are NOT assigning your preexisting /home partition.

Backups are always recommended.
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
Preserve /home during reinstall? acampbell OpenBSD Installation and Upgrading 21 27th February 2019 02:41 PM
FreeBSD Beginning the 7.3-RELEASE release cycle... J65nko News 0 24th January 2010 04:07 PM
FreeBSD 6.2-RELEASE > 7.0-RELEASE Upgrade Marci FreeBSD Installation and Upgrading 2 23rd July 2008 02:10 PM
reinstalling parts of the base system? Business_woman FreeBSD Installation and Upgrading 3 13th July 2008 01:56 AM
Reinstalling... Business_woman FreeBSD General 17 10th May 2008 11:22 PM


All times are GMT. The time now is 05:08 PM.


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