Re: Large scale deployments

2006-11-03 Thread Bill Maas
On Fri, 2006-11-03 at 08:45 -0700, Bob Beck wrote:
> * Michael Lockhart <[EMAIL PROTECTED]> [2006-11-02 18:33]:
> > All,
> 
>   Wrap your bloody lines!

I agree

> > 
> > Here's a question that I wanted to pose to the OpenBSD community about 
> > managing and maintaining a large number of OpenBSD systems in the field.  
> > To provide some background, we currently have 650+ OpenBSD 3.2 systems in 
> > the field, and I've been dealing with a fair share of headaches bringing 
> > our software to a baseline across the board on all these systems.  Keep in 
> > mind most of what I'm working on is independent from the OS install itself. 
> >  Here's the things that I've got solutions in place for, but would like 
> > some input on projects available, or good feedback from other's who have 
> > maintained a large number of disparate systems:
> > 
> > 1. Reliable package building system to auto-generate OpenBSD packages that 
> > are compliant as much as possible with the standards enforced by OpenBSD.  
> > I've got scripts to do this right now, but I'm not happy with them.
> >
> 
>   I use the built packages from openbsd.org
> > 

Maybe use a standard install as base and pull the config from a CVS
server. There are ways to separate each client's specifics inside a
single CVS module, if you're not too fussy about hacks, and if the
clients are more or less identical except for simple config issues like
IP adresses etc. If some clients differ greatly, maybe put them into
separate module groups. In my opinion OpenBSD is extremely easy when it
comes to separating different configs.

About packages: don't try to re-do what others have already done for you
(tell me about it!!). Use the standard base and place your own layers on
top of it, whether in the form of a CVS checkout or a site.tgz (which
you're probably going to put under some kind of revision control anyway)
or whatever. If the same things are done twice that's too bad, but you
will be safer than when trying to maintain your own basXX.tgz etc., and
keeping it in sync with the main dist.

Upgrades are an automation nightmare, Linux distros claim they can do it
but they can't (goes wrong more often than not - I've stopped installing
updates on my Ubuntu-driven desktop, which saves me lots of reinstalls).
I would simply reinstall, after having distilled a working config from a
test system.

Bill Maas



Re: on the remote root login in OpenSSH

2006-11-23 Thread Bill Maas
Hi,

how about this one:

PermitRootLogin 192.168.1

Should any of the SSH maintainers be reading this: possible new SSH
feature?

Bill


On Thu, 2006-11-23 at 12:24 +0100, Igor Sobrado wrote:
> Hi again!
> 
> I have a question on the default behaviour of OpenSSH.  Please, do not
> understand that I am complaining on it or trying to change its behaviour
> in relation with remote root logins allowed by default on OpenSSH (but
> I certainly believe it would be nice, that is the reason I write this
> message to the misc@ mailing list).  Just want to share my opinion with
> the members of this mailing list.
> 
> First of all, I understand that remote root logins can be easily
> avoided by setting "PermitRootLogin" to "no" in /etc/ssh/sshd_config.
> I guess that remote root logins are allowed by default to simplify
> management of small network appliances that do not have user accounts
> on them.  But these appliances are only a small number of all OpenBSD
> installations and, even if this number is not so small, a restricted
> (non-root) account in the group wheel and probably in the group operator
> too, on these devices is advisable to avoid damaging these appliances
> by mistake.
> 
> In my humble opinion, there are three reasons to deny remote root logins
> by default:
> 
>   1. Remote root login enabled by default makes the wheel group
>  superfluous (i.e., why are used added to the wheel group when
>  a user not in this group can log in as root, once the root
>  password is known to him, by just typing "ssh [EMAIL PROTECTED]"?)
> 
>   2. There are a lot of threats against the root account based in
>  brute force attacks.  Most of us see logs on this matter in our
>  workstations and servers.  Sometimes these threats, done by
>  humans, network scanners or even worms, are successful.  It is
>  just a matter of (bad) luck.
> 
>   3. OpenBSD is "secure by default"; all services should be configured
>  to the most secure defaults.  I think that this reason is as good
>  as the previous ones.  And not allowing remote root logins by
>  default makes sense to me in relation with this goal.
> 
> Someone that really wants to allow remote root logins should be able to
> enable this feature just changing /etc/ssh/sshd_config.  But, in my
> humble opinion, most users do not really want this dangerous feature
> enabled by default.  And, even on small network appliances, an unprivileged
> account in the wheel group (and even in the operator group) is a good
> management practice.
> 
> [please, send copies of replies to this post to me if possible.  I will
> do my best to answer any post, even if not sent to me, but it will be
> more difficult tracking who sent the message I am replying to.]
> 
> Cheers,
> Igor.



Re: Baffling problem with OBSD-protected servers and Windows Vista...

2006-11-26 Thread Bill Maas
I'm not sure if this will be of any help, but at least the Firefox issue
sounds like FF is able to connect, but never receives any return
traffic. I've had that with misconfigured netmasks I believe. Does Vista
use some sort of net group or certificate based access scheme (e.g. "if
it's not a Vista box talking to me, I won't talk back")? May sound
stupid, but you never know. Who on earth knows what MS does with network
traffic?

Bill

On Sun, 2006-11-26 at 21:19 -0600, Reverend Deuce wrote:
> (This is very long email because it's a very complicated problem...
> I've included some tcpdump logs below to assist...)
> 
> The last week and days I've been working with the RTM version of Vista
> obtained through my MSDN license. This is the "gold" version of
> Windows Vista, BTW. It's done. It's been shipped to manufacturing
> (hence RTM, "release to manufacturing").
> 
> Okay, so I've installed this thing and am testing out all the bells
> and whistles.
> 
> I install Firefox, OpenVPN, putty, the Java JRE from Sun, etc.
> 
> I start to tool around and I notice that none of our company's web
> sites will load in Firefox any longer. Firefox's status bar says
> "Waiting for www.site.tld..." and eventually will time out. It does
> this for every single web site we host.
> 
> I fire up IE 7. No problems with any site.
> 
> I go back to Firefox and it's still having issues -- but *only* with
> sites hosted behind our OpenBSD firewalls.
> 
> I fire up "telnet" (after enabling it through the control panel -- no
> idea why MS did this). I can telnet to our web servers via port 80,
> issue "GET" requests, receive responses. No trouble with Telnet.exe.
> 
> Putty however, has trouble. Wont work period. Port 80 telnet, ssh port
> 22, etc. None of them.
> 
> So now I am thinking that it might just be a Firefox problem... but
> it's not. Microsoft's own Remote Desktop Connection (terminal services
> client, rdp client, etc) wont connect to our datacenter servers -- and
> they are accessed via an openvpn point to point VPN that terminates on
> the OpenBSD firewall which acts strictly as a routed tunnel between
> our two networks.
> 
> I turn off as much of the Vista "security" features as I can. This does 
> nothing.
> 
> Since our OBSD firewalls were of the older variety (3.6), I figured I
> might try an upgrade to 4.0 to see what happens. No dice.
> 
> To summarize:
> 
> This **only** is affecting Windows Vista (have not tried the latest
> betas of Longhorn Server). Windows XP, Windows 2000, Free/OpenBSD,
> CentOS, and our four Mac users with OSX have zero trouble. None. Nada.
> They work flawlessly.
> 
> Okay, so we can blame Vista -- that would be fine with me, but let's
> face it -- this going to be big come January. I have a month to fix
> this damn thing and I am really out of ideas.
> 
> Our network:
> 
> 100mbit dedicated inet connection through AT&T, terminates to a big
> Cisco setup owned by our datacenter.
> 
> Firewalls are now OBSD 4.0, single-proc Xeon 2.4gHz, 1GB RAM, etc. --
> they are decent systems with six gigabit NICs each.
> 
> They are all configured with CARP and pfsync. This has worked very,
> very well since day 1 in 2004! CARP rocks!
> 
> They connect to an HP ProCurve 5400ZL modular switch, configured with
> various port VLANs, etc. Everything is gigabit, 'cept for a few
> databases using 10-gigabit CX4.
> 
> Here are some tcpdumps from the master FW during connection attempts
> with a browser:
> 
> 
> 
> Opera 9:
> 
> 20:40:45.824144 my.workstation.ip.49370 > remote.server.ip.80: S
> 1215871830:1215871830(0) win 8192  8,nop,nop,sackOK> (DF)
> 20:40:45.824646 207.218.64.33.80 > my.workstation.ip.49370: S
> 2582857930:2582857930(0) ack 1215871831 win 64240  0,nop,nop,sackOK>
> 20:40:45.878361 my.workstation.ip.49370 > 207.218.64.33.80: . ack 1 win 260 
> (DF)
> 20:40:45.904597 my.workstation.ip.49370 > 207.218.64.33.80: P
> 1:384(383) ack 1 win 260 (DF)
> 20:40:46.058234 207.218.64.33.80 > my.workstation.ip.49370: . ack 384
> win 63857 (DF)
> 20:40:46.061253 my.workstation.ip.49370 > 207.218.64.33.80: P
> 1:384(383) ack 1 win 260 (DF)
> 20:40:46.061726 207.218.64.33.80 > my.workstation.ip.49370: . ack 384
> win 63857 (DF)
> (at this point, the connection is hung -- the Vista workstation
> receives no further communcations -- it's like it just drops the
> replies)
> 
> 
> 
> Firefox:
> 
> 20:38:25.197691 my.workstation.ip.49357 > remote.server.ip.80: S
> 643900711:643900711(0) win 8192 
> (DF)
> 20:38:25.198320 remote.server.ip.80 > my.workstation.ip.49357: S
> 852828096:852828096(0) ack 643900712 win 64240  0,nop,nop,sackOK>
> 20:38:25.244540 my.workstation.ip.49357 > remote.server.ip.80: . ack 1
> win 260 (DF)
> 20:38:25.251037 my.workstation.ip.49357 > remote.server.ip.80: P
> 1:403(402) ack 1 win 260 (DF)
> 20:38:25.567602 my.workstation.ip.49357 > remote.server.ip.80: P
> 1:403(402) ack 1 win 260 (DF)
> 20:38:25.568042 remote.server.ip.80 > my.workstation.ip.49357: . ack
> 403 win 63838 (DF)
> (s

Re: livecd error

2006-11-29 Thread Bill Maas
>From my notes (this is apparently the "old" way to do it,
but it might work for you as a quick fix):

Error: "/usr/bin/ld: cannot find -lstubs"

Problem: /usr/src/distrib/special/libstubs/libstubs.a does not exist

Fix:

cd /usr/src/distrib/special/libstubs
make


Bill

On Wed, 2006-11-29 at 09:05 -0700, Carlos A. Garcia G. wrote:
> Hi, im trying to make a obsd livecd i use the instructions in
> http://www.onlamp.com/pub/a/bsd/2005/07/14/openbsd_live.html
> but in one step i get
> /usr/bin/ld: cannot find -lstubs
> collect2: ld returned 1 exit status
> *** Error code 1
> 
> Stop in /usr/src/distrib/i386/ramdisk_cd (line 10 of instbin.mk).
> *** Error code 1
> 
> Stop in /usr/src/distrib/i386/ramdisk_cd (line 109 of 
> /usr/src/distrib/i386/ramdisk_cd/../common/Makefile.inc).
> 
> what can i do to solve the problem?



Re: file permissions/ownership in base40.tgz

2006-12-04 Thread Bill Maas
Hello Robert,

I don't feel authorized to tell you that everything inside base.tgz is
set correctly after untarring (must look inside install script to be
100% sure), but here's a script that I've been using lately. Note
Linux' [sS] and OpenBSD's [tT]. Good that there are standards!


Bill

---
#!/bin/sh
#
# findperms - find node permissions

# Usage: ./findperms [-r [-t]] node
# Writes to stdout

# Will print:
# type mode owner.group path
# type mode owner.group path/tree.. [-r]
# type mode owner.group /tree.. [-r -t]

os="$(uname)"

if [ "X$1" = "X-r" ]; then
recursive=yes
shift
fi

if [ "X$1" = "X-t" ]; then
truncate=yes
shift
fi

if [ -z "$1" ] || [ -n "$truncate" -a -z "$recursive" ]; then
echo "Usage: ./findperms [-r [-t]] node"
exit 1
fi

node="$1"

command="ls -ld $node"
if [ "X$recursive" = "Xyes" ]; then
command="find $node -exec ls -ld {} \;"
fi

subst=" "
if [ "X$truncate" = "Xyes" ]; then
subst=" $node"
fi

# OpenBSD and Linux use different output formats with 'ls -l'
# Merging the two awk commands into one turned out not to be a good idea 
(maintenance)
if [ X"$os" = X"OpenBSD" ]; then

eval $command |
sed -e 's/,  */,/' -e 's/ ->.*//' |
grep -v "^total" |
awk -F' ' '{ mod=0 }
   /^.r/ { mod += 400 }
   /^..w.../ { mod += 200 }
   /^...x../ { mod += 100 }
   /^...s../ { mod += 4000 }
   /^r./ { mod += 40 }
   /^.w/ { mod += 20 }
   /^..x.../ { mod += 10 }
   /^..s.../ { mod += 2000 }
   /^...r../ { mod += 4 }
   /^w./ { mod += 2 }
   /^.x/ { mod += 1 }
   /^.T/ { mod += 1000 }
   /^.t/ { mod += 1001 }
   { printf "%c %04d %s.%s ", substr($1, 1, 1), mod, $3, $4 }
   { if ($9) print $9; else print $8 }' |
 sed "[EMAIL PROTECTED]@ @"

elif [ X"$os" = X"Linux" ]; then

eval $command |
sed -e 's/,  */,/' -e 's/ ->.*//' |
grep -v "^total" |
awk -F' ' '{ mod=0 }
   /^.r/ { mod += 400 }
   /^..w.../ { mod += 200 }
   /^...x../ { mod += 100 }
   /^...S../ { mod += 4000 }
   /^...s../ { mod += 4100 }
   /^r./ { mod += 40 }
   /^.w/ { mod += 20 }
   /^..x.../ { mod += 10 }
   /^..S.../ { mod += 2000 }
   /^..s.../ { mod += 2010 }
   /^...r../ { mod += 4 }
   /^w./ { mod += 2 }
   /^.x/ { mod += 1 }
   /^.t/ { mod += 1000 }
   { printf "%c %04d %s.%s ", substr($1, 1, 1), mod, $3, $4 }
   { if ($9) print $9; else print $8 }' |
 sed "[EMAIL PROTECTED]@ @"

fi


exit 0
---

On Mon, 2006-12-04 at 14:18 +0100, Robert Urban wrote:
> Hi Misc'ers,
> 
> I did something stupid on my 4.0 server and lost the contents of /bin.  
> I restored by
> booting from the install-cd, mounting /, /usr, and /var, and running
> 
> cd /root-mount; pax -rz -f /cd/4.0/i386/base40.tgz
> 
> (please don't ask what the stupid thing was).
> 
> I saved my /etc, /var/db, /var/www, /var/cron beforehand, so these were 
> not affected.
> 
> The pax-connaisseurs among you will immediately notice that I forgot to 
> use "-p e" to
> preserve all permissions. I went through manually and reset 
> setuid/setguid bits for all
> relevant files, using a 3.9 system as my guide.
> 
> My question is, does base40.tgz contain the permissions/ownership that 
> the files should
> have after installation?
> Is it appropriate to write a script which uses the permissions and
> owner/group from base40.tgz to restore the same for all existing files 
> in the filesystem?
> Or do file permissions/ownership somehow get modified during the 
> installation?
> 
> thanks,
> 
> Rob Urban



Re: ral0: device timeout

2006-12-05 Thread Bill Maas
On 12/4/06, Markus Bergkvist <[EMAIL PROTECTED]> wrote:
> Also, the connection light and the transmission light is always on,
> regardsless if it is connected to the network or sending/receiving or
> not. Only when I take the network interface down the lights go out. If
> that means anything to anyone.

Check the other end. I've had a similar problem with sis0 on a Soekris
(both LEDs continuously on), and it turned out to be the Vigor ADSL
modem that was in trouble.

Bill

-- 
Good that there are standards, and enough of them



Re: ral0: device timeout

2006-12-05 Thread Bill Maas
From
http://www.cisco.com/univercd/cc/td/doc/product/rtrmgmt/ie2116/install/cables.htm#wp1043436
:

"The bottom LED is the Ethernet activity LED. When it flashes, it
indicates that data is being transmitted or received between the server
and a network device. The flashing frequency is proportional to the
amount of traffic on the network link."

So if the LED stays ON then something might be flooding the interface
with packets [or the interface is trying to send the same packet over
and over again - beyond my knowledge]. Which might as well indicate a
software [config] problem. Did you run tcpdump(8) on that interface? Did
you reboot the device while off the net and was there still a problem?
That would indicate that the error is generated internally. I wouldn't
bet my life on an OS or hardware issue here.

Bill

On Tue, 2006-12-05 at 23:11 +0100, Markus Bergkvist wrote:
> I have a RT2600 also on my AP so I guess I have to get my hands on a 
> working out-of-the-box AP to verify that it is no hardware problem.
> 
> /Markus
> 
> Bill Maas wrote:
> > On 12/4/06, Markus Bergkvist <[EMAIL PROTECTED]> wrote:
> >> Also, the connection light and the transmission light is always on,
> >> regardsless if it is connected to the network or sending/receiving or
> >> not. Only when I take the network interface down the lights go out. If
> >> that means anything to anyone.
> > 
> > Check the other end. I've had a similar problem with sis0 on a Soekris
> > (both LEDs continuously on), and it turned out to be the Vigor ADSL
> > modem that was in trouble.
> > 
> > Bill
> > 
> 
-- 
Good that there are standards, and enough of them



Re: diskless kernel config

2006-12-10 Thread Bill Maas
I tried that too a while ago, without success. If I remember it well,
support for diskless booting was dropped for i386 at some point, though
the config still contains references to it here and there. But someone
kick me if I'm wrong..

Bill

On Sun, 2006-12-10 at 22:09 -0600, Jacob Yocom-Piatt wrote:
> the diskless(8) manpage is quite informative but it omits any discussion of 
> the
> necessary kernel config for running diskless. the closest thing i could find 
> was
> 
> http://marc.theaimsgroup.com/?l=openbsd-misc&m=107368329021519&w=2
> 
> the goal is to get a soekris 4801 running diskless and i tried taking the
> flashdist 4801 config for 4.0 and making a single modification. the only 
> change
> made was
> 
> #config bsd root on wd0a
> config  bsd root on nfs swap on nfs
> 
> and i got an error during the make
> 
> # make
> mkdir -p /usr/src/sys/arch/i386/compile/NET4801/lib/kern
> making sure the kern library is up to date...
> `libkern.o' is up to date.
> making sure the compat library is up to date...
> `libcompat.a' is up to date.
> sh /usr/src/sys/arch/i386/compile/NET4801/../../../../conf/newvers.sh
> cc  -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wno-uninitialized
> -Wno-format -Wno-main  -Wstack-larger-than-2047 -march=i486 
> -fno-builtin-printf
> -fno-builtin-log -O2 -pipe -nostdinc -I.
> -I/usr/src/sys/arch/i386/compile/NET4801/../../../../arch
> -I/usr/src/sys/arch/i386/compile/NET4801/../../../.. -DDDB -DDIAGNOSTIC 
> -DKTRACE
> -DCRYPTO -DFFS -DMFS -DTCP_SACK -DTCP_SIGNATURE -DFDESC -DFIFO -DKERNFS 
> -DPROCFS
> -DINET -DALTQ -DIPSEC -DBOOT_CONFIG -DI586_CPU -DUSER_PCICONF -DPTRACE
> -DPCCOMCONSOLE -DCONSPEED="0x4b00" -DPCIVERBOSE -D_KERNEL -Di386  -c vers.c
> rm -f bsd
> ld -Ttext 0xD0200120 -e start -N -S -x -o bsd ${SYSTEM_OBJ} vers.o
> swapbsd.o(.data+0x20): undefined reference to `nfs_mountroot'
> *** Error code 1
> 
> Stop in /usr/src/sys/arch/i386/compile/NET4801 (line 344 of Makefile).
> 
> suggestions as to the correct config setting would be appreciated. was there
> ever a DISKLESS config in the source tree?
> 
> cheers,
> jake
> 
> 
-- 
Good that there are standards, and enough of them



Re: diskless kernel config

2006-12-10 Thread Bill Maas
Before I really get kicked: I don't think those refences are in the
config, but there certainly are references to i386 diskless booting in
some older online docs, like this one:

http://www.onlamp.com/pub/a/bsd/2004/04/29/Big_Scary_Daemons.html

I tried something similar, because I wanted to see if I could mount an
NFS partition from my Soekris, running OpenBSD, but I couldn't get it to
work. I also couldn't get NFS support to compile properly, so I left it
and dived into the "miniroot" stuff. This can serve as an alternative to
mount / on NFS, except that it has quite stringent size limitations.

By the way, the fact that PXE booting is also often referred to as
"diskless booting" (which technically it is), doesn't make life easier
for someone who is new to both topics, as they are both quite different.

Finally, from the document above:

"OpenBSD provides a kernel configuration specifically for i386 diskless
operations. It's called DISKLESS."

That config presumably contained all support that's needed for a
Sun-style diskless boot, but it seems to have been obsoleted for i386.

And from diskless(8):

"The procedures for AMD64 and i386 clients vary somewhat to the stages
detailed above. See pxeboot(8) for more detailed information."

They seem to vary more than "somewhat"..


Bill
 
On Mon, 2006-12-11 at 06:59 +0100, Bill Maas wrote:
> I tried that too a while ago, without success. If I remember it well,
> support for diskless booting was dropped for i386 at some point, though
> the config still contains references to it here and there. But someone
> kick me if I'm wrong..
> 
> Bill
> 
> On Sun, 2006-12-10 at 22:09 -0600, Jacob Yocom-Piatt wrote:
> > the diskless(8) manpage is quite informative but it omits any discussion of 
> > the
> > necessary kernel config for running diskless. the closest thing i could 
> > find was
> > 
> > http://marc.theaimsgroup.com/?l=openbsd-misc&m=107368329021519&w=2
> > 
> > the goal is to get a soekris 4801 running diskless and i tried taking the
> > flashdist 4801 config for 4.0 and making a single modification. the only 
> > change
> > made was
> > 
> > #config bsd root on wd0a
> > config  bsd root on nfs swap on nfs
> > 
> > and i got an error during the make
> > 
> > # make
> > mkdir -p /usr/src/sys/arch/i386/compile/NET4801/lib/kern
> > making sure the kern library is up to date...
> > `libkern.o' is up to date.
> > making sure the compat library is up to date...
> > `libcompat.a' is up to date.
> > sh /usr/src/sys/arch/i386/compile/NET4801/../../../../conf/newvers.sh
> > cc  -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  
> > -Wno-uninitialized
> > -Wno-format -Wno-main  -Wstack-larger-than-2047 -march=i486 
> > -fno-builtin-printf
> > -fno-builtin-log -O2 -pipe -nostdinc -I.
> > -I/usr/src/sys/arch/i386/compile/NET4801/../../../../arch
> > -I/usr/src/sys/arch/i386/compile/NET4801/../../../.. -DDDB -DDIAGNOSTIC 
> > -DKTRACE
> > -DCRYPTO -DFFS -DMFS -DTCP_SACK -DTCP_SIGNATURE -DFDESC -DFIFO -DKERNFS 
> > -DPROCFS
> > -DINET -DALTQ -DIPSEC -DBOOT_CONFIG -DI586_CPU -DUSER_PCICONF -DPTRACE
> > -DPCCOMCONSOLE -DCONSPEED="0x4b00" -DPCIVERBOSE -D_KERNEL -Di386  -c vers.c
> > rm -f bsd
> > ld -Ttext 0xD0200120 -e start -N -S -x -o bsd ${SYSTEM_OBJ} vers.o
> > swapbsd.o(.data+0x20): undefined reference to `nfs_mountroot'
> > *** Error code 1
> > 
> > Stop in /usr/src/sys/arch/i386/compile/NET4801 (line 344 of Makefile).
> > 
> > suggestions as to the correct config setting would be appreciated. was there
> > ever a DISKLESS config in the source tree?
> > 
> > cheers,
> > jake
> > 
> > 
-- 
Good that there are standards, and enough of them



Re: What it this mean?

2006-12-11 Thread Bill Maas
On Mon, 2006-12-11 at 15:47 -0800, Bryan Irvine wrote:
> On 12/11/06, Nick Guenther <[EMAIL PROTECTED]> wrote:
> >
> > On 12/11/06, Carlos A. Garcia G <[EMAIL PROTECTED]> wrote:
> > > i have recived a mail from the server with this information
> > >
> > > Checking setuid/setgid files and devices:
> > > Setuid/device find errors:
> > > find: /tmp/PerlIO_W32319: No such file or directory
> > >
> > > what is it? and what can i do to fix the problem?
> > >
> >
> > This is not nearly enough information to even begin guessing what the
> > problem is, except that it's something to do with Perl, and looking at
> > http://netpointmexico.com I see that it's a webmail system written in
> > Perl. It's probably a bug in that, potentially one that OpenBSD (if
> > you're even running OpenBSD) exposes?
> >
> 
> 
> I suspect you are on the right track.  My best guess with the complete lack
> of info is that /var/www/tmp is missing (ie chrooted apache).
> 
> --Bryan
> 

To both commentators:

http://www.seas.ucla.edu/classes/mkampe/cs111.sq05/docs/bsd.html

Excellent reading!

Bill

> 
-- 
"Incompetence is our watchword" - John Peel



Re: diskless kernel config

2006-12-11 Thread Bill Maas
On Tue, 2006-12-12 at 11:26 +1100, Craig Barraclough wrote:
> > I tried something similar, because I wanted to see if I could mount an
> > NFS partition from my Soekris, running OpenBSD, but I 
> > couldn't get it to
> > work. I also couldn't get NFS support to compile properly, so 
> > I left it
> 
> 
> I've had no problem getting a 4.0-current (upgraded from 3.8-current,
> through 3.9-current) system (Soekris NET4801-50) working in just this
> way.

I was talking about 3.8. Tried configuring GENERIC with NFS support but
it failed, and I just didn't feel like going into the details at that
time (unaware of the mass of "details" that bsd.rd / miniroot was going
to throw at me;).

> NFS kernel supplied from a CF based filesystem on one Soekris box, root
> and swap on a NAS device.
> Boxes are mounted in the neat kd85.com rack-mount case (Thanks Wim!).
> Kernel is built using a quick patch:
> 
> --- GENERIC   Thu Jun  8 12:04:42 2006
> +++ GENERIC.NFS   Tue Jun 13 12:13:35 2006
> @@ -39,7 +39,7 @@
>  #option  NTFS# Experimental NTFS support
>  
>  # or use root on nfs swap on nfs
> -config   bsd swap generic
> +config   bsd root on nfs swap on nfs
> 

You're right. The motivation for dropping the DISKLESS kernel config,
according to a CVS log message (if I remember it well), was indeed a
line like "now replaced by a single line in GENERIC".

Still, mounting / on NFS doesn't seem to be considered the standard
procedure it is with e.g. Debian/GNU Linux, and isn't documented
extensively - in the FAQ or elsewhere. I'd be happy to do that, _if I
find time_.

Some day I'll try setting up the "diskless" environment again, if only
for fun & education. Maybe some nice doc will spin off of it.


Bill

-- 
"Incompetence is our watchword" - John Peel



Re: help! 855 chipset resolution

2006-12-13 Thread Bill Maas
On Wed, 2006-12-13 at 22:19 +0100, Vim Visual wrote:
> Hi,
> 
> ok... it's taken me blood and sweat but I have succeeded at resizing
> (per hand) the linux disk without losing data (!). Qtparted just
> didn't work at all.

Qtparted is probably a front-end to Parted, which is yet another GNU
misgrowth - don't use it (no seriously, it's rubbish). For partitioning,
use fdisk or cfdisk instead; cfdisk has been reported to "write the
cleanest partition table entries", so must be good. It's also very
comfortable. I use it all the time.

I'm not acquainted with partition resizing, I just throw everything off
and install again. People who resize partitions are probably people who
don't keep backups (OK, the are a few Windows issues which make resizing
the most obvious option sometimes, but we're talking Linux here aren't
we?). Having e.g. a separate secondary partition mounted on /home is
also a good way to maintain flexibility.

>  I don't know how but I have managed to have now
> three partitions
> 
> 1st partition, ~35GB, with ext3
> 2nd partition, ~35GB no format
> 3rd partition swap linux (the rest)
> 
> Now I have booted from the obsd40.iso cd but I am messed up... ahem...
> 
> When I try to follow the instructions for the dual boot I get lost in
> the CHS nomenclature... I have taken a picture of the table:
> 
> www.aei.mpg.de/~pau/partitions.png
> 
> when I try to go for the disklabel thing it says the root slice just
> created, of 300MB, overlaps with b, swap, which I gave 2GB... but I
> don't know why... and I also don't know what's that extended DOS
> thing??!

>From my Notes:

"""
- older i386 subdirs (<= 3.4) contained a few files with very detailed
  descriptions of harddisk issues in /pub/OpenBSD//i386/:
  - INSTALL.ata The "ATA/ATA-1/ATA-2/IDE/ETDE/etc FAQ"
  - The "HOW IT WORKS" series:
INSTALL.chs CHS translation
INSTALL.dbr DOS floppy boot sector
INSTALL.mbr Master Boot Record
INSTALL.os2br   OS2 boot sector
INSTALL.pt  Partition tables
  Very useful if you like to know for example that "LBA =
  ( (cylinder * heads_per_cylinder + heads ) * sectors_per_track ) +
sector - 1"
  These documents now live at: http://www.ata-atapi.com/hiw.htm
"""

Might provide you with a few Extended answers;).

> Would it be also possible to use the linux swap partition for both
> systems, o'bsd and linux?

Not that I'm aware of.

> Could you please be so nice as to write in a dummy way? something like
> "add a, delete b" etc?

The OpenBSD FAQ should be dummy-proof enough. It worked for me;)

> I have the feeling that I have messed up the CHS thing and would be
> VEERY grateful if you dummified the process...
> 
> I have copied these lines from the installation guide and some of the
> numbers do not correspond to my disk... but I'd be grateful if you
> gave me the answers...

The numbers aren't supposed to match exactly, it's the Bigger Picture
that matters here. Sit down, relax, take a deep breath, concentrate,
read carefully and absorb.. The knowledge is there.

> Partition id ('0' to disable)  [0 - FF]: [0] (? for help) a6
>   Do you wish to edit in CHS mode? [n] y

I think this question could have also read "Do you want to make life
more difficult? [n]". So why answer with 'y'?

>   BIOS Starting cylinder [0 - 9728]: [0] Here for instance I set
> 4659... because I see that linux goes until 4658
>   BIOS Starting head [0 - 239]: [0] Enter (these numbers are from the
> inst. guide)
>   BIOS Starting sector [1 - 63]: [0] 1
>   BIOS Ending cylinder [0 - 2585]: [0] 2585
>   BIOS Ending head [0 - 239]: [0] 239
>   BIOS Ending sector [1 - 63]: [0] 63

Advice: start all over again using cfdisk (you will hardly need a manual
for that one), create a nice set of primary partitions (you can leave
your Linux partition as it is), and try again from there. As far as the
disk label is concerned: delete everything you find except of course
'c' (that should be only 'a' and 'b' on a fresh partition), and then
start adding OpenBSD partitions. All you'll need to worry about then are
sizes, not sector nos or other difficult stuff.

> I am reading the man, I swear! and the installation guide... I guess
> this is the result of many years of nice GUI applets... :(

And being in too much of a hurry. You want it All and you want it Now!

> I am afraid that the o'bsd partition should go to the first part of
> the table... mmmh...
> Otherwise I can do it the other way round... install obsd and then
> linux... in this direction I know my way...


BTW, expect to be able to mount Linux without problems (and r/w) from
OpenBSD, but not the other way around (that's my personal experience). I
use ext2/3 partitions for data shared across the two installs, works
perfectly. Apparently the Linux kernel can be compiled to mount an FFS
partition r/w, but I didn't try that, and I won't because I don't trust
it (as in: why is it not compiled in by default for the major distros?).

Mounting an 

need_help() with project

2008-07-13 Thread Bill Maas
Hi,

I'm working on a configuration management system based on siteXX-like
archives. While writing the software was mostly fun, the documentation
has turned out to be a bit of an ordeal due to motivational issues,
illness and stuff. I guess I've mostly been missing the necessary
feedback. So please take a look at it if you like, and if it looks
interesting enough, don't hesitate to ask me a few questions about How
It Works (it actually does - I use it myself). Contact info is on the
web site:

http://www.filedozer.org/

Mirror (main web hoster can be a bit unreliable):

http://stsx.xs4all.nl/www.filedozer.org/index.html

Greetings,

Bill


-- 
"There is nothing to worry about" - unknown



No OpenBSD for Lenovo Thinkpad w500 4058CTO

2009-05-05 Thread Bill Maas
Hi,

First, and just for the record: while trying to set up an FTP server on
OpenBSD 4.2 I got this error message while trying to connect by any
other address than 'localhost':

421 Service not available, remote server has closed connection.

Reason, it turned out: a missing entry in /etc/hosts.allow. I had a hard
time finding anything relevant out there, so now at least the relation
between the error message and the missing entry is documented.


The reason I needed an FTP server is that I'm trying to install OpenBSD
4.5 on a Lenovo Thinkpad W500 model 4058-CTO, with no success. With obsd
4.4 it never got past hardware initialization, with 4.5 at least I get
the installer menu, but no for long:

[...]
Proceed with install? [n] y
[...]

No disks found
#

And no, I don't expect developers to _scramble to their laptops_ just
because I as an OpenBSD user am _entitled to have this fixed ASAP_ and
stuff like that. I was at least happy to see that the Fathers of OpenBSD
in their infinite wisdom decided to use plain ftp for downloading
packages, and not some custom-built single-purpose
binary-installer-builtin, so I could at least get a dmesg off the box (I
didn't manage to get a screen capture over USB).

The output from the 'dmesg' command run from the shell commandline is
listed below. I'm only an "index" list member, but feel free to contact
me offlist if you need more info. I'll be happy to help testing any
updates. And I'll be following any replies through the archives of
course.

An otherwise very happy OpenBSD user,


Bill


dmesg:
--
OpenBSD 4.5 (RAMDISK_CD) #1112: Sat Feb 28 15:06:26 MST 2009
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/RAMDISK_CD
cpu0: Intel(R) Core(TM)2 Duo CPU T9400 @ 2.53GHz ("GenuineIntel"
686-class) 2.53 GHz
cpu0:
FPU,V86,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,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR
real mem  = 3214176256 (3065MB)
avail mem = 3115958272 (2971MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/24/08, BIOS32 rev. 0 @ 0xfdc80,
SMBIOS rev. 2.4 @ 0xe0010 (74 entries)
bios0: vendor LENOVO version "6FET46WW (1.16 )" date 09/24/2008
bios0: LENOVO 4058CTO
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT ASF! SSDT
SSDT SSDT SSDT SSDT
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 265MHz
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus -1 (EXP2)
acpiprt5 at acpi0: bus 5 (EXP3)
acpiprt6 at acpi0: bus 13 (EXP4)
acpiprt7 at acpi0: bus 21 (PCI1)
bios0: ROM list: 0xc/0xfc00 0xd/0x1000 0xd1000/0x1000
0xd2000/0x1000 0xde000/0x1800! 0xe/0x1
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel GM45 Host" rev 0x07
ppb0 at pci0 dev 1 function 0 "Intel GM45 PCIE" rev 0x07: apic 1 int 16
(irq 11)
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Mobility Radeon HD 3650" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
"Intel GM45 HECI" rev 0x07 at pci0 dev 3 function 0 not configured
em0 at pci0 dev 25 function 0 "Intel ICH9 IGP M AMT" rev 0x03: apic 1
int 20 (irq 11), address 00:1c:25:97:34:61
uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x03: apic 1 int
20 (irq 11)
uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x03: apic 1 int
21 (irq 11)
uhci2 at pci0 dev 26 function 2 "Intel 82801I USB" rev 0x03: apic 1 int
22 (irq 11)
ehci0 at pci0 dev 26 function 7 "Intel 82801I USB" rev 0x03: apic 1 int
23 (irq 11)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
"Intel 82801I HD Audio" rev 0x03 at pci0 dev 27 function 0 not
configured
ppb1 at pci0 dev 28 function 0 "Intel 82801I PCIE" rev 0x03: apic 1 int
20 (irq 11)
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 1 "Intel 82801I PCIE" rev 0x03: apic 1 int
21 (irq 11)
pci3 at ppb2 bus 3
iwn0 at pci3 dev 0 function 0 "Intel WiFi Link 5300AGN" rev 0x00: apic 1
int 17 (irq 11), MIMO 3T3R, MoW, address 00:16:ea:a3:00:2c
ppb3 at pci0 dev 28 function 3 "Intel 82801I PCIE" rev 0x03: apic 1 int
23 (irq 11)
pci4 at ppb3 bus 5
ppb4 at pci0 dev 28 function 4 "Intel 82801I PCIE" rev 0x03: apic 1 int
20 (irq 11)
pci5 at ppb4 bus 13
uhci3 at pci0 dev 29 function 0 "Intel 82801I USB" rev 0x03: apic 1 int
16 (irq 11)
uhci4 at pci0 dev 29 function 1 "Intel 82801I USB" rev 0x03: apic 1 int
17 (irq 11)
uhci5 at pci0 dev 29 function 2 "Intel 82801I USB" rev 0x03: apic 1 int
18 (irq 11)
ehci1 at pci0 dev 29 function 7 "Intel 82801I USB" rev 0x03: apic 1 int
19 (irq 11)
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "In

Re: No OpenBSD for Lenovo Thinkpad w500 4058CTO

2009-05-06 Thread Bill Maas
Hi Nick,

On Tue, 2009-05-05 at 09:48 -0400, Nick Guenther wrote:
> Your disks aren't showing up in dmesg. Try tweaking your BIOS
> settings--i know that I had to change from IDE emulation to AHCI when
> I upgraded to 4.5.

That did the trick. Thanks. I'm hoping to replace my current GNOME
desktop with an OpenBSD-based one, so I can keep more in touch with this
excellent little system;).

Bill

> On 05/05/2009, Bill Maas  wrote:
> > Hi,
> >
> > First, and just for the record: while trying to set up an FTP server on
> > OpenBSD 4.2 I got this error message while trying to connect by any
> > other address than 'localhost':
> >
> > 421 Service not available, remote server has closed connection.
> >
> > Reason, it turned out: a missing entry in /etc/hosts.allow. I had a hard
> > time finding anything relevant out there, so now at least the relation
> > between the error message and the missing entry is documented.
> >
> >
> > The reason I needed an FTP server is that I'm trying to install OpenBSD
> > 4.5 on a Lenovo Thinkpad W500 model 4058-CTO, with no success. With obsd
> > 4.4 it never got past hardware initialization, with 4.5 at least I get
> > the installer menu, but no for long:
> >
> > [...]
> > Proceed with install? [n] y
> > [...]
> >
> > No disks found
> > #
> >
> > And no, I don't expect developers to _scramble to their laptops_ just
> > because I as an OpenBSD user am _entitled to have this fixed ASAP_ and
> > stuff like that. I was at least happy to see that the Fathers of OpenBSD
> > in their infinite wisdom decided to use plain ftp for downloading
> > packages, and not some custom-built single-purpose
> > binary-installer-builtin, so I could at least get a dmesg off the box (I
> > didn't manage to get a screen capture over USB).
> >
> > The output from the 'dmesg' command run from the shell commandline is
> > listed below. I'm only an "index" list member, but feel free to contact
> > me offlist if you need more info. I'll be happy to help testing any
> > updates. And I'll be following any replies through the archives of
> > course.
> >
> > An otherwise very happy OpenBSD user,
> >
> >
> > Bill
> >
> >
> > dmesg:
> > --
> > OpenBSD 4.5 (RAMDISK_CD) #1112: Sat Feb 28 15:06:26 MST 2009
> > dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/RAMDISK_CD
> > cpu0: Intel(R) Core(TM)2 Duo CPU T9400 @ 2.53GHz ("GenuineIntel"
> > 686-class) 2.53 GHz
> > cpu0:
> > FPU,V86,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,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR
> > real mem  = 3214176256 (3065MB)
> > avail mem = 3115958272 (2971MB)
> > mainbus0 at root
> > bios0 at mainbus0: AT/286+ BIOS, date 09/24/08, BIOS32 rev. 0 @ 0xfdc80,
> > SMBIOS rev. 2.4 @ 0xe0010 (74 entries)
> > bios0: vendor LENOVO version "6FET46WW (1.16 )" date 09/24/2008
> > bios0: LENOVO 4058CTO
> > acpi0 at bios0: rev 2
> > acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT ASF! SSDT
> > SSDT SSDT SSDT SSDT
> > acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> > cpu0 at mainbus0: apid 0 (boot processor)
> > cpu0: apic clock running at 265MHz
> > cpu at mainbus0: not configured
> > ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
> > ioapic0: misconfigured as apic 2, remapped to apid 1
> > acpiprt0 at acpi0: bus 0 (PCI0)
> > acpiprt1 at acpi0: bus 1 (AGP_)
> > acpiprt2 at acpi0: bus 2 (EXP0)
> > acpiprt3 at acpi0: bus 3 (EXP1)
> > acpiprt4 at acpi0: bus -1 (EXP2)
> > acpiprt5 at acpi0: bus 5 (EXP3)
> > acpiprt6 at acpi0: bus 13 (EXP4)
> > acpiprt7 at acpi0: bus 21 (PCI1)
> > bios0: ROM list: 0xc/0xfc00 0xd/0x1000 0xd1000/0x1000
> > 0xd2000/0x1000 0xde000/0x1800! 0xe/0x1
> > pci0 at mainbus0 bus 0: configuration mode 1 (bios)
> > pchb0 at pci0 dev 0 function 0 "Intel GM45 Host" rev 0x07
> > ppb0 at pci0 dev 1 function 0 "Intel GM45 PCIE" rev 0x07: apic 1 int 16
> > (irq 11)
> > pci1 at ppb0 bus 1
> > vga1 at pci1 dev 0 function 0 "ATI Mobility Radeon HD 3650" rev 0x00
> > wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> > "Intel GM45 HECI" rev 0x07 at pci0 dev 3 function 0 not configured
> > em0 at pci0 dev 25 function 0 "Intel ICH9 IGP M AMT" rev 0x03: apic 1
> > int 20 

Kernel panic while accessing ext3 partition

2009-05-07 Thread Bill Maas
Hi,

I got a "bad ref count" panic message while trying to access a directory
on a 45 GB ext3 partition. Below is what I managed to salvage. Any
workarounds for this? Anyway, got GNOME on OpenBSD up and running, made
very easy, great!

Bill

---
b5 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0x93
pci6 at ppb5 bus 21
cbb0 at pci6 dev 0 function 0 "Ricoh 5C476 CardBus" rev 0xba: apic 1 int
16 (irq 11)
"Ricoh 5C832 Firewire" rev 0x04 at pci6 dev 0 function 1 not configured
sdhc0 at pci6 dev 0 function 2 "Ricoh 5C822 SD/MMC" rev 0x21: apic 1 int
18 (irq 11)
sdmmc0 at sdhc0
"Ricoh 5C843 MMC" rev 0x11 at pci6 dev 0 function 3 not configured
"Ricoh 5C592 Memory Stick" rev 0x11 at pci6 dev 0 function 4 not
configured
"Ricoh 5C852 xD" rev 0x11 at pci6 dev 0 function 5 not configured
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 22 device 0 cacheline 0x0, lattimer 0xb0
pcmcia0 at cardslot0
pcib0 at pci0 dev 31 function 0 "Intel 82801IEM LPC" rev 0x03
ahci0 at pci0 dev 31 function 2 "Intel 82801I AHCI" rev 0x03: apic 1 int
16 (irq 11), AHCI 1.2
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0:  SCSI3 0/direct
fixed
sd0: 305245MB, 512 bytes/sec, 625142448 sec total
cd0 at scsibus0 targ 1 lun 0:  ATAPI
5/cdrom removable
ichiic0 at pci0 dev 31 function 3 "Intel 82801I SMBus" rev 0x03: apic 1
int 23 (irq 11)
iic0 at ichiic0
usb2 at uhci0: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci1: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci2: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb5 at uhci3: USB revision 1.0
uhub5 at usb5 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb6 at uhci4: USB revision 1.0
uhub6 at usb6 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb7 at uhci5: USB revision 1.0
uhub7 at usb7 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
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, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: 
spkr0 at pcppi0
aps0 at isa0 port 0x1600/31
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
mtrr: Pentium Pro MTRR support
uvideo0 at uhub0 port 6 configuration 1 interface 0 "Chicony Electronics
Co., Ltd. product 0x4807" rev 2.00/31.34 addr 2
video0 at uvideo0
ubt0 at uhub3 port 2 "Lenovo Computer Corp ThinkPad Bluetooth with
Enhanced Data Rate II" rev 2.00/3.52 addr 2
ugen0 at uhub7 port 2 "Lenovo Integrated Smart Card Reader" rev
2.00/1.00 addr 2
softraid0 at root
root on sd0a swap on sd0b dump on sd0b
WARNING: / was not properly unmounted
vrele: bad ref count: 0xd99ad788, type VBLK, use 0, write 0, hold 6,
flags (VBIOONFREELIST)
tag VT_UFS, ino 1188, on dev 4, 0 flags 0x0, effnlink 1, nlink 1
mode 060640, owner 0, group 5, size 0 not locked
panic: vrele: ref cnt
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> ddb> Debugger(0,d991e550,df754ae0,d99ad788,d99b8008) at Debugger
+0x4
panic(d06f545f,d99ad788,0,d991e550,d99532e0) at panic+0x55
vrele(d99ad788,6,0,d0381e08) at vrele+0xa2
ext2fs_reclaim(df754b18,d08106a8,0,d991e550,d07a95e4) at ext2fs_reclaim
+0x89
VOP_RECLAIM(d991e550,d99b8008,d99b8008,0) at VOP_RECLAIM+0x28
vclean(d991e550,8,d99b8008,0,d3b36c00) at vclean+0x76
vgonel(d991e550,d99b8008,0,d99b8008,d94a6130) at vgonel+0x3e
vrecycle(d991e550,d99b8008,d99b8008,18f3) at vrecycle+0x20
ext2fs_inactive(df754c08,1780,df754c30,d037b6fd,d07a95d8) at
ext2fs_inactive+0xdc
VOP_INACTIVE(d991e550,d99b8008,df754c80,d0458b27,16) at VOP_INACTIVE
+0x28
vput(d991e550,df754c6c,d3b4b400,df754c70,1780) at vput+0x36
ext2fs_vget(d3e0d800,178001,df754d28,178001) at ext2fs_vget+0x167
ext2fs_lookup(df754d58,d99b8008,df754d70,d0380823,d07a94b8) at
ext2fs_lookup+0x62e
VOP_LOOKUP(d995af28,df754e58,df754e6c,20) at VOP_LOOKUP+0x2e
lookup(df754e48,d9814c00,400,df754e60) at lookup+0x1d0
namei(df754e48,20042,0,0) at namei+0x18c
sys_lstat(d99b8008,df754f68,df754f58,cfbc2810,d99b8008) at sys_lstat
+0x4a
syscall() at syscall+0x24e
--- syscall (number 293) ---
0x1c023f35:
ddb>PID   PPID   PGRPUID  S   FLAGS  WAIT
COMMAND 
  9152  1  24654   1000  3  0x4080  poll
notification-are
 19989  1  24654   1000  3  0x4080  poll
clock-applet
 32558  1  24654   1000  3  0x4080  poll
mixer_applet2   
 30896  1  11290   1000  3  0x4080  poll
gvfsd-trash 
 19245  1  19245   1000  30x80  poll
gnome-screensave
 17846  1  24654   1000  3  0x4080  poll
wnck-applet 
 16498  1  11290   1000  3  0x4080  poll
gvfsd

Separate desktop list?

2009-06-08 Thread Bill Maas
[owner-misc: wrong address - sorry - resend]

Hi,

is there a separate channel for desktop bugs/discussions [planned]? I'm
running into GNOME bugs from time to time which are hardly worth
bothering the core development team with. Such a channel (e.g. an
"openbsd-desktop" list) might also help redirect the whining teletubbies
("Why doesn't OpenBSD support feature XYZABCblah ?") off this list. Who
IMO are drawn to OpenBSD by virtue of the GNOME desktop integration, and
whose sole purpose for running OpenBSD is to impress their Ubuntu
buddies.

Idea?

Bill



Re: Separate desktop list?

2009-06-08 Thread Bill Maas
Hi Antoine,

On Mon, 2009-06-08 at 11:50 +0200, Antoine Jacoutot wrote:
> On Mon, 8 Jun 2009, Bill Maas wrote:
> 
> > [owner-misc: wrong address - sorry - resend]
> > 
> > Hi,
> > 
> > is there a separate channel for desktop bugs/discussions [planned]? I'm
> > running into GNOME bugs from time to time which are hardly worth
> 
> $ pkg_info gnome-session |grep Maintainer

I was hinting at a somewhat _broader_ medium;)

Bill



Re: Separate desktop list?

2009-06-08 Thread Bill Maas
On Mon, 2009-06-08 at 12:21 +0200, Antoine Jacoutot wrote: 
> On Mon, 8 Jun 2009, Bill Maas wrote:
> 
> > Hi Antoine,
> > 
> > On Mon, 2009-06-08 at 11:50 +0200, Antoine Jacoutot wrote:
> > > On Mon, 8 Jun 2009, Bill Maas wrote:
> > > 
> > > > [owner-misc: wrong address - sorry - resend]
> > > > 
> > > > Hi,
> > > > 
> > > > is there a separate channel for desktop bugs/discussions [planned]? I'm
> > > > running into GNOME bugs from time to time which are hardly worth
> > > 
> > > $ pkg_info gnome-session |grep Maintainer
> > 
> > I was hinting at a somewhat _broader_ medium;)
> 
> Oh. Well then you could try ports@ but there is nothing desktop 
> specific. I'd like to know about these gnome bugs though ;)

(By heart):

- evolution is incredibly slow at startup
- deleting a message before it is fully loaded will cause evolution to
  crash
- PrtScr doesn't work, even though it's registered with the Gnome
  shortcuts

Granted, only the last one is a potential GNOME bug, but they're
definitely all "desktop". These occur on _my_ machine, I don't know if
these quirks are universal and reproducible, hence the need for
discussion before firing bug reports at maintainers. I've been reluctant
to post a message each time I encounter an issue like these, because I
know (and strongly agree) that desktop isn't OpenBSD's core business.
I'll file a bug report for the evolution crashes, that's definitely a
bug. Having separate support channels for "server" and "desktop" is
quite commonplace, and usually serves to keep the "server" channel more
interesting and on-topic;).

About the 3d "bug": I'm not a GNOME expert, so maybe I'm overlooking
something, but I tried using xmodmap both ways..:

xmodmap -e 'keycode 111 = Print'
xmodmap -e 'keysym Print = Print'

.. and "Take a screenshot" is set to Print in the Keyboard shortcuts
window. 'gnome-screenshot' works well, both from the commandline and
from the launcher, but it's not much use for taking fullscreen shots.
Even if the feature is deliberately disabled, the Keyboard shortcuts
menu make a false suggestion. 

Also, copying from a vi(m) screen in an xterm window doesn't seem to
work (haven't made any attempt to sort that out yet).

That's all, for now;) 

Bill

dmesg:
OpenBSD 4.5 (GENERIC) #1749: Sat Feb 28 14:51:18 MST 2009
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Core(TM)2 Duo CPU T9400 @ 2.53GHz ("GenuineIntel"
686-class) 2.53 GHz
cpu0:
FPU,V86,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,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR
real mem  = 3214176256 (3065MB)
avail mem = 3114315776 (2970MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/24/08, BIOS32 rev. 0 @ 0xfdc80,
SMBIOS rev. 2.4 @ 0xe0010 (74 entries)
bios0: vendor LENOVO version "6FET46WW (1.16 )" date 09/24/2008
bios0: LENOVO 4058CTO
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT ASF! SSDT
SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) IGBE(S4) EXP0(S4)
EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3)
USB3(S3) USB4(S3) USB5(S3) EHC0(S3) EHC1(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 266MHz
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus -1 (EXP2)
acpiprt5 at acpi0: bus 5 (EXP3)
acpiprt6 at acpi0: bus 13 (EXP4)
acpiprt7 at acpi0: bus 21 (PCI1)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "92P1133" serial   199 type LION oem
"Panasonic"
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock at acpi0 not configured
acpivideo at acpi0 not configured
acpivideo at acpi0 not configured
bios0: ROM list: 0xc/0xfc00 0xd/0x1000 0xd1000/0x1000
0xd2000/0x1000 0xde000/0x1800! 0xe/0x1
cpu0: unknown Enhanced SpeedStep CPU, msr 0x0617492506004925
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 19467 MHz (1292 mV): speeds: 19467, 1600 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 fun

Re: Separate desktop list?

2009-06-09 Thread Bill Maas
Hi Antoine,

On Mon, 2009-06-08 at 21:39 +0200, Antoine Jacoutot wrote:
> On Mon, 8 Jun 2009, Bill Maas wrote:
> > - evolution is incredibly slow at startup
> 
> Known issue. Probably threads related, but it is just a wild guess. I 
> had no time to look into the issue for real yet.
> 
> > - deleting a message before it is fully loaded will cause evolution to
> >   crash
> 
> Interesting, I'll try to reproduce that one.

Same with pressing a folder button before the program itself is fully
loaded. This occurred yesterday, after I posted this message, as if in
protest. "Loaded" seems to be an issue with Evolution. 

[...]

> > Also, copying from a vi(m) screen in an xterm window doesn't seem to
> > work (haven't made any attempt to sort that out yet).
> 
> xterm != GNOME, so I'll leave that one to others ;)

Excuse me, I was using the expression "xterm" in a generic manner. It's
acutally a GNOME terminal.

Thanks for patience and attention anyway,

Bill



Ext2/3 mount trouble

2009-06-09 Thread Bill Maas
Hi,

I posted a message earlier about a kernel panic occurring when I
accessed a file on some of my ext3 fses. I've also been having trouble
with r/w extfs entries in fstab. At boot time I'm dropped to a shell
because fsck thinks the fs is unclean, even when "the other side" says
it's clean.

There is a simple workaround: declare all ext2fs mounts ro
in /etc/fstab, and remount these r/w after boot. This hasn't given me a
single problem so far (except that it's a bit inconvenient).

Bill

dmesg:
OpenBSD 4.5 (GENERIC) #1749: Sat Feb 28 14:51:18 MST 2009
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Core(TM)2 Duo CPU T9400 @ 2.53GHz ("GenuineIntel"
686-class) 2.53 GHz
cpu0:
FPU,V86,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,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR
real mem  = 3214176256 (3065MB)
avail mem = 3114315776 (2970MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/24/08, BIOS32 rev. 0 @ 0xfdc80,
SMBIOS rev. 2.4 @ 0xe0010 (74 entries)
bios0: vendor LENOVO version "6FET46WW (1.16 )" date 09/24/2008
bios0: LENOVO 4058CTO
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT ASF! SSDT
SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) IGBE(S4) EXP0(S4)
EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3)
USB3(S3) USB4(S3) USB5(S3) EHC0(S3) EHC1(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 265MHz
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus -1 (EXP2)
acpiprt5 at acpi0: bus 5 (EXP3)
acpiprt6 at acpi0: bus 13 (EXP4)
acpiprt7 at acpi0: bus 21 (PCI1)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "92P1133" serial   199 type LION oem
"Panasonic"
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock at acpi0 not configured
acpivideo at acpi0 not configured
acpivideo at acpi0 not configured
bios0: ROM list: 0xc/0xfc00 0xd/0x1000 0xd1000/0x1000
0xd2000/0x1000 0xde000/0x1800! 0xe/0x1
cpu0: unknown Enhanced SpeedStep CPU, msr 0x0617492506004925
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 19467 MHz (1292 mV): speeds: 19467, 1600 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel GM45 Host" rev 0x07
ppb0 at pci0 dev 1 function 0 "Intel GM45 PCIE" rev 0x07: apic 1 int 16
(irq 11)
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Mobility Radeon HD 3650" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"Intel GM45 HECI" rev 0x07 at pci0 dev 3 function 0 not configured
em0 at pci0 dev 25 function 0 "Intel ICH9 IGP M AMT" rev 0x03: apic 1
int 20 (irq 11), address 00:1c:25:97:34:61
uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x03: apic 1 int
20 (irq 11)
uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x03: apic 1 int
21 (irq 11)
uhci2 at pci0 dev 26 function 2 "Intel 82801I USB" rev 0x03: apic 1 int
22 (irq 11)
ehci0 at pci0 dev 26 function 7 "Intel 82801I USB" rev 0x03: apic 1 int
23 (irq 11)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 82801I HD Audio" rev 0x03: apic
1 int 17 (irq 11)
azalia0: RIRB time out
azalia0: codecs: Conexant CX20561, Conexant/0x2c06, using Conexant
CX20561
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 "Intel 82801I PCIE" rev 0x03: apic 1 int
20 (irq 11)
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 1 "Intel 82801I PCIE" rev 0x03: apic 1 int
21 (irq 11)
pci3 at ppb2 bus 3
iwn0 at pci3 dev 0 function 0 "Intel WiFi Link 5300AGN" rev 0x00: apic 1
int 17 (irq 11), MIMO 3T3R, MoW, address 00:16:ea:a3:00:2c
ppb3 at pci0 dev 28 function 3 "Intel 82801I PCIE" rev 0x03: apic 1 int
23 (irq 11)
pci4 at ppb3 bus 5
ppb4 at pci0 dev 28 function 4 "Intel 82801I PCIE" rev 0x03: apic 1 int
20 (irq 11)
pci5 at ppb4 bus 13
uhci3 at pci0 dev 29 function 0 "Intel 82801I USB" rev 0x03: apic 1 int
16 (irq 11)
uhci4 at pci0 dev 29 function 1 "Intel 82801I USB" rev 0x03: apic 1 int
17 (irq 11)
uhci5 at pci0 dev 29 function 2 "Intel 82801I USB" rev 0x03: apic 1 int
18 (irq 11)
ehci1 at pci0 dev 29 function 7 "Intel 82801I USB" rev 0x03: apic 1 int
19 (irq 11)
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb5 at pci0 

Ext2/3 mount trouble - follow-up

2009-06-09 Thread Bill Maas
Hi,

I figured I might as well add some disk details to my previous
message (Ext2/3 mount trouble), so here's the whole story.


r...@happyflowers:~# cat /etc/fstab 

/dev/sd0a / ffs rw 1 1
/dev/sd0g /home ffs rw,nodev,nosuid 1 2
/dev/sd0f /tmp ffs rw,nodev,nosuid 1 2
/dev/sd0d /usr ffs rw,nodev 1 2
/dev/sd0e /var ffs rw,nodev,nosuid 1 2
/dev/sd0l /mnt/export ext2fs ro,nodev,nosuid 1 2
/dev/sd0m /mnt/home ext2fs ro,nodev,nosuid 1 2
#/dev/sd0n /mnt/ubu ext2fs ro,nodev,nosuid,noauto 1 2
#/dev/sd0o /mnt/misc ext2fs ro,nodev,nosuid,noauto 1 2
#/dev/sd0p /mnt/backup ext2fs ro,nodev,nosuid,noauto 1 2
/dev/cd0a /mnt/cdrom cd9660 noauto,ro 0 0


Devices sd0l and sd0m give no trouble as long as I don't try to
have them mounted r/w at boot. Accessing a file (in the broad
sense) on any of the other ext2 partitions causes the system
to panic.


r...@happyflowers:~# disklabel sd0 
# Inside MBR partition 2: type A6 start 58605120 size 19535040
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: ST9320421AS 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 38913
total sectors: 625142448
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0   # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

16 partitions:
#size   offset  fstype [fsize bsize  cpg]
  a:  1028160 59633280  4.2BSD   2048 163841 
  b:  1028160 58605120swap   
  c:6251424480  unused   
  d: 12594960 60661440  4.2BSD   2048 163841 
  e:  2104515 73256400  4.2BSD   2048 163841 
  f:  2104515 75360915  4.2BSD   2048 163841 
  g:   674730 77465430  4.2BSD   2048 163841 
  i: 58605057   63NTFS   
  j: 11430720613705680 unknown   
  k:  7807527 78140223 unknown   
  l: 19534977 85947813  ext2fs   
  m: 19534977105482853  ext2fs   
  n: 19534977125017893  ext2fs   
  o: 19534977144552933  ext2fs   
  p: 19534977164087973  ext2fs   


The reason why I use those ext3 partitions will be clear: shared
bulk data - can't reach my music & videos from OpenBSD right now:-(.


r...@happyflowers:~# fdisk sd0 
Disk: sd0   geometry: 41345/240/63 [625142448 Sectors]
Offset: 0   Signature: 0xAA55
Starting Ending LBA Info:
 #: id  C   H   S -  C   H   S [   start:size ]
---
*0: 07  0   1   1 -   3875 239  63 [  63:58605057 ] HPFS/QNX/AUX
 1: 12  40589   0   1 -  41344 239  63 [   613705680:11430720 ] Compaq Diag.
 2: A6   3876   0   1 -   5167 239  63 [58605120:19535040 ] OpenBSD 
 3: 05   5168   0   1 -  40588 239  63 [78140160:   535565520 ] Extended DOS
Offset: 78140160Signature: 0xAA55
Starting Ending LBA Info:
 #: id  C   H   S -  C   H   S [   start:size ]
---
 0: 82   5168   1   1 -   5684  89  63 [78140223: 7807527 ] Linux swap  
 1: 05   5684  90   1 -   6976  89  63 [85947750:19535040 ] Extended DOS
 2: 00  0   0   0 -  0   0   0 [   0:   0 ] unused  
 3: 00  0   0   0 -  0   0   0 [   0:   0 ] unused  
Offset: 85947750Signature: 0xAA55
Starting Ending LBA Info:
 #: id  C   H   S -  C   H   S [   start:size ]
---
 0: 83   5684  91   1 -   6976  89  63 [85947813:19534977 ] Linux files*
 1: 05   6976  90   1 -   8268  89  63 [   105482790:19535040 ] Extended DOS
 2: 00  0   0   0 -  0   0   0 [   0:   0 ] unused  
 3: 00  0   0   0 -  0   0   0 [   0:   0 ] unused  
Offset: 105482790   Signature: 0xAA55
Starting Ending LBA Info:
 #: id  C   H   S -  C   H   S [   start:size ]
---
 0: 83   6976  91   1 -   8268  89  63 [   105482853:19534977 ] Linux files*
 1: 05   8268  90   1 -   9560  89  63 [   125017830:19535040 ] Extended DOS
 2: 00  0   0   0 -  0   0   0 [   0:   0 ] unused  
 3: 00  0   0   0 -  0   0   0 [   0:   0 ] unused  
Offset: 125017830   Signature: 0xAA55
Star

Re: Ext2/3 mount trouble

2009-06-10 Thread Bill Maas
Hi Ted,

On Tue, 2009-06-09 at 13:01 -0400, Ted Unangst wrote:
> On Tue, Jun 9, 2009 at 2:03 PM, Bill Maas  wrote:
> > I posted a message earlier about a kernel panic occurring when I
> > accessed a file on some of my ext3 fses. I've also been having trouble
> > with r/w extfs entries in fstab. At boot time I'm dropped to a shell
> > because fsck thinks the fs is unclean, even when "the other side" says
> > it's clean.
> 
> ext3 is marked dirty because the journal hasn't been played back.  You
> have to convert it to ext2 in linux before mounting in openbsd.
> 

That makes sense, I guess. And it does keep the unclean fs messages away
- not the bad ref count panic however. The docs could be a bit more
explicit about the lack of support for ext3 journaling.

And in reply to the various "why would you want to do that?"'s I
encountered while searching for the issue: very witty, but ext2 happens
to be a widely supported fs, which makes it a good candidate for shared
data on multiboot systems (FAT16/32? - can't be serious...!). Moreover,
so far OpenBSD has proven to have excellent support for ext2, apart from
that single issue. FFS support from Linux on the other hand, is C.R.A.P.

Thanks,

Bill



Evolution hangs

2009-06-10 Thread Bill Maas
Hi,

it's Evolution once again: hangs for no apparent reason while I'm typing
a message (the one previously posted, in fact;). Hope that this will be
of any use, grabbed while Evolution was hanging:

exo...@borealis:~$ kdump -p 20329  
 20329 evolution EMUL  "native"
 20329 evolution RET   poll 0
 20329 evolution CALL  gettimeofday(0x6859d058,0)
 20329 evolution RET   gettimeofday 0
 20329 evolution CALL  poll(0x52cca000,0xb,0x28)
 20329 evolution RET   poll 0
 20329 evolution CALL  gettimeofday(0x6859d058,0)
 20329 evolution RET   gettimeofday 0
 20329 evolution CALL  clock_gettime(0,0x51f97fa8)
 20329 evolution RET   clock_gettime 0
 20329 evolution CALL  poll(0x52cca000,0xa,0)
 20329 evolution RET   poll 0
 20329 evolution CALL  poll(0x52cca000,0xb,0x2710)

Bill



Re: Evolution hangs

2009-06-10 Thread Bill Maas
Hi Antoine,

On Wed, 2009-06-10 at 11:47 +0200, Antoine Jacoutot wrote:
> On Wed, 10 Jun 2009, Bill Maas wrote:
> 
> > Hi,
> > 
> > it's Evolution once again: hangs for no apparent reason while I'm typing
> > a message (the one previously posted, in fact;). Hope that this will be
> > of any use, grabbed while Evolution was hanging:
> 
> Are you using current or 4.5?
> 

4.5, without a single patch applied, I'm ashamed to admit (I'm still in
transition, desktop-wise). The only relevant patch could be the i386/DMA
one, but I doubt that that's the cause. Evolution has seen a bumpy early
life on other OSes as well, but you're no doubt aware of that.

Bill



Re: Ext2/3 mount trouble

2009-06-10 Thread Bill Maas
Hi Donald,

On Wed, 2009-06-10 at 06:33 -0400, Donald Allen wrote:
[...]

> I had nothing to do with writing the documentation and so have no ax
> to grind, but FAQ items 8.21 and 14.16 look pretty explicit to me.
[...]

8.21: OpenBSD does support journaling fses (ext3 at least), it just
doesn't support fs journaling.

Maybe 14.16 could do with an addition like this one (or maybe not
because it's too specific):

'Ext3 partitions are mounted as ext2, i.e. no journaling is done. In
fact, none of the OpenBSD's filesystem tools pay any attention to an
existing journal. For that reason, an attempt to have an ext3 partition
mounted read-write at boot time through /etc/fstab will cause a
"filesystem not clean" error. This can be circumvented by having the
device mounted read-only at boot time, and remounting it read-write
manually afterwards.'

I agree that it's all a bit nitpickerish (if that's an English word),
but the fact that ext3 fses mount without trouble can be confusing.

Bill



Re: Ext2/3 mount trouble

2009-06-10 Thread Bill Maas
Hi Donald,

I'm slowly starting to get the whole picture here.. I'll start with
updating my in-memory copy of the FAQ.

Thanks,

Bill

On Wed, 2009-06-10 at 09:13 -0400, Donald Allen wrote:
> 
> 
> On Wed, Jun 10, 2009 at 10:37 AM, Bill Maas  wrote:
> Hi Donald,
> 
> On Wed, 2009-06-10 at 06:33 -0400, Donald Allen wrote:
> [...]
> 
> > I had nothing to do with writing the documentation and so
> have no ax
> > to grind, but FAQ items 8.21 and 14.16 look pretty explicit
> to me.
> 
> [...]
> 
> 8.21: OpenBSD does support journaling fses (ext3 at least), it
> just
> doesn't support fs journaling.
> 
> Maybe 14.16 could do with an addition like this one (or maybe
> not
> because it's too specific):
> 
> 'Ext3 partitions are mounted as ext2, i.e. no journaling is
> done. In
> fact, none of the OpenBSD's filesystem tools pay any attention
> to an
> existing journal. For that reason, an attempt to have an ext3
> partition
> mounted read-write at boot time through /etc/fstab will cause
> a
> "filesystem not clean" error. This can be circumvented by
> having the
> device mounted read-only at boot time, and remounting it
> read-write
> manually afterwards.'
> 
> I agree that it's all a bit nitpickerish (if that's an English
> word),
> 
> It is now 
> 
> 
> but the fact that ext3 fses mount without trouble can be
> confusing.
> 
> But you must have fibbed to mount about the fs type and mounted it -t
> ext2fs, which is not true. ext2 being a proper subset of ext3, I'm not
> surprised that the system didn't say anything.
> 
> I cited 14.16 because it says ext2 is supported and does not mention
> ext3. If ext3 were supported, I'm quite confident the FAQ would have
> said so. Given that, I personally would not have considered mounting
> an ext3 filesystem writeable with OpenBSD, for fear of getting the
> ext2 part of the filesystem out of whack with the journal. In other
> words, I think what you are trying to do may well be hazardous to the
> health of your ext3 filesystem. Given my conservative bent in my old
> age (having spent many, many years finding strange and wonderful ways
> to get computers in undesirable states and watching others do the
> same), if I really needed to mount that fs writeable with OpenBSD for
> some reason, I'd boot a Linux rescue cd first and convert the fs to
> ext2. My $.02.
> 
> /Don
> 
> 
> 
> 
> Bill



snapshot - ports - gnome

2009-06-16 Thread Bill Maas
Hi,

Got this while trying to compile GNOME from ports on 6/16 snapshot
(packages were broken):

===>  Extracting for gst-plugins-good-0.10.8
cp
-R /usr/ports/multimedia/gstreamer-0.10/plugins-good/files 
/usr/ports/obj/gst-plugins-good-0.10.8/gst-plugins-good-0.10.8/ext/libsndio
ln: /usr/ports/obj/gst-plugins-good-0.10.8/bin/gconftool-2: File exists
*** Error code 1

Stop in /usr/ports/multimedia/gstreamer-0.10/plugins-good (line 2087
of /usr/ports/infrastructure/mk/bsd.port.mk).


Is there some quick fix for this? Or is it already fixed? Am I supposed
to send messages like this to misc or should they go to ports?

Thanks,


Bill



Re: [Soekris] Soekris net5501 OpenBSD 4.5 Booting Problem

2009-07-17 Thread Bill Maas
Hi Ken,

On Fri, 2009-07-17 at 09:09 -0400, Hendrickson, Kenneth wrote:
> > > *0: A6  0   1   1 -131 127  63 [  63: 2112516 ] 
> > > OpenBSD 
> > >  1: DA131 128   1 -262 254  63 [ 2112579: 2112516 ] 
> > > 
> > >  2: DA263   0   1 -   6211 254  63 [ 4225095:95570685 ] 
> > > 
> > >  3: DA   6212   0   1 -  12160 254  63 [99795780:95570685 ] 
> > > 
> > 
> > Just follow the instructions in the OpenBSD installer, offered by
> > default. When it prompts you 'Do you want to use all of wd0 for OpenBSD',
> > just say yes, it will run fdisk -i
> > 
> > It will make partition 3 the default active bootable one
> 
> But I *never* want to use the entire disk for OpenBSD.  I have a system for
> quick recovery in case of a disaster.  I only use half of the disk.  When I
> install a new version of OpenBSD, I use the other half of the disk.  That way,
> if a disaster happens, I can quickly boot, run fdisk -- changing the bootable
> partition, and then reboot into my previous system.
> 
> In the above fdisk output, partitions 0 and 2 are my current system, while
> partitions 1 and 3 are my last and next systems.  After I install a new system
> onto partitions 1 and 3, partitions 0 and 2 will become my last and next
> systems.
> 
> (Using 2 partitions like this is a holdover from the days when the bootable
> partition had to be in the first few cylinders of the drive.)

>From Absolute OpenBSD - UNIX for the practical paranoid by Michael Lucas
I've learned that:

"OpenBSD partitions need to go within a single MBR partition. Dedicate a
single MBR partition ... There can only be one OpenBSD MBR partition per
hard disk."

I can't make much sense of what you describe here, but to me it looks
like it suggests that you're using a single disklabel which spans more
than one MBR partition. Or even moving around the disklabel at will. If
so, would you be willing to publish something like a howto on this
subject?. Or else tell us where to find one? I know about multiple
OpenBSD installations inside a single set of subpartitions, but that's
still a single MBR partition. No fdisk or disklabel involved after
initial setup, but probably more vulnerable than what you describe here.

Bill 

> I'm surprised more people don't do this.  It provides for very quick and easy
> recovery in the case of a disaster.  (I've only ever had such a disaster once;
> I've been using OpenBSD since late 1996.)
> 
> The other advantage of this system is that it provides an easy means for
> seeing how I did things previously.  I can quickly run disklabel, use an
> empty slice to point to one of my old slices, and then mount it.  After I'm
> done I can run disklabel again and put it back.
> 
> So I never want to use the entire disk for OpenBSD.  Therefore, I will need
> to remember to escape to a shell and run "fdisk -u" when installing to a
> virgin disk.
> 
> It would be nice if the OpenBSD install procedure checked for the lack of
> a valid MBR, and installed one automatically (after asking); that would
> save some people from experiencing the problem I experienced.
> 
> Ken Hendrickson
> ___
> Soekris-tech mailing list
> soekris-t...@lists.soekris.com
> http://lists.soekris.com/mailman/listinfo/soekris-tech