Hello list,
I'm in a situation where I must configure a couple of soekris boxes (net4801)
with very minimal services (pf and syslogd sending all logs to a remote
server), they will be unattended and various thousands of kilometers away.
Also the system is probable to suffer electrical failures and since OBSD
is contained in a CF card I become very interested in running it over an
unique read-only partition.
The first option was add the "ro" flag to the fstab file, but it's ignored
and the system leaves the root fs in "rw" mode. The second (and desesperate)
option was add "mount -o ro /" to /etc/rc.local which seems cause a kernel
panic (no suprise here)
is it possible to have a root fs in read-only mode with OBSD?
POST: 0123456789bcefghipajklnopq,,,tvwxy[2J
comBIOS ver. 1.28 20050529 Copyright (C) 2000-2005 Soekris Engineering.
net4801
CPU Geode 266 Mhz 0000 Mbyte Memory0128
Pri Mas SanDisk SDCFB-256 LBA 980-16-32 251 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
Seconds to automatic boot. Press Ctrl-P for entering Monitor. 5 4 3 2 1
Using drive 0, partition 3.
Loading...
probing: pc0 com0 com1 pci mem[639K 127M a20=on]
disk: hd0+
>> OpenBSD/i386 BOOT 2.10
|/-\|/-
com0: 19200 baud
switching console to com0
>> OpenBSD/i386 BOOT 2.10
boot>
booting hd0a:/bsd: ...snip...
entry point at 0x100120
[ using 476508 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 1995-2005 OpenBSD. All rights reserved. http://www.OpenBSD.org
OpenBSD 3.8 (GENERIC) #138: Sat Sep 10 15:41:37 MDT 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
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 = 133799936 (130664K)
avail mem = 115474432 (112768K)
using 1658 buffers containing 6791168 bytes (6632K) 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:c4:ff:1c
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:c4:ff:1d
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:c4:ff:1e
nsphyter2 at sis2 phy 0: DP83815 10/100 PHY, rev. 1
gscpcib0 at pci0 dev 18 function 0 "NS SC1100 ISA" rev 0x00
gpio0 at gscpcib0: 64 pins
"NS SC1100 SMI/ACPI" 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: <SanDisk SDCFB-256>
wd0: 1-sector PIO, LBA, 245MB, 501760 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2
geodesc0 at pci0 dev 18 function 5 "NS SC1100 X-Bus" rev 0x00: iid 6 revision 3
wdstatus 0
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
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
sysbeep0 at pcppi0
nsclpcsio0 at isa0 port 0x2e/2: NSC PC87366 rev 9: GPIO VLM TMS
gpio1 at nsclpcsio0: 29 pins
gscsio0 at isa0 port 0x15c/2: SC1100 SIO rev 1:
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
pctr: no performance counters in CPU
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
Automatic boot in progress: starting file system checks.
/dev/rwd0a: file system is clean; not checking
setting tty flags
kbd: keyboard mapping set to es
net.inet.ip.forwarding: 0 -> 1
starting network
starting system logger
starting rpc daemons:.
savecore: /dev/wd0b: Device not configured
checking quotas: done.
building ps databases: kvm dev.
clearing /tmp
starting pre-securelevel daemons:.
setting kernel security level: kern.securelevel: 0 -> 1
creating runtime link editor directory cache.
preserving editor files
starting network daemons:.
starting local daemons:.
+ /sbin/mount -o ro /
+ echo -n standard daemons:
standard daemons:+ [ XNO != XNO -a -x /usr/sbin/apmd ]
+ [ XNO != XNO -a -x /usr/sbin/acpid ]
+ [ XNO != XNO ]
+ [ XNO != XNO -a -x /usr/sbin/hotplugd ]
+ echo -n cron
cron+ echo .
.
+ date
Fri Nov 25 11:46:08 CET 2005
+ [ XNO != XNO -a -x /usr/sbin/wsmoused ]
+ [ XNO != XNO ]
+ exit 0
OpenBSD/i386 (net4801-00) (tty00)
login: panic: handle_workitem_remove: bad file delta
Stopped at Debugger+0x4: leave
RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC!
DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION!
ddb> trace
Debugger(d3b33080,d3beca40,daae9edc,d3b1bb68,d3b33080) at Debugger+0x4
panic(d050a640,ef2,daae9ecc,0,0) at panic+0x63
handle_workitem_remove(d3b33080,0,daae9f0c,d020a090,b0) at handle_workitem_remo
ve+0x11c
process_worklist_item(0,0,d3be7300,d3beca40,d05806c0) at process_worklist_item+
0x140
softdep_process_worklist(0,0,d3beca40,40,4) at softdep_process_worklist+0xef
sched_sync(d3beca40) at sched_sync+0x9d
Bad frame pointer: 0xd06f1ed8
ddb> ps
PID PPID PGRP UID S FLAGS WAIT COMMAND
5762 1 5762 0 3 0x4086 ttyin getty
9452 31422 31422 73 3 0x184 poll syslogd
31422 1 31422 0 3 0x84 netio syslogd
11 0 0 0 3 0x100204 crypto_wa crypto
10 0 0 0 3 0x100204 aiodoned aiodoned
* 9 0 0 0 7 0x100204 update
8 0 0 0 3 0x100204 cleaner cleaner
7 0 0 0 3 0x100204 reaper reaper
6 0 0 0 3 0x100204 pgdaemon pagedaemon
5 0 0 0 3 0x100204 pftm pfpurge
4 0 0 0 3 0x100204 usbtsk usbtask
3 0 0 0 3 0x100204 usbevt usb0
2 0 0 0 3 0x100204 kmalloc kmthread
1 0 1 0 3 0x4084 wait init
0 -1 0 0 3 0x80204 scheduler swapper
ddb>
--
GCS/IT d- s+:+() a31 C+++ UBL+++$ P+ L+++ E--- W++ N+ o++ K- w---
O+ M+ V- PS+ PE+ Y++ PGP+>+++ t+ 5 X+$ R- tv-- b+++ DI D++>+++
G++ e- h+(++) !r !z
------END GEEK CODE BLOCK------