On Tue, Aug 01, 2017 at 09:44:33AM +0100, [email protected] wrote:
> >Synopsis:    Upgrade failure with -current: wd0 is not a valid root disk.
> >Category:    bsd.rd
> >Environment:
>       System      : OpenBSD 6.1
>       Details     : OpenBSD 6.1-current (GENERIC.MP) #115: Sat Jul 22 
> 09:58:21 MDT 2017
>                        
> [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> 
>       Architecture: OpenBSD.amd64
>       Machine     : amd64
> >Description:
>       For the last few days I have been unable to upgrade -current because
>       at least 3 different versions of bsd.rd don't complete the process.
>       After selecting "upgrade" and "keyboard" I get "Available disks are:
>       wd0" [which is correct]. Pressing <Return> or typing "wd0" produces
>       the message: "wd0 is not a valid boot disk".
> 
>       All versions of bsd.rd were checked with SHA256,sig.
> 
>       I can still boot into the machine as usual when not trying to
>       upgrade.
> >How-To-Repeat:
>       Attempt to upgrade as described above.
> >Fix:
>       I tried fdisk -u but it made no difference. 
> 

This error messages originates from the is_rootdisk() function of the
installer script. In your case it does the following:

- disklabel wd0 | grep -q '^  a: .*4\.2BSD '
- mount -t ffs -r /dev/wd0a /mnt
- looks out for certain directories on this partition using
  ls -d /mnt/{bin,dev,etc,home,mnt,root,sbin,tmp,usr,var}

if one of the above commands fails, you see this error message.

You can boot into bsd.rd and run these commands yourself in this
sequence and check if all of them are successful. If not, that is the
then the problem.

Reply via email to