Upgrade failure with -current

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Upgrade failure with -current

acampbell
>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
                         [hidden email]:/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.


dmesg:
OpenBSD 6.1-current (GENERIC.MP) #115: Sat Jul 22 09:58:21 MDT 2017
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4268425216 (4070MB)
avail mem = 4133269504 (3941MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xfc670 (18 entries)
bios0: vendor American Megatrends Inc. version "R01-A3" date 08/28/2007
bios0: ACER Veriton M460
acpi0 at bios0: rev 0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG SLIC OEMB HPET GSCI SSDT
acpi0: wakeup devices P0P2(S4) P0P1(S4) PS2M(S4) MC97(S4) P0P4(S4) P0P5(S4) P0P6(S4) P0P7(S4) P0P8(S4) P0P9(S4) USB0(S3) USB1(S3) USB2(S3) USB3(S3) EUSB(S3) PWRB(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU E4500 @ 2.20GHz, 2194.75 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM,LONG,LAHF,PERF,SENSOR
cpu0: 2MB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 199MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU E4500 @ 2.20GHz, 2194.51 MHz
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM,LONG,LAHF,PERF,SENSOR
cpu1: 2MB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (P0P1)
acpiprt2 at acpi0: bus 1 (P0P4)
acpiprt3 at acpi0: bus 2 (P0P5)
acpiprt4 at acpi0: bus -1 (P0P6)
acpiprt5 at acpi0: bus -1 (P0P7)
acpiprt6 at acpi0: bus -1 (P0P8)
acpiprt7 at acpi0: bus -1 (P0P9)
acpicpu0 at acpi0: C1(@1 halt!), PSS
acpicpu1 at acpi0: C1(@1 halt!), PSS
acpitz0 at acpi0: critical temperature is 110 degC
"PNP0700" at acpi0 not configured
"PNP0400" at acpi0 not configured
"PNP0F03" at acpi0 not configured
acpibtn0 at acpi0: PWRB
cpu0: Enhanced SpeedStep 2194 MHz: speeds: 2200, 1600, 1200 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 82G33 Host" rev 0x02
inteldrm0 at pci0 dev 2 function 0 "Intel 82G33 Video" rev 0x02
drm0 at inteldrm0
intagp0 at inteldrm0
agp0 at intagp0: aperture at 0xd0000000, size 0x10000000
inteldrm0: msi
inteldrm0: 1280x1024, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x01: msi
azalia0: codecs: Realtek ALC888
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x01: msi
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x01: msi
pci2 at ppb1 bus 2
re0 at pci2 dev 0 function 0 "Realtek 8168" rev 0x01: RTL8168 2 (0x3800), msi, address 00:19:21:4f:2e:c3
rgephy0 at re0 phy 7: RTL8169S/8110S/8211 PHY, rev. 2
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x01: apic 2 int 23
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x01: apic 2 int 19
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x01: apic 2 int 18
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x01: apic 2 int 16
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x01: apic 2 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb2 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xe1
pci3 at ppb2 bus 3
pcib0 at pci0 dev 31 function 0 "Intel 82801GH LPC" rev 0x01
pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x01: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
pciide0: channel 0 disabled (no drives)
pciide0: channel 1 disabled (no drives)
pciide1 at pci0 dev 31 function 2 "Intel 82801GB SATA" rev 0x01: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using apic 2 int 19 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: <WDC WD5000AAKX-08U6AA0>
wd0: 16-sector PIO, LBA48, 476940MB, 976773168 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide1 channel 1 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <ATAPI, DVD A DH16A3S, 3A12> ATAPI 5/cdrom removable
cd0(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x01: apic 2 int 19
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL6
spdmem1 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-6400CL6
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
it0 at isa0 port 0x2e/2: IT8718F rev 4, EC port 0xa10
uhidev0 at uhub1 port 1 configuration 1 interface 0 "BTC USB Keyboard" rev 1.10/1.80 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub1 port 1 configuration 1 interface 1 "BTC USB Keyboard" rev 1.10/1.80 addr 2
uhidev1: iclass 3/0, 2 report ids
uhid0 at uhidev1 reportid 1: input=2, output=0, feature=0
uhid1 at uhidev1 reportid 2: input=1, output=0, feature=0
uhidev2 at uhub4 port 1 configuration 1 interface 0 "SIGMACHIP Usb Mouse" rev 1.10/1.10 addr 2
uhidev2: iclass 3/1
ums0 at uhidev2: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on wd0a (eb4c008e57d75491.a) swap on wd0b dump on wd0b

usbdevs:
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Intel(0x8086), rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered
 port 4 powered
 port 5 powered
 port 6 powered
 port 7 powered
 port 8 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x8086), rev 1.00
 port 1 addr 2: low speed, power 98 mA, config 1, USB Keyboard(0x6000), BTC(0x046e), rev 1.80
 port 2 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x8086), rev 1.00
 port 1 powered
 port 2 powered
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x8086), rev 1.00
 port 1 powered
 port 2 powered
Controller /dev/usb4:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x8086), rev 1.00
 port 1 addr 2: low speed, power 98 mA, config 1, Usb Mouse(0x0034), SIGMACHIP(0x1c4f), rev 1.10
 port 2 powered

Reply | Threaded
Open this post in threaded view
|

Re: Upgrade failure with -current

Robert Peichaer
On Tue, Aug 01, 2017 at 09:44:33AM +0100, [hidden email] 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
> [hidden email]:/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 | Threaded
Open this post in threaded view
|

Re: Upgrade failure with -current

acampbell
On 02 Aug 2017, Robert Peichaer wrote:

> On Tue, Aug 01, 2017 at 09:44:33AM +0100, [hidden email] 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
> > [hidden email]:/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.

The mount command showed that /mnt was missing in this partition.
Restoring this has made bsd.rd work again. Brilliant!

Thanks so much for providing the solution!

Anthony
--
Anthony Campbell http://www.acampbell.uk