Hi, I'm trying to install OpenBSD 4.0 on a Soekris net4801 but I just can't complete the install. I'm stalled when the install attempts to write the new partitions to the disk. It fails with:
"mount_ffs: /dev/wd0a on /mnt: Invalid argument" Any ideas how I can fix this and get on with the install? The disk in question is a Seagate Momentus ST94813A 40GB. I've pasted the entire install log below. I've spotted the CRC errors on wd0 and have changed the cable, but to no avail. Thanks a lot in advance, jules ################################### omc-2 ~ # minicom LC_ALL/ja LC_ALL/ko comBIOS ver. 1.28 20050529 Copyright (C) 2000-2005 Soekris Engineering. net4801 0256 Mbyte Memory CPU Geode 266 Mhz Pri Mas .T94813A LBA Xlt 1024-255-63 39062 Mbyte Slot Vend Dev ClassRev Cmd Stat CL LT HT Base1 Base2 Int ------------------------------------------------------------------- 0:00:0 1078 0001 06000000 0107 0280 00 00 00 00000000 00000000 0:06:0 100B 0020 02000000 0107 0290 00 3F 00 0000E101 A0000000 10 0:07:0 100B 0020 02000000 0107 0290 00 3F 00 0000E201 A0001000 10 0:08:0 100B 0020 02000000 0107 0290 00 3F 00 0000E301 A0002000 10 0:18:2 100B 0502 01018001 0005 0280 00 00 00 00000000 00000000 0:19:0 0E11 A0F8 0C031008 0117 0280 08 38 00 A0003000 00000000 11 5 Seconds to automatic boot. Press Ctrl-P for entering Monitor. comBIOS Monitor. Press ? for help. > boot f0 NSC DP83815/DP83816 Fast Ethernet UNDI, v1.03 Copyright (C) 2002, 2003 National Semiconductor Corporation All rights reserved. Pre-boot eXecution Environment PXE-2.0 (build 082) Copyright (C) 1997-2000 Intel Corporation CLIENT MAC ADDR: 00 00 24 C7 80 C4 CLIENT IP: 10.0.0.50 MASK: 255.255.255.0 DHCP IP: 10.0.0.233 GATEWAY IP: 10.0.0.1 probing: pc0 com0 com1 pci pxe![2.1] mem[639K 255M a20=on] disk: hd0+* net: mac 00:00:24:c7:80:c4, ip 10.0.0.50, server 10.0.0.233 >> OpenBSD/i386 PXEBOOT 1.09 switching console to com0 >> OpenBSD/i386 PXEBOOT 1.09 com0: 9600 baud booting tftp:bsd.rd: 4692244+739940 [52+164144+149993]=0x57b03c entry point at 0x200120 Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2006 OpenBSD. All rights reserved. http://www.OpenBSD.org OpenBSD 4.0 (RAMDISK_CD) #39: Sat Sep 16 19:34:26 MDT 2006 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/RAMDISK_CD cpu0: Geode(TM) Integrated Processor by National Semi ("Geode by NSC" 586-class) 267 MHz cpu0: FPU,TSC,MSR,CX8,CMOV,MMX cpu0: TSC disabled real mem = 268005376 (261724K) avail mem = 238198784 (232616K) using 3297 buffers containing 13504512 bytes (13188K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(00) BIOS, date 20/50/29, BIOS32 rev. 0 @ 0xf7840 pcibios0 at bios0: rev 2.0 @ 0xf0000/0x10000 pcibios0: pcibios_get_intr_routing - function not supported pcibios0: PCI IRQ Routing information unavailable. pcibios0: PCI bus #0 is the last bus bios0: ROM list: 0xc8000/0x9000 cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "Cyrix GXm PCI" rev 0x00 sis0 at pci0 dev 6 function 0 "NS DP83815 10/100" rev 0x00, DP83816A: irq 10, address 00:00:24:c7:80:c4 nsphyter0 at sis0 phy 0: DP83815 10/100 PHY, rev. 1 sis1 at pci0 dev 7 function 0 "NS DP83815 10/100" rev 0x00, DP83816A: irq 10, address 00:00:24:c7:80:c5 nsphyter1 at sis1 phy 0: DP83815 10/100 PHY, rev. 1 sis2 at pci0 dev 8 function 0 "NS DP83815 10/100" rev 0x00, DP83816A: irq 10, address 00:00:24:c7:80:c6 nsphyter2 at sis2 phy 0: DP83815 10/100 PHY, rev. 1 gscpcib0 at pci0 dev 18 function 0 "NS SC1100 ISA" rev 0x00 "NS SC1100 SMI" rev 0x00 at pci0 dev 18 function 1 not configured pciide0 at pci0 dev 18 function 2 "NS SCx200 IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 0 drive 0: <.T94813A> wd0: 16-sector PIO, LBA48, 38146MB, 78123776 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 "NS SC1100 X-Bus" rev 0x00 at pci0 dev 18 function 5 not configured ohci0 at pci0 dev 19 function 0 "Compaq USB OpenHost" rev 0x08: irq 11, version 1.0, legacy support usb0 at ohci0: USB revision 1.0 uhub0 at usb0 uhub0: Compaq OHCI root hub, rev 1.00/1.00, addr 1 uhub0: 3 ports with 3 removable, self powered isa0 at gscpcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard npx0 at isa0 port 0xf0/16: using exception 16 pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo pccom0: console pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo biomask fbe5 netmask ffe5 ttymask ffe7 rd0: fixed, 3800 blocks wd0c: aborted command, interface CRC error reading fsbn 64 of 64-67 (wd0 bn 64; cn 0 tn 1 sn 1), retrying wd0: transfer error, downgrading to Ultra-DMA mode 1 wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 1 wd0c: aborted command, interface CRC error reading fsbn 64 of 64-67 (wd0 bn 64; cn 0 tn 1 sn 1), retrying wd0: transfer error, downgrading to Ultra-DMA mode 0 wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 0 wd0c: aborted command, interface CRC error reading fsbn 64 of 64-67 (wd0 bn 64; cn 0 tn 1 sn 1), retrying wd0: transfer error, downgrading to PIO mode 4 wd0(pciide0:0:0): using PIO mode 4 wd0c: aborted command, interface CRC error reading fsbn 64 of 64-67 (wd0 bn 64; cn 0 tn 1 sn 1), retrying wd0: soft error (corrected) wd0: no disk label dkcsum: wd0 matches BIOS drive 0x80 root on rd0a rootdev=0x1100 rrootdev=0x2f00 rawdev=0x2f02 erase ^?, werase ^W, kill ^U, intr ^C, status ^T (I)nstall, (U)pgrade or (S)hell? I Welcome to the OpenBSD/i386 4.0 install program. This program will help you install OpenBSD in a simple and rational way. At any prompt except password prompts you can run a shell command by typing '!foo', or escape to a shell by typing '!'. Default answers are shown in []'s and are selected by pressing RETURN. At any time you can exit this program by pressing Control-C and then RETURN, but quitting during an install can leave your system in an inconsistent state. Terminal type? [vt220] kbd(8) mapping? ('L' for list) [none] IS YOUR DATA BACKED UP? As with anything that modifies disk contents, this program can cause SIGNIFICANT data loss. It is often helpful to have the installation notes handy. For complex disk configurations, relevant disk hardware manuals and a calculator are useful. Proceed with install? [no] yes Cool! Let's get to it. You will now initialize the disk(s) that OpenBSD will use. To enable all available security features you should configure the disk(s) to allow the creation of separate filesystems for /, /tmp, /var, /usr, and /home. Available disks are: wd0. Which one is the root disk? (or 'done') [wd0] Do you want to use *all* of wd0 for OpenBSD? [no] yes Putting all of wd0 into an active OpenBSD MBR partition (type 'A6')...wd0: no disk label done. You will now create an OpenBSD disklabel inside the OpenBSD MBR partition. The disklabel defines how OpenBSD splits up the MBR partition into OpenBSD partitions in which filesystems and swap space are created. The offsets used in the disklabel are ABSOLUTE, i.e. relative to the start of the disk, NOT the start of the OpenBSD MBR partition. # Inside MBR partition 3: type A6 start 63 size 78107967 Treating sectors 63-78108030 as the OpenBSD portion of the disk. You can use the 'b' command to change this. Initial label editor (enter '?' for help at any prompt) > p m device: /dev/rwd0c type: ESDI disk: ESDI/IDE disk label: .T94813A bytes/sector: 512 sectors/track: 63 tracks/cylinder: 16 sectors/cylinder: 1008 cylinders: 16383 total bytes: 38146.4M free bytes: 38138.7M rpm: 3600 16 partitions: # size offset fstype [fsize bsize cpg] a: 38138.7M 0.0M unused 0 0 c: 38146.4M 0.0M unused 0 0 > d a > a a offset: [63] size: [78107967] 512m Rounding to nearest cylinder: 1048257 FS type: [4.2BSD] mount point: [none] / > a b offset: [1048320] size: [77059710] 512m Rounding to nearest cylinder: 1048320 FS type: [swap] > a c^Hd^H^H Partition must be between 'a' and 'p' (excluding 'c'). > a d offset: [2096640] size: [76011390] 256m Rounding to nearest cylinder: 524160 FS type: [4.2BSD] mount point: [none] /tmp > a e offset: [2620800] size: [75487230] 128m Rounding to nearest cylinder: 262080 FS type: [4.2BSD] mount point: [none] /var > a g offset: [2882880] size: [75225150] 12g Rounding to nearest cylinder: 25165728 FS type: [4.2BSD] mount point: [none] /usr > a h offset: [28048608] size: [50059422] 24g Rounding to nearest cylinder: 50330448 Sorry, there are only 50059422 sectors left size: [50059422] 12g Rounding to nearest cylinder: 25165728 FS type: [4.2BSD] mount point: [none] /home > p m device: /dev/rwd0c type: ESDI disk: ESDI/IDE disk label: .T94813A bytes/sector: 512 sectors/track: 63 tracks/cylinder: 16 sectors/cylinder: 1008 cylinders: 16383 total bytes: 38146.4M free bytes: 12155.1M rpm: 3600 16 partitions: # size offset fstype [fsize bsize cpg] a: 511.8M 0.0M 4.2BSD 2048 16384 16 # / b: 511.9M 511.9M swap c: 38146.4M 0.0M unused 0 0 d: 255.9M 1023.8M 4.2BSD 2048 16384 16 # /tmp e: 128.0M 1279.7M 4.2BSD 2048 16384 16 # /var g: 12288.0M 1407.7M 4.2BSD 2048 16384 16 # /usr h: 12288.0M 13695.6M 4.2BSD 2048 16384 16 # /home > ? Available commands: ? [cmnd] - this message or command specific help. a [part] - add new partition. b - set OpenBSD disk boundaries. c [part] - change partition size. D - set label to default. d [part] - delete partition. e - edit drive parameters. g [b|d|u] - use [b]ios, [d]isk or [u]ser geometry. M - show entire OpenBSD man page for disklabel. m [part] - modify existing partition. n [part] - set the mount point for a partition. p [unit] - print label. q - quit and save changes. r - recalculate free space. s [path] - save label to file. u - undo last change. w - write label to disk. X - toggle expert mode. x - exit without saving changes. z - zero out partition table. Numeric parameters may use suffixes to indicate units: 'b' for bytes, 'c' for cylinders, 'k' for kilobytes, 'm' for megabytes, 'g' for gigabytes or no suffix for sectors (usually 512 bytes). '%' for percent of total disk size, '&' for percent of free space. Non-sector units will be rounded to the nearest cylinder. Entering '?' at most prompts will give you (simple) context sensitive help. > q Write new label?: [y] Mount point for wd0d (size=262080k)? (or 'none' or 'done') [/tmp] Mount point for wd0e (size=131040k)? (or 'none' or 'done') [/var] Mount point for wd0g (size=12582864k)? (or 'none' or 'done') [/usr] Mount point for wd0h (size=12582864k)? (or 'none' or 'done') [/home] Mount point for wd0d (size=262080k)? (or 'none' or 'done') [/tmp] done No more disks to initialize. OpenBSD filesystems: wd0a / wd0d /tmp wd0e /var wd0g /usr wd0h /home The next step *DESTROYS* all existing data on these partitions! Are you really sure that you're ready to proceed? [no] yes /dev/rwd0a: 1048256 sectors in 1040 cylinders of 16 tracks, 63 sectors 511.8MB in 4 cyl groups (328 c/g, 161.44MB/g, 20608 i/g) /dev/rwd0d: 524160 sectors in 520 cylinders of 16 tracks, 63 sectors 255.9MB in 2 cyl groups (328 c/g, 161.44MB/g, 20608 i/g) /dev/rwd0e: 262080 sectors in 260 cylinders of 16 tracks, 63 sectors 128.0MB in 1 cyl groups (260 c/g, 127.97MB/g, 16384 i/g) /dev/rwd0g: 25165728 sectors in 24966 cylinders of 16 tracks, 63 sectors 12288.0MB in 77 cyl groups (328 c/g, 161.44MB/g, 20608 i/g) /dev/rwd0h: 25165728 sectors in 24966 cylinders of 16 tracks, 63 sectors 12288.0MB in 77 cyl groups (328 c/g, 161.44MB/g, 20608 i/g) mount_ffs: /dev/wd0a on /mnt: Invalid argument FATAL ERROR: Cannot mount filesystems. Double-check your configuration and restart the install.