Re: Encrypting home partition

2007-10-07 Thread Timo Myyrä

Nick Guenther wrote:

On 10/6/07, Timo Myyrd [EMAIL PROTECTED] wrote:
  

I have read the mount_vnd manual page and it describes the mount options
of the image that are needed to succesfully mount the partition on boot
but didn't reveal if there's a method to encrypt whole partition. I know
it will give me small performance hit to encrypt whole partition but it
should be OK. I had all of my HD except the /boot partition encrypted
with Linux and I didn't notice any difference in casual use.

Currently waiting for the urandom to fill the image...

Timo



Hm? I don't understand what you don't understand.
There's no such thing as a half-encrypted svnd (=partition). If you
can mount an encrypted svnd then you have a totally encrypted drive.
If you put it in fstab even better, but you need to somehow get it to
ask you for a password (-k) or give it a saltfile (-K) from somewhere
when it does that (and you better not store that password on the same
laptop).

-Nick


  
I mean that can I encrypt my /dev/sd0g directly instead of creating 
image in it and encrypting and mounting that image as /home.

I tried to read about the svnd and it only seems to work on files.

Timo



Re: Ext2fs Mount Problem

2007-10-07 Thread Otto Moerbeek
On Sat, 6 Oct 2007, Steven Wagner wrote:

 I have an old backup drive from a Linux file server I was running. I
 want it to be mounted in my new openBSD, but I'm having trouble with it.
 I had FreeBSD on this server last and it was able to mount this ext2 fs
 fine after installing the e2fsprogs suite.
 
 I built and installed the e2fsprogs suite from ports on the OpenBSD
 server, but when I run /usr/local/sbin/e2fsck /dev/wd1i it makes a lot
 of fixes and then the whole system crashes and drops me to a ddb prompt.
 Here's some info about the drive, any thoughts or suggestions are much
 appreciated.
 
 Before this happened I didn't see all the dma errors in dmesg:

Please include dmesg. Knowing wich platform and version you are running
is vital.

-Otto

 
 # dmesg |grep wd1
 wd1 at pciide0 channel 1 drive 0: Maxtor 6Y060P0
 wd1: 16-sector PIO, LBA, 58644MB, 120103200 sectors
 wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 4
 dkcsum: wd1 matches BIOS drive 0x81
 wd1i: DMA error reading fsbn -1030692568 of -1030692568-3 (wd1 bn
 -1030692505; cn 3238367 tn 13 sn 36), retrying
 wd1i: DMA error reading fsbn -1030692568 of -1030692568-3 (wd1 bn
 -1030692505; cn 3238367 tn 13 sn 36), retrying
 wd1i: DMA error reading fsbn -1030692568 of -1030692568-3 (wd1 bn
 -1030692505; cn 3238367 tn 13 sn 36), retrying
 wd1i: DMA error reading fsbn -1030692568 of -1030692568-3 (wd1 bn
 -1030692505; cn 3238367 tn 13 sn 36), retrying
 wd1 at pciide0 channel 1 drive 0: Maxtor 6Y060P0
 wd1: 16-sector PIO, LBA, 58644MB, 120103200 sectors
 wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 4
 dkcsum: wd1 matches BIOS drive 0x81
 wd1i: DMA error reading fsbn -1030692568 of -1030692568-3 (wd1 bn
 -1030692505; cn 3238367 tn 13 sn 36), retrying
 wd1i: DMA error reading fsbn -1030692568 of -1030692568-3 (wd1 bn
 -1030692505; cn 3238367 tn 13 sn 36), retrying
 wd1i: DMA error reading fsbn -1030692568 of -1030692568-3 (wd1 bn
 -1030692505; cn 3238367 tn 13 sn 36), retrying
 wd1i: DMA error reading fsbn -1030692568 of -1030692568-3 (wd1 bn
 -1030692505; cn 3238367 tn 13 sn 36), retrying
 wd1 at pciide0 channel 1 drive 0: Maxtor 6Y060P0
 wd1: 16-sector PIO, LBA, 58644MB, 120103200 sectors
 wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 4
 dkcsum: wd1 matches BIOS drive 0x81
 
 disklabel wd1i:
 
 # disklabel wd1i
 # /dev/rwd1i:
 type: ESDI
 disk: ESDI/IDE disk
 label: Maxtor 6Y060P0
 flags:
 bytes/sector: 512
 sectors/track: 63
 tracks/cylinder: 16
 sectors/cylinder: 1008
 cylinders: 16383
 total sectors: 120103200
 rpm: 3600
 interleave: 1
 trackskew: 0
 cylinderskew: 0
 headswitch: 0   # microseconds
 track-to-track seek: 0  # microseconds
 drivedata: 0
 
 16 partitions:
 # sizeoffset  fstype [fsize bsize  cpg]
   c: 120103200 0  unused  0 0  # Cyl 0
 -119149
   i: 12010313763  ext2fs   # Cyl
 0*-119149



Re: Perl/libc? segfault

2007-10-07 Thread Karel Kulhavy
I tried to track this down to a single message but I failed - when I divided
the large mailbox into two halves, each of the halves went through successfully.
BTW, the spamassassing still segfaults regularly.

CL
On Fri, Oct 05, 2007 at 06:27:13PM +0200, Karel Kulhavy wrote:
 While running spamassassin (the one in OpenBSD 4.0) my Perl (also OBSD 4.0)
 happened to segfault when learning what is spam. There is no suspicion on bad
 hardware, and this situation already happened in the past several times
 ocassionally.
 
 There were 9153 spam messages in the folder. I'll try if I can isolate a 
 single
 one that triggers it. It's actually segfaulting in libc in some hash
 manipulation routine but it's clear to me this can be a delayed memory 
 corruption
 bug caused by some Perl binding or Perl itself.
 
 #0  0x00639d71 in memmove () from /usr/lib/libc.so.39.3
 No symbol table info available.
 #1  0x0062fcb4 in __delpair (hashp=0x7d5a5200, bufp=0x870d8040, ndx=1707) at 
 /usr/src/lib/libc/db/hash/hash_page.c:140
 i = 2127618048
 src = 0x7ed0e000 
 \232\b{?v?q?l?g?b?]?X?S\b{?v?q?l?g?b?]?X?S?N?I?D???:?5?0?+??!?\234?\227?\222?\215?\210?\203?~?y?t?o?j?e?`?[?V?Q?L?G?B?=?8?3?.?)?$?\037?\032?\025?\020?\v?\006?\001?|wrmhc^YTOJE@;61,'\235\230\223\216\211\204\177zupkfa\\WRMHC...
 dst = 0xec1b Address 0xec1b out of bounds
 bp = (u_int16_t *) 0x7d5a5200
 newoff = 4107
 pairlen = 18
 n = 2202
 #2  0x0062b812 in hash_access (hashp=0x7d5a5200, action=HASH_PUT, 
 key=0xcf7e2190, val=0xcf7e2188) at /usr/src/lib/libc/db/hash/hash.c:670
 rbufp = (BUFHEAD *) 0x870d8040
 bufp = (BUFHEAD *) 0x267a2a96
 save_bufp = (BUFHEAD *) 0x870d8040
 bp = (u_int16_t *) 0xec1b
 n = 2202
 ndx = 1707
 off = -1953344059
 size = 5
 kp = 0x8b9255c0 \020\237^5u
 pageno = 4107
 #3  0x0557f083 in XS_DB_File_STORE () from 
 /usr/libdata/perl5/i386-openbsd/5.8.8/auto/DB_File/DB_File.so
 No symbol table info available.
 #4  0x067ddd08 in Perl_pp_entersub () at 
 /usr/src/gnu/usr.bin/perl/pp_hot.c:2877
 av = (AV * const) 0x267a81b0
 items = 645610516
 markix = 0
 sp = (SV **) 0x859c428c
 sv = (SV *) 0x876f43e4
 gv = (GV *) 0x5
 stash = (HV *) 0x0
 cv = (CV *) 0x876f43e4
 cx = (PERL_CONTEXT *) 0x267a81b0
 gimme = 0
 #5  0x068085b9 in Perl_runops_standard () at 
 /usr/src/gnu/usr.bin/perl/run.c:37
 No locals.
 #6  0x067ef008 in S_call_body (myop=0xcf7e22f0, is_eval=27 '\033') at 
 /usr/src/gnu/usr.bin/perl/perl.c:2733
 No locals.
 #7  0x067eef2e in Perl_call_sv (sv=0x85062030, flags=66) at 
 /usr/src/gnu/usr.bin/perl/perl.c:2609
 sp = (SV **) 0x859c428c
 myop = {op_next = 0x0, op_sibling = 0x0, op_ppaddr = 0x67dda50 
 Perl_pp_entersub, op_targ = 0, op_type = 0, op_seq = 0, op_flags = 66 'B', 
 op_private = 0 '\0', 
   op_first = 0x0, op_other = 0x0}
 method_op = {op_next = 0xcf7e22f0, op_sibling = 0x0, op_ppaddr = 
 0x67de738 Perl_pp_method, op_targ = 0, op_type = 0, op_seq = 0, op_flags = 
 0 '\0', 
   op_private = 0 '\0', op_first = 0x0}
 oldmark = 0
 retval = 0
 oldscope = 23
 oldcatch = 0 '\0'
 oldop = (OP *) 0x7c774380
 cur_env = {je_prev = 0x8b9255e0, je_buf = {-2063196112, -813817160, 
 108820867, -2063196112, 0, 116, 0, 0, 0, 0, 645598328}, je_ret = -2063196112, 
   je_mustcatch = 120 'x'}
 #8  0x067ee93c in Perl_call_method (methname=0x26796ab5 STORE, flags=2) at 
 /usr/src/gnu/usr.bin/perl/perl.c:2542
 No locals.
 #9  0x067cc38c in S_magic_methcall (sv=0x876a4d98, mg=0x870d8420, 
 meth=0x26796ab5 STORE, flags=2, n=3, val=0x7ed1100b) at 
 /usr/src/gnu/usr.bin/perl/mg.c:1492
 sp = (SV **) 0x859c428c
 #10 0x067cc6e0 in Perl_magic_setpack (sv=0x876a4d98, mg=0x870d8420) at 
 /usr/src/gnu/usr.bin/perl/mg.c:1529
 next = (PERL_SI *) 0x3402
 sp = (SV **) 0x267b3578
 #11 0x067ca62d in Perl_mg_set (sv=0x876a4d98) at 
 /usr/src/gnu/usr.bin/perl/mg.c:236
 vtbl = (const MGVTBL *) 0x3402
 mgs_ix = 792
 mg = (MAGIC *) 0xec1b
 nextmg = (MAGIC *) 0x0
 #12 0x067d7535 in Perl_pp_sassign () at /usr/src/gnu/usr.bin/perl/pp_hot.c:125
 sp = (SV **) 0x816e6004
 right = (SV *) 0x876a4d98
 left = (SV *) 0x8506212c
 #13 0x068085b9 in Perl_runops_standard () at 
 /usr/src/gnu/usr.bin/perl/run.c:37
 No locals.
 #14 0x067ee5df in S_run_body (oldscope=1) at 
 /usr/src/gnu/usr.bin/perl/perl.c:2368
 No locals.
 #15 0x067ee533 in perl_run (my_perl=0x7dcc3030) at 
 /usr/src/gnu/usr.bin/perl/perl.c:2285
 oldscope = 1
 ret = 1073738754
 cur_env = {je_prev = 0x267b3740, je_buf = {108978918, 645598328, 
 -813816740, -813816616, -813816484, -813816560, -813816568, 0, -2025615324, 
 160, -813826009}, 
   je_ret = 3, je_mustcatch = 1 '\001'}
 #16 0x1c0012a6 in main ()
 No symbol table 

Re: Encrypting home partition

2007-10-07 Thread Nick Guenther
On 10/7/07, Timo Myyrd [EMAIL PROTECTED] wrote:
 Nick Guenther wrote:
  On 10/6/07, Timo Myyrd [EMAIL PROTECTED] wrote:
 
  I have read the mount_vnd manual page and it describes the mount options
  of the image that are needed to succesfully mount the partition on boot
  but didn't reveal if there's a method to encrypt whole partition. I know
  it will give me small performance hit to encrypt whole partition but it
  should be OK. I had all of my HD except the /boot partition encrypted
  with Linux and I didn't notice any difference in casual use.
 
  Currently waiting for the urandom to fill the image...
 
  Timo
 
 
  Hm? I don't understand what you don't understand.
  There's no such thing as a half-encrypted svnd (=partition). If you
  can mount an encrypted svnd then you have a totally encrypted drive.
  If you put it in fstab even better, but you need to somehow get it to
  ask you for a password (-k) or give it a saltfile (-K) from somewhere
  when it does that (and you better not store that password on the same
  laptop).
 
  -Nick
 
 
 
 I mean that can I encrypt my /dev/sd0g directly instead of creating
 image in it and encrypting and mounting that image as /home.
 I tried to read about the svnd and it only seems to work on files.

Yes, exactly ;)
This is Unix, where everything is a file (or tries to be):
vnconfig /dev/sd0g svnd0

On a tangential note, it's useful to understand what you can do with
ccd(4) if you are creative about it.

-Nick



Re: Encrypting home partition

2007-10-07 Thread Timo Myyrä
Just trying that but the slice encryption could use some instructions 
how to get the proper C/H/S -values. I tried quickly your factor method 
and got a errors from fdisk that those were incorrect and I've been 
searching the net for some help on how to calculate the proper values 
for my home slice: 117467280


Timo

Chris Kuethe wrote:

On 10/7/07, Timo Myyrd [EMAIL PROTECTED] wrote:
  

I mean that can I encrypt my /dev/sd0g directly instead of creating
image in it and encrypting and mounting that image as /home.
I tried to read about the svnd and it only seems to work on files.



https://www.mainframe.cx/~ckuethe/encrypted_disks.html

try that, and send me feedback, ok?

CK




Re: Encrypting home partition

2007-10-07 Thread Nick Guenther
On 10/7/07, Timo Myyrd [EMAIL PROTECTED] wrote:
 Nick Guenther wrote:
  On 10/7/07, Timo Myyrd [EMAIL PROTECTED] wrote:
 
  Nick Guenther wrote:
 
  On 10/6/07, Timo Myyrd [EMAIL PROTECTED] wrote:
 
 
  I have read the mount_vnd manual page and it describes the mount
options
  of the image that are needed to succesfully mount the partition on
boot
  but didn't reveal if there's a method to encrypt whole partition. I
know
  it will give me small performance hit to encrypt whole partition but
it
  should be OK. I had all of my HD except the /boot partition encrypted
  with Linux and I didn't notice any difference in casual use.
 
  Currently waiting for the urandom to fill the image...
 
  Timo
 
 
  Hm? I don't understand what you don't understand.
  There's no such thing as a half-encrypted svnd (=partition). If you
  can mount an encrypted svnd then you have a totally encrypted drive.
  If you put it in fstab even better, but you need to somehow get it to
  ask you for a password (-k) or give it a saltfile (-K) from somewhere
  when it does that (and you better not store that password on the same
  laptop).
 
  -Nick
 
 
 
 
  I mean that can I encrypt my /dev/sd0g directly instead of creating
  image in it and encrypting and mounting that image as /home.
  I tried to read about the svnd and it only seems to work on files.
 
 
  Yes, exactly ;)
  This is Unix, where everything is a file (or tries to be):
  vnconfig /dev/sd0g svnd0
 
  On a tangential note, it's useful to understand what you can do with
  ccd(4) if you are creative about it.
 
  -Nick
 
 
 
 I tested above and following:
 mount_vnd -K 2 -S /root/image.slt svnd0 /dev/sd0g

 both prompted for encryption key but then give following message:
 vnconfig: VNDIOCSET: Inappropriate ioctl for device

Oh, I guess I was wrong then. Argh.
Yeah, use Chris's idea.



R4.2 on alix 2a2/2b2 and now openssl speed

2007-10-07 Thread earx
hi
i give a test on the alix with openssl speed, (see below)
i have no time to test with iperf, but a scp/sftp gimme
1.4MO/s for sending a file, and 3.3 MO/s for receiving one
the performance if the same with pf (pass in quick and pass out quick) and no 
pf.
a test with less overhead protocol must be better.

OpenSSL 0.9.7j 04 May 2006
built on: date not available
options:bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long) aes(partial) 
blowfish(idx) 
compiler: information not available
available timing options: USE_TOD HZ=100 [sysconf value]
timing function used: getrusage
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes256 bytes   1024 bytes   8192 bytes
md2241.70k  521.53k  725.90k  813.13k  836.69k
mdc2 0.00 0.00 0.00 0.00 0.00 
md4   1717.66k 6184.30k18138.97k35437.91k48629.41k
md5   1523.14k 5475.53k16318.13k32470.44k45382.15k
hmac(md5) 2130.63k 7323.63k20092.91k36169.01k46399.49k
sha1  1403.40k 4361.82k10298.88k15529.66k18337.83k
rmd1601285.34k 3857.88k 8769.70k12646.58k14544.24k
rc4  22900.92k28689.09k30642.33k31106.63k31084.15k
des cbc   4860.02k 5343.06k 5517.98k 5510.81k 5526.13k
des ede3  2023.42k 2089.24k 2121.90k 2125.82k 2118.88k
idea cbc 0.00 0.00 0.00 0.00 0.00 
rc2 cbc   2595.76k 2749.94k 2801.83k 2810.20k 2815.32k
rc5-32/12 cbc0.00 0.00 0.00 0.00 0.00 
blowfish cbc  6981.63k 8212.96k 8622.68k 8685.05k 8734.50k
cast cbc  6352.73k 7322.71k 7674.79k 7739.37k 7802.72k
aes-128 cbc   5871.72k 6205.27k 6328.14k 6366.70k 6367.72k
aes-192 cbc   5121.31k 5420.72k 5544.36k 5538.98k 5558.81k
aes-256 cbc   4640.51k 4839.40k 4922.88k 4945.92k 4922.33k
  signverifysign/s verify/s
rsa  512 bits 0.006537s 0.000742s153.0   1348.2
rsa 1024 bits 0.030050s 0.001741s 33.3574.3
rsa 2048 bits 0.170021s 0.005245s  5.9190.6
rsa 4096 bits 1.091406s 0.017953s  0.9 55.7
  signverifysign/s verify/s
dsa  512 bits 0.004802s 0.005622s208.2177.9
dsa 1024 bits 0.013464s 0.016419s 74.3 60.9
dsa 2048 bits 0.044808s 0.054181s 22.3 18.5









Le Sun, 23 Sep 2007 13:33:19 +0200
earx [EMAIL PROTECTED] a pris sa plume:

 hi everyone
 a new toy at house :)
 a pc engines 2b2 (two lan, two usb, two mini pci..500 mhz)
 http://www.pcengines.ch/alix2b2.htm
 
 OpenBSD 4.2 (GENERIC) #375: Tue Aug 28 10:38:44 MDT 2007
 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
 RTC BIOS diagnostic error 80clock_battery
 cpu0: Geode(TM) Integrated Processor by AMD PCS (AuthenticAMD
 586-class) 499 MHz cpu0:
 FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX real mem  = 268009472
 (255MB) avail mem = 251506688 (239MB)
 RTC BIOS diagnostic error 80clock_battery
 mainbus0 at root
 bios0 at mainbus0: AT/286+ BIOS, date 08/01/07, BIOS32 rev. 0 @
 0xfcc1a pcibios0 at bios0: rev 2.1 @ 0xf/0x1
 pcibios0: pcibios_get_intr_routing - function not supported
 pcibios0: PCI IRQ Routing information unavailable.
 pcibios0: PCI bus #0 is the last bus
 cpu0 at mainbus0
 pci0 at mainbus0 bus 0: configuration mode 1 (bios)
 pchb0 at pci0 dev 1 function 0 AMD Geode LX rev 0x31
 glxsb0 at pci0 dev 1 function 2 AMD Geode LX Crypto rev 0x00: RNG
 AES vr0 at pci0 dev 12 function 0 VIA VT6105M RhineIII rev 0x96:
 irq 15, address 00:0d:b9:12:50:bc ukphy0 at vr0 phy 1: Generic IEEE
 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034 vr1 at
 pci0 dev 13 function 0 VIA VT6105M RhineIII rev 0x96: irq 11,
 address 00:0d:b9:12:50:bc ukphy1 at vr1 phy 1: Generic IEEE 802.3u
 media interface, rev. 3: OUI 0x004063, model 0x0034 pcib0 at pci0 dev
 15 function 0 AMD CS5536 ISA rev 0x03 pciide0 at pci0 dev 15
 function 2 AMD CS5536 IDE rev 0x01: DMA, channel 0 wired to
 compatibility, channel 1 wired to compatibility wd0 at pciide0
 channel 0 drive 0: TRANSCEND wd0: 1-sector PIO, LBA, 495MB, 1014048
 sectors wd0(pciide0:0:0): using PIO mode 4, DMA mode 2 pciide0:
 channel 1 ignored (disabled) AMD CS5536 Audio rev 0x01 at pci0 dev
 15 function 3 not configured ohci0 at pci0 dev 15 function 4 AMD
 CS5536 USB rev 0x02: irq 9, version 1.0, legacy support ehci0 at
 pci0 dev 15 function 5 AMD CS5536 USB rev 0x02: irq 9 usb0 at
 ehci0: USB revision 2.0 uhub0 at usb0: AMD EHCI root hub, rev
 2.00/1.00, addr 1 isa0 at pcib0 isadma0 at isa0
 pcppi0 at isa0 port 0x61
 midi0 at pcppi0: PC speaker
 spkr0 at pcppi0
 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
 pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 

Re: 4.2 song

2007-10-07 Thread Anton Karpov
2007/10/6, Theo de Raadt [EMAIL PROTECTED]:

 Just back from my (hiking) trip, I am happy to announce the 4.2
 song has been added to the lyrics page at

 http://www.openbsd.org/lyrics.html

 Yes, it is designed to sound like a mid-era Rush song, ie. something
 from Grace Under Pressure or such.  And there's a few easter eggs
 hidden in the song as well.  It also explains the inside sleeve
 image...


Cool! As a big fan of Rush, I like it so much!  Artwork is also incredible!
You are the best, guys.



Re: Upgrade process in 4.2

2007-10-07 Thread Peter N. M. Hansteen
Alvaro Mantilla Gimenez [EMAIL PROTECTED] writes:

 Anyways...like Peter said: it's a bit too late because the snapshots
 are moving to 4.3 direction. So...probably...in some point of
 time...my question was correct..right?

If you fetch snapshots as they appear and install them, then at some
point, two times a year, you will be running something very close to
the -release version.  When your dmesg output switches to -current
again, you're past that point.  

Some of us run snapshots pretty much right away when we notice there's
a new one out (but buy CDs and other gear anyway to support the
project), at least on some systems.  If that sounds too scary, your
best option is to order your CDs early and watch errata.html for any
patches.  That way you stay with the supported versions as well,
meaning essentially that you have something other people will be able
to test and offer useful suggestions for.

-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://bsdly.blogspot.com/ http://www.datadok.no/ http://www.nuug.no/
Remember to set the evil bit on all malicious network traffic
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



Re: info heimdal typo

2007-10-07 Thread Antoine Jacoutot

On Sat, 6 Oct 2007, Mark Peoples wrote:

simple typo

Index: heimdal.info-1
===
RCS file: /cvs/src/kerberosV/src/doc/heimdal.info-1,v
retrieving revision 1.1.1.4
diff -u -r1.1.1.4 heimdal.info-1
--- heimdal.info-1  14 Apr 2006 07:32:34 -  1.1.1.4
+++ heimdal.info-1  7 Oct 2007 02:49:33 -
@@ -467,7 +467,7 @@
 Master key:
 Verifying password - Master key:

-If you want to generate a random master key you can use the -random-key
+If you want to generate a random master key you can use the --random-key
to kstash. This will make sure you have a good key on which attackers
can't do a dictionary attack.


You should report this upstream.

--
Antoine



ext2fs mount problem

2007-10-07 Thread Steven Wagner
I have an old backup drive from a Linux file server I was running. I
want it to be mounted in my new openBSD box, but I'm having trouble with it.
I had FreeBSD on this server last and it was able to mount this ext2 fs
fine after installing the e2fsprogs suite.

I built and installed the e2fsprogs suite from ports on the OpenBSD
machine, but when I run /usr/local/sbin/e2fsck /dev/wd1i it makes a lot
of fixes and then the whole system crashes and drops me to a ddb prompt.
Here's some info about the drive, any thoughts or suggestions are much
appreciated.

Before this happened I didn't see all the dma errors in dmesg:

# dmesg |grep wd1
wd1 at pciide0 channel 1 drive 0: Maxtor 6Y060P0
wd1: 16-sector PIO, LBA, 58644MB, 120103200 sectors
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 4
dkcsum: wd1 matches BIOS drive 0x81
wd1i: DMA error reading fsbn -1030692568 of -1030692568-3 (wd1 bn
-1030692505; cn 3238367 tn 13 sn 36), retrying
wd1i: DMA error reading fsbn -1030692568 of -1030692568-3 (wd1 bn
-1030692505; cn 3238367 tn 13 sn 36), retrying
wd1i: DMA error reading fsbn -1030692568 of -1030692568-3 (wd1 bn
-1030692505; cn 3238367 tn 13 sn 36), retrying
wd1i: DMA error reading fsbn -1030692568 of -1030692568-3 (wd1 bn
-1030692505; cn 3238367 tn 13 sn 36), retrying
wd1 at pciide0 channel 1 drive 0: Maxtor 6Y060P0
wd1: 16-sector PIO, LBA, 58644MB, 120103200 sectors
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 4
dkcsum: wd1 matches BIOS drive 0x81
wd1i: DMA error reading fsbn -1030692568 of -1030692568-3 (wd1 bn
-1030692505; cn 3238367 tn 13 sn 36), retrying
wd1i: DMA error reading fsbn -1030692568 of -1030692568-3 (wd1 bn
-1030692505; cn 3238367 tn 13 sn 36), retrying
wd1i: DMA error reading fsbn -1030692568 of -1030692568-3 (wd1 bn
-1030692505; cn 3238367 tn 13 sn 36), retrying
wd1i: DMA error reading fsbn -1030692568 of -1030692568-3 (wd1 bn
-1030692505; cn 3238367 tn 13 sn 36), retrying
wd1 at pciide0 channel 1 drive 0: Maxtor 6Y060P0
wd1: 16-sector PIO, LBA, 58644MB, 120103200 sectors
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 4
dkcsum: wd1 matches BIOS drive 0x81

disklabel wd1i:

# disklabel wd1i
# /dev/rwd1i:
type: ESDI
disk: ESDI/IDE disk
label: Maxtor 6Y060P0
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 120103200
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0   # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

16 partitions:
# sizeoffset  fstype [fsize bsize  cpg]
  c: 120103200 0  unused  0 0  # Cyl 0
-119149
  i: 12010313763  ext2fs   # Cyl
0*-119149



Re: Encrypting home partition

2007-10-07 Thread Chris Kuethe
On 10/7/07, Timo Myyrd [EMAIL PROTECTED] wrote:
 Just trying that but the slice encryption could use some instructions
 how to get the proper C/H/S -values. I tried quickly your factor method
 and got a errors from fdisk that those were incorrect and I've been
 searching the net for some help on how to calculate the proper values
 for my home slice: 117467280

factor 117467280
117467280: 2 2 2 2 3 3 3 5 7 17 457

3 * 3 * 7  (-s 63)
3 * 5 * 17 (-h 255)
2 * 2 * 2 * 2 * 457 (-c 7312)

--
GDB has a 'break' feature; why doesn't it have 'fix' too?



Another segfault in DB_File.so

2007-10-07 Thread Karel Kulhavy
I guess this means a bug in DB_File.so or Perl. No matter how badly
Spamassassin is written it must not be able to produce a segfault.
Is DB_File.so an OpenBSD-specific implementation of database?

This segfault was produce by sa-learn -D --sync and the last debug message it 
printed was [25545] dbg: bayes: tie-ing to DB file R/O 
/home/clock/.spamassassin/bayes_seen
Backtrace from core dump and the output from sa-learn -D --sync follows.

#0  0x099925fc in __find_last_page (hashp=0x7e622e00, bpp=0xcf7ebcb8) at 
/usr/src/lib/libc/db/hash/hash_bigkey.c:336
bufp = (BUFHEAD *) 0x8b64f5e0
bp = (u_int16_t *) 0x8b4fd000
n = 0
#1  0x0998c895 in hash_access (hashp=0x7e622e00, action=HASH_GET, 
key=0xcf7ebd10, val=0xcf7ebd08) at /usr/src/lib/libc/db/hash/hash.c:614
rbufp = (BUFHEAD *) 0x8b64f540
bufp = (BUFHEAD *) 0x8b64f540
save_bufp = (BUFHEAD *) 0x8b64f540
bp = (u_int16_t *) 0x0
n = 2464
ndx = -2
off = -1956317888
size = 21
kp = 0x8b64f820 \r\001\a\t\003LASTEXPIREREDUCE
pageno = 53248
#2  0x08428a07 in XS_DB_File_FETCH () from 
/usr/libdata/perl5/i386-openbsd/5.8.8/auto/DB_File/DB_File.so
No symbol table info available.
#3  0x0cd54d08 in Perl_pp_entersub () at /usr/src/gnu/usr.bin/perl/pp_hot.c:2877
av = (AV * const) 0x2cd1f1b0
items = 752004116
markix = 0
sp = (SV **) 0x87362288
sv = (SV *) 0x836303b4
gv = (GV *) 0x5
stash = (HV *) 0x0
cv = (CV *) 0x836303b4
cx = (PERL_CONTEXT *) 0x2cd1f1b0
gimme = 0
#4  0x0cd7f5b9 in Perl_runops_standard () at /usr/src/gnu/usr.bin/perl/run.c:37
No locals.
#5  0x0cd66008 in S_call_body (myop=0xcf7ebe70, is_eval=0 '\0') at 
/usr/src/gnu/usr.bin/perl/perl.c:2733
No locals.
#6  0x0cd65f2e in Perl_call_sv (sv=0x7e06f498, flags=64) at 
/usr/src/gnu/usr.bin/perl/perl.c:2609
sp = (SV **) 0x87362288
myop = {op_next = 0x0, op_sibling = 0x0, op_ppaddr = 0xcd54a50 
Perl_pp_entersub, op_targ = 0, op_type = 0, op_seq = 0, op_flags = 66 'B', 
op_private = 0 '\0', op_first = 0x0, 
  op_other = 0x0}
method_op = {op_next = 0xcf7ebe70, op_sibling = 0x0, op_ppaddr = 
0xcd55738 Perl_pp_method, op_targ = 0, op_type = 0, op_seq = 0, op_flags = 0 
'\0', op_private = 0 '\0', op_first = 0x0}
oldmark = 0
retval = 0
oldscope = 8
oldcatch = 0 '\0'
oldop = (OP *) 0x8aba0900
cur_env = {je_prev = 0x885fdaf0, je_buf = {2114385048, -813777352, 
215214467, 2114385048, 0, 116, 0, 0, 0, -813777320, 751991928}, je_ret = 
2114385048, je_mustcatch = 120 'x'}
#7  0x0cd6593c in Perl_call_method (methname=0x2cd0daaf FETCH, flags=0) at 
/usr/src/gnu/usr.bin/perl/perl.c:2542
No locals.
#8  0x0cd4338c in S_magic_methcall (sv=0x7e06f474, mg=0x8b64f860, 
meth=0x2cd0daaf FETCH, flags=0, n=2, val=0x8b4fd000) at 
/usr/src/gnu/usr.bin/perl/mg.c:1492
sp = (SV **) 0x87362288
#9  0x0cd434d8 in S_magic_methpack (sv=0x7e06f474, mg=0x8b64f860, 
meth=0x2cd0daaf FETCH) at /usr/src/gnu/usr.bin/perl/mg.c:1504
next = (PERL_SI *) 0x8b64f5e0
sp = (SV **) 0x2cd2a578
#10 0x0cd43618 in Perl_magic_getpack (sv=0x7e06f474, mg=0x0) at 
/usr/src/gnu/usr.bin/perl/mg.c:1519
No locals.
#11 0x0cd4156d in Perl_mg_get (sv=0x7e06f474) at 
/usr/src/gnu/usr.bin/perl/mg.c:169
vtbl = (const MGVTBL * const) 0x8b4fd000
mgs_ix = 328
have_new = 0
newmg = (MAGIC *) 0x8b64f860
head = (MAGIC *) 0x8b64f860
cur = (MAGIC *) 0x8b64f860
mg = (MAGIC *) 0x8b64f860
#12 0x0cd38d35 in Perl_sv_setsv_flags (dstr=0x7e06f48c, sstr=0x7e06f474, 
flags=2) at /usr/src/gnu/usr.bin/perl/sv.c:3856
dtype = 0
stype = 9
#13 0x0cd3ceaf in Perl_sv_mortalcopy (oldstr=0x7e06f474) at 
/usr/src/gnu/usr.bin/perl/sv.c:6814
sv = (SV *) 0x7e06f48c
#14 0x0cd52336 in Perl_pp_helem () at /usr/src/gnu/usr.bin/perl/pp_hot.c:1786
sp = (SV **) 0x87aa7028
he = (HE *) 0x8b4fd000
svp = (SV **) 0x8398e3d4
lval = 0
defer = 0
sv = (SV *) 0x8b4fd000
hash = 0
preeminent = 0
#15 0x0cd7f5b9 in Perl_runops_standard () at /usr/src/gnu/usr.bin/perl/run.c:37
No locals.
#16 0x0cd655df in S_run_body (oldscope=1) at 
/usr/src/gnu/usr.bin/perl/perl.c:2368
No locals.
#17 0x0cd65533 in perl_run (my_perl=0x89323030) at 
/usr/src/gnu/usr.bin/perl/perl.c:2285
oldscope = 1
ret = -1956317728
cur_env = {je_prev = 0x2cd2a740, je_buf = {215372518, 751991928, 
-813776740, -813776616, -813776480, -813776556, -813776564, 0, -2067320796, 
160, -813826009}, je_ret = 3, 
  je_mustcatch = 1 '\001'}
#18 0x1c0012a6 in main ()
No symbol table info available.


Last page of the output from sa-learn -D --sync:
[...]
[19402] dbg: config: read file /usr/local/share/spamassassin/20_porn.cf
[19402] dbg: config: read file /usr/local/share/spamassassin/20_ratware.cf
[19402] dbg: config: read file 

Missing manpages db4_*

2007-10-07 Thread Karel Kulhavy
The following programs have missing manpage on OpenBSD 4.0:
db4_archive
db4_checkpoint
db4_deadlock
db4_dump
db4_dump185
db4_load
db4_printlog
db4_recover
db4_stat
db4_upgrade

Does anyone have any idea what these are for? I guess they are for some database
manipulation. --help doesn't give much useful information. For example:
[EMAIL PROTECTED]:~/.spamassassin$ db4_recover --help
db4_recover: unknown option -- -
usage: db_recover [-ceVv] [-h home] [-P password] [-t [[CC]YY]MMDDhhmm[.SS]]

If I try to run it on a database:
[EMAIL PROTECTED]:~/.spamassassin$ db4_recover bayes_toks 
usage: db_recover [-ceVv] [-h home] [-P password] [-t [[CC]YY]MMDDhhmm[.SS]]

CL



Re: Ext2fs Mount Problem

2007-10-07 Thread Steven Wagner
Otto Moerbeek wrote:
 On Sat, 6 Oct 2007, Steven Wagner wrote:

   
 I have an old backup drive from a Linux file server I was running. I
 want it to be mounted in my new openBSD, but I'm having trouble with it.
 I had FreeBSD on this server last and it was able to mount this ext2 fs
 fine after installing the e2fsprogs suite.

 I built and installed the e2fsprogs suite from ports on the OpenBSD
 server, but when I run /usr/local/sbin/e2fsck /dev/wd1i it makes a lot
 of fixes and then the whole system crashes and drops me to a ddb prompt.
 Here's some info about the drive, any thoughts or suggestions are much
 appreciated.

 Before this happened I didn't see all the dma errors in dmesg:
 

 Please include dmesg. Knowing wich platform and version you are running
 is vital.

   -Otto
   
   
Sorry, here is the complete dmesg. Also, I apologize if I sent this more
than once, I've been having some issues with my smtp servers too.

# dmesg
ch
watch step s continue c until
next match trace call ps callout
show boot help hangman dmesg
ddb Debugger(d11d4800,e16bb000,e84afc90,d11d4800,e16bb000) at Debugger+0x4
panic(d0691ad9,e5,40,0,0) at panic+0x63
ext2fs_lookup(d665ad68,e16bb000,0,0) at ext2fs_lookup+0xb42
ext2fs_lookup(e84afd68,30042,d65e79cc,0,d0738320) at ext2fs_lookup+0x9b1
VOP_LOOKUP(d665ad68,e84afe58,e84afe6c,20) at VOP_LOOKUP+0x2e
lookup(e84afe48,d675a400,400,e84afe60) at lookup+0x1d0
namei(e84afe48,d0cd6098,e84aff60,d042da18) at namei+0x180
sys_stat(d65e79cc,e84aff68,e84aff58,1,4b) at sys_stat+0x4a
syscall() at syscall+0x24a
--- syscall (number 291) ---
0x1c00911d:
ddb syncing disks... 6 6 done
rebooting...
OpenBSD 4.1-stable (GENERIC) #0: Sun Sep 16 10:50:05 MST 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III (GenuineIntel 686-class) 931 MHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem = 400912384 (391516K)
avail mem = 357761024 (349376K)
using 4278 buffers containing 20168704 bytes (19696K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 09/05/01, BIOS32 rev. 0 @ 0xfda74,
SMBIOS rev. 2.3 @ 0xf0f80 (53 entries)
bios0: Dell Computer Corporation L550cx
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf2c30/192 (10 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371FB ISA rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0xc000 0xcc000/0x1000
acpi at mainbus0 not configured
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82810E rev 0x03: rng active, 9Kb/sec
vga1 at pci0 dev 1 function 0 Intel 82810E Graphics rev 0x03: aperture
at 0xf800, size 0x400
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb0 at pci0 dev 30 function 0 Intel 82801AA Hub-to-PCI rev 0x02
pci1 at ppb0 bus 1
eap0 at pci1 dev 9 function 0 Ensoniq AudioPCI97 rev 0x06: irq 9
ac97: codec id 0x83847609 (SigmaTel STAC9721/23)
ac97: codec features 18 bit DAC, 18 bit ADC, SigmaTel 3D
audio0 at eap0
midi0 at eap0: AudioPCI MIDI UART
dc0 at pci1 dev 10 function 0 Lite-On PNIC rev 0x20: irq 3, address
00:a0:cc:5c:a9:27
bmtphy0 at dc0 phy 1: BCM5201 10/100 PHY, rev. 2
ichpcib0 at pci0 dev 31 function 0 Intel 82801AA LPC rev 0x02
pciide0 at pci0 dev 31 function 1 Intel 82801AA IDE rev 0x02: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: HDS722540VLAT20
wd0: 16-sector PIO, LBA48, 38146MB, 78125000 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
wd1 at pciide0 channel 1 drive 0: Maxtor 6Y060P0
wd1: 16-sector PIO, LBA, 58644MB, 120103200 sectors
atapiscsi0 at pciide0 channel 1 drive 1
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: CD-ROM, F565E, 1.07 SCSI0 5/cdrom removable
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 4
cd0(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 4
uhci0 at pci0 dev 31 function 2 Intel 82801AA USB rev 0x02: irq 10
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ichiic0 at pci0 dev 31 function 3 Intel 82801AA SMBus rev 0x02: irq 9
iic0 at ichiic0
isa0 at ichpcib0
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
pcppi0 at isa0 port 0x61
midi1 at pcppi0: PC speaker
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask ff65 netmask ff6d ttymask ffef
pctr: 686-class user-level performance counters 

Correct place to report bugs in perl

2007-10-07 Thread Karel Kulhavy
I would like to report a bug - a segfault - in Perl v5.8.8 which is a standard
part of OBSD 4.0. The perl page says that perlbjug should be used for perl
version 5. man perlbug says:

If you have found a bug with a non-standard port (one that was not part of the
standard distribution), a binary distribution, or a non-standard module (such
as Tk, CGI, etc), then please see the documentation that came with that
distribution to determine the correct place to report bugs.

The perl comes in a binary distribution therefore I should
see the documentation that came with the distribution. I looked into man perl
but it doesn't say anything about where bugs should be reported.

So where should I report it?

CL



Re: Correct place to report bugs in perl

2007-10-07 Thread Jason Dixon

On Oct 7, 2007, at 11:35 AM, Karel Kulhavy wrote:

I would like to report a bug - a segfault - in Perl v5.8.8 which is  
a standard
part of OBSD 4.0. The perl page says that perlbjug should be used  
for perl

version 5. man perlbug says:

If you have found a bug with a non-standard port (one that was not  
part of the
standard distribution), a binary distribution, or a non-standard  
module (such
as Tk, CGI, etc), then please see the documentation that came with  
that

distribution to determine the correct place to report bugs.

The perl comes in a binary distribution therefore I should
see the documentation that came with the distribution. I looked  
into man perl

but it doesn't say anything about where bugs should be reported.

So where should I report it?


http://www.openbsd.org/report.html

P.S.  You're talking about a release that is soon to be deprecated.   
Test it with a supported release (4.1, 4.2) or -current first.


---
Jason Dixon
DixonGroup Consulting
http://www.dixongroup.net



Re: hardware for vpn

2007-10-07 Thread Theo de Raadt
 Just one question regarding VPNs OpenBSD and HW, is there any recomendation
 for hardware? i mean, i want to setup a VPN between 2 offices and i need
 some reasonable speed.. with a computer with some recent hardware do i need
 any vpn card to accelerate encryptation/decryptation?

No, you don't need any specific hardware.

Many vendors invented crypto hardware for machines, but some of them
got it so wrong.  First off, machines have gotten more than fast
enough.  Secondly, AES was designed to be very fast on a native cpu.
Thirdly, many of the crypto engines required a hand off to device,
get a reply later that it is complete, and this increased the latency
-- on slower machines where the crypto engine was supposed to speed
the crypto up it turned out to slow it down because the overhead was
so high.

The only designer that did the symmetric cipher stuff right was VIA
with their C3/C7 AES instructions.

You don't need any specific hardware;  Your machine is more than capable
of handling the crypto for a VPN.



How can I install 4 OS'es on one disk?

2007-10-07 Thread stan
I have a new laptop that I would like to set up to have 4 different OS's
on. The OS's I would like to install are:

OpenBSD
FreeBSD
Linux
Windows (XP r Vista)

Is it possible to do this on the one disk. I do have enough space, my
concern is about portions. If it is possible can anyone give me an idea how
best to approach this? Or a pointer to some docs?

Ate the moment the machine has the Vista part-ion, and it's recovery partition
(which I figure I don;t need), and a Linux partition on it. I can boot Linux,
or Vista using Grub.

-- 
I'm sorry, no one here has any intentions of helping you with anything. 
I am the manager of all of Customer Service.



Re: ext2fs mount problem

2007-10-07 Thread dhg
Steven Wagner [EMAIL PROTECTED] writes:

 I have an old backup drive from a Linux file server I was running. I
 want it to be mounted in my new openBSD box, but I'm having trouble with it.
 I had FreeBSD on this server last and it was able to mount this ext2 fs
 fine after installing the e2fsprogs suite.

 I built and installed the e2fsprogs suite from ports on the OpenBSD
 machine, but when I run /usr/local/sbin/e2fsck /dev/wd1i it makes a lot
 of fixes and then the whole system crashes and drops me to a ddb prompt.
 Here's some info about the drive, any thoughts or suggestions are much
 appreciated.

why not NFS ? That would be much simpler.



 Before this happened I didn't see all the dma errors in dmesg:

 # dmesg |grep wd1
 wd1 at pciide0 channel 1 drive 0: Maxtor 6Y060P0
 wd1: 16-sector PIO, LBA, 58644MB, 120103200 sectors
 wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 4
 dkcsum: wd1 matches BIOS drive 0x81
 wd1i: DMA error reading fsbn -1030692568 of -1030692568-3 (wd1 bn
 -1030692505; cn 3238367 tn 13 sn 36), retrying
 wd1i: DMA error reading fsbn -1030692568 of -1030692568-3 (wd1 bn
 -1030692505; cn 3238367 tn 13 sn 36), retrying
 wd1i: DMA error reading fsbn -1030692568 of -1030692568-3 (wd1 bn
 -1030692505; cn 3238367 tn 13 sn 36), retrying
 wd1i: DMA error reading fsbn -1030692568 of -1030692568-3 (wd1 bn
 -1030692505; cn 3238367 tn 13 sn 36), retrying
 wd1 at pciide0 channel 1 drive 0: Maxtor 6Y060P0
 wd1: 16-sector PIO, LBA, 58644MB, 120103200 sectors
 wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 4
 dkcsum: wd1 matches BIOS drive 0x81
 wd1i: DMA error reading fsbn -1030692568 of -1030692568-3 (wd1 bn
 -1030692505; cn 3238367 tn 13 sn 36), retrying
 wd1i: DMA error reading fsbn -1030692568 of -1030692568-3 (wd1 bn
 -1030692505; cn 3238367 tn 13 sn 36), retrying
 wd1i: DMA error reading fsbn -1030692568 of -1030692568-3 (wd1 bn
 -1030692505; cn 3238367 tn 13 sn 36), retrying
 wd1i: DMA error reading fsbn -1030692568 of -1030692568-3 (wd1 bn
 -1030692505; cn 3238367 tn 13 sn 36), retrying
 wd1 at pciide0 channel 1 drive 0: Maxtor 6Y060P0
 wd1: 16-sector PIO, LBA, 58644MB, 120103200 sectors
 wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 4
 dkcsum: wd1 matches BIOS drive 0x81

 disklabel wd1i:

 # disklabel wd1i
 # /dev/rwd1i:
 type: ESDI
 disk: ESDI/IDE disk
 label: Maxtor 6Y060P0
 flags:
 bytes/sector: 512
 sectors/track: 63
 tracks/cylinder: 16
 sectors/cylinder: 1008
 cylinders: 16383
 total sectors: 120103200
 rpm: 3600
 interleave: 1
 trackskew: 0
 cylinderskew: 0
 headswitch: 0   # microseconds
 track-to-track seek: 0  # microseconds
 drivedata: 0

 16 partitions:
 # sizeoffset  fstype [fsize bsize  cpg]
   c: 120103200 0  unused  0 0  # Cyl 0
 -119149
   i: 12010313763  ext2fs   # Cyl
 0*-119149

-- 
Or whosoever toucheth any creeping thing, whereby he may be made
unclean, or a man of whom he may take uncleanness, whatsoever
uncleanness he hath;
-- Leviticus 22:5



X11 very slow with SMP kernel

2007-10-07 Thread Jona Joachim
Hi!
I can see X redraw the screen top down very slowly when I use the SMP
kernel on my Thinkpad T60. I can actually see it draw the background
first and then every widget one by one. I don't see this behaviour when
I use GENERIC.
I use an the amd64 kernel.
I tried with a 2 month old snapshot and a freshly built GENERIC.MP
checked out this afternoon with the same result.

spaceman% uname -a
OpenBSD spaceman.my.domain 4.2 GENERIC.MP#0 amd64

dmesg: http://www.hcl-club.lu/~jaj/foo/dmesg
`X -version`: http://www.hcl-club.lu/~jaj/foo/xversion

Is this a know issue?
Do I need to rebuild Xenocara with special knobs to use it with bsd.mp?
Could you point me into a direction to further investigate this?

Best regards,
Jona



Re: Missing manpages db4_*

2007-10-07 Thread Stuart Henderson
On 2007/10/07 17:16, Karel Kulhavy wrote:
 Does anyone have any idea what these are for? I guess they are for some 
 database
 manipulation.

See the files in /usr/local/share/doc/db4/utility (here, the objects
are renamed s/db_/db4_/ to avoid conflicting with any other versions
which may be installed).



Le site steelix.kd85.com

2007-10-07 Thread Guillaume Dualé

Salut,
vous le savez probablement tous, le site http://steelix.kd85.com/ est 
down depuis un bon moment.


Je voulais savoir, quand est-ce-qu'il est privu d'jtre remis en ligne ?
Et surtout, pourquoi est-il down ?

C'est Wim qui s'en occupe ?

Qu'est-ce qu'il y avait comme services dessus a part CVS ?
Car si ce n'est pas un truc trhs compliqui, je pourrais proposer de le 
remplacer par un serveur que j'ai.


Il resterais plus qu'a faire pointer le DNS sur la bonne machine :)

Merci pour vos riponses.
A+
Guillaume.



Re: X11 very slow with SMP kernel

2007-10-07 Thread Peter N. M. Hansteen
Jona Joachim [EMAIL PROTECTED] writes:

 I can see X redraw the screen top down very slowly when I use the SMP
 kernel on my Thinkpad T60. I can actually see it draw the background
 first and then every widget one by one. I don't see this behaviour when
 I use GENERIC.

It's been discussed on the list recently, the short version is that
you may find that enabling acpi in the MP kernel will speed up your
system.

http://marc.info/?l=openbsd-miscm=118836844303217w=2 gives you the
main bits.

Hope this helps,
-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://bsdly.blogspot.com/ http://www.datadok.no/ http://www.nuug.no/
Remember to set the evil bit on all malicious network traffic
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



Excuse me for my mail: Le site steelix.kd85.com

2007-10-07 Thread Guillaume Dualé

Hi,
sorry for my previous e-mail.

I was mistaken in the mailling list name.

Regards,
Guillaume.



Re: How can I install 4 OS'es on one disk?

2007-10-07 Thread Nick Holland
stan wrote:
 I have a new laptop that I would like to set up to have 4 different OS's
 on. The OS's I would like to install are:
 
 OpenBSD
 FreeBSD
 Linux
 Windows (XP r Vista)
 
 Is it possible to do this on the one disk. I do have enough space, my
 concern is about portions. If it is possible can anyone give me an idea how
 best to approach this? Or a pointer to some docs?
 
 Ate the moment the machine has the Vista part-ion, and it's recovery partition
 (which I figure I don;t need), and a Linux partition on it. I can boot Linux,
 or Vista using Grub.

The answer to your subject: line is with pain

Not really an OpenBSD question, more of a How well do you know your OSs?
question...

You have four primary partitions to play with.  Windows, OpenBSD, and
possibly FreeBSD will each *need* to be in one of those partitions.
I think you are a bit fast to toss your recovery partition, you may wish
to give this machine to someone else later, you might wish it was still
there for their benefit (at least, dump it to something where you can
later put it back.  g4u may be your friend here).  Besides, if you don't
end up dumping your Windows installation, and probably your recovery
partition by accident in this process, you were probably lucky.

That leaves one partition.  And Linux likes to use multiple fdisk
partitions (unless you follow the advice of those that propose swapping
to RAM disks).  So, you probably need to make this one remaining
partition an extended partition.

Linux will use an extended partition, but I'm not sure if it can boot
from one, nor do I know if a boot loader will extract it and boot from
there (and I suspect there will be vendor-specific BIOS questions, too).
That's your problem to figure out.


Personally, I think this is a bad plan.  I really can't imagine that
you will be regularly using all four OSs on the one machine.  This
probably means you are wishing to learn all four OSs (or learn some
and use some, whatever).  Learning implies not yet master of, and
multi-booting requires either complete mastery of the boot process of
ALL involved OSs, or a type this and don't ask any questions HOWTO
for idiots guide, and you aren't likely to find one that matches your
exact combo. Since you are asking the question, you aren't complete
master of the boot process, I suspect.

Get an old PC, install ONE OS on it, learn it.
Once you understand the boot process on that OS, set your laptop
up to multi-boot with that OS, use your PC to learn the next one.
I don't think I'd try to get four OSs on one machine, just use the
laptop as a terminal for other OSs on other machines.

Nick.



Re: How can I install 4 OS'es on one disk?

2007-10-07 Thread Nick Guenther
On 10/7/07, stan [EMAIL PROTECTED] wrote:
 I have a new laptop that I would like to set up to have 4 different OS's
 on. The OS's I would like to install are:

 OpenBSD
 FreeBSD
 Linux
 Windows (XP r Vista)

 Is it possible to do this on the one disk. I do have enough space, my
 concern is about portions. If it is possible can anyone give me an idea how
 best to approach this? Or a pointer to some docs?

 Ate the moment the machine has the Vista part-ion, and it's recovery partition
 (which I figure I don;t need), and a Linux partition on it. I can boot Linux,
 or Vista using Grub.

Well all the OSes you listed can just boot directly from the MBR (see
biosboot(8) and FAQ #4 http://www.openbsd.org/faq/faq4.html), and as
luck would have it 4 is the exact maximum number of primary partitions
that a DOS/MBR-based system can boot.

What you should do is run fdisk(8) (linux's or freebsd's or openbsd's)
to divy up your disk into the four partitions. If you run fdisk wd0
you can see the four available. You should use the unix fdisk because
it allows you to do more than Windows' restrictive one.
Then when yo ugo to install, install Windows first. It's installer is
flakey and likes to mess with partitions, sometimes even not how you
tell it to (it depends on certain things like what Partition Type ID
code you use for each, and such), so do that first and make it work.
Once that's good, you can safely install the other OSes without worry
of them stomping on each other (so long as you, you know, make sure to
install to the correct partition).

Then just set up a bootloader (NTLDR
http://www.tburke.net/info/ntldr/ntldr_hacking_guide.htm, GRUB, or
whatever) to boot your OSes.

-Nick



Re: firewall is very slow, something's wrong

2007-10-07 Thread Claudio Jeker
On Thu, Oct 04, 2007 at 05:48:50PM -0700, Florin Andrei wrote:
 Dual-homed firewall, web server on the private network, firewall is 
 doing 1:1 NAT for the web server to the public interface of the 
 firewall. em0 is the public interface, em1 is the private one.
 
 In the exact same setup (same hardware even) I am comparing Linux and 
 OpenBSD for a firewall. Installed Linux on a hard-disc, OpenBSD on 
 another disc, and I'm just swapping discs while I'm testing.
 All firewall rules are written as stateless as possible - I don't need 
 stateful filtering, the setup is very simple (allow HTTP inbound, allow 
 a few ICMP types, and that's it).
 
 With Linux, I achieve gigabit transfer speeds through the firewall 
 (saturating the network ports), but the firewall refuses to let any new 
 connection through when I flood it with a bunch of small UDP packets 
 with random source addresses.
 
 I expected OpenBSD 4.1 to do better. But the thing is, even without the 
 UDP flood, the OpenBSD firewall is very slow. I am downloading a huge 
 file through it, via HTTP, and all I get is 4 Mbyte / sec. With Linux I 
 get 112 Mbyte / sec.
 
 Something's wrong. Or I'm doing something wrong.
 
 The hardware is AMD64, Tyan Transport, 2 CPUs 2 cores each. I am using 
 the SMP kernel. The network card is Intel Pro/1000 PCI Express 4x dual 
 gigabit port, it carries both em0 and em1.
 

I guess you need to enable acpi with config(8) as the system is quite
new and most newer system have busted MP BIOS infos. The effect is bad
interrupt routing and other crazyness -- which is often felt as slow
systems.

-- 
:wq Claudio



Re: X11 very slow with SMP kernel

2007-10-07 Thread Jona Joachim
On Sun, 07 Oct 2007 19:21:59 +0200
[EMAIL PROTECTED] (Peter N. M. Hansteen) wrote:

 Jona Joachim [EMAIL PROTECTED] writes:
 
  I can see X redraw the screen top down very slowly when I use the
  SMP kernel on my Thinkpad T60. I can actually see it draw the
  background first and then every widget one by one. I don't see this
  behaviour when I use GENERIC.
 
 It's been discussed on the list recently, the short version is that
 you may find that enabling acpi in the MP kernel will speed up your
 system.
 
 http://marc.info/?l=openbsd-miscm=118836844303217w=2 gives you the
 main bits.
 
 Hope this helps,

Thanks a lot, it also helped in my case!
I was reluctant to enable acpi because the man page says it could cause
overheating because the kernel takes thermal control from the bios but
doesn't provide any thermal regulation functionality.
Does my laptop risk overheating when I enable acpi?

Regards,
Jona

-- 
I am chaos. I am the substance from which your artists and scientists
build rhythms. I am the spirit with which your children and clowns
laugh in happy anarchy. I am chaos. I am alive, and tell you that you
are free. Eris, Goddess Of Chaos, Discord  Confusion



Re: Thank you developers... 4.2 arrived in the mail today

2007-10-07 Thread Graeme Neilson
Pre-order has made it all the way to New Zealand already - thanks to all.

On 10/7/07, Peter N. M. Hansteen [EMAIL PROTECTED] wrote:

 One other data point - My preordered 4.2 set arrived here in Bergen,
 Norway today. Excellent artwork as usual, and great song :)

 Cheers,
 --
 Peter N. M. Hansteen, member of the first RFC 1149 implementation team
 http://bsdly.blogspot.com/ http://www.datadok.no/ http://www.nuug.no/
 Remember to set the evil bit on all malicious network traffic
 delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



Re: X11 very slow with SMP kernel

2007-10-07 Thread Peter N. M. Hansteen
Jona Joachim [EMAIL PROTECTED] writes:

 Thanks a lot, it also helped in my case!

good.

 I was reluctant to enable acpi because the man page says it could cause
 overheating because the kernel takes thermal control from the bios but
 doesn't provide any thermal regulation functionality.
 Does my laptop risk overheating when I enable acpi?

I haven't noticed any difference in temperature, at least. sysctl hw output:

[EMAIL PROTECTED]:~$ sysctl hw  
hw.machine=i386
hw.model=Genuine Intel(R) CPU T2400 @ 1.83GHz (GenuineIntel 686-class)
hw.ncpu=2
hw.byteorder=1234
hw.physmem=2145808384
hw.usermem=2145796096
hw.pagesize=4096
hw.disknames=cd0,sd0
hw.diskcount=2
hw.sensors.cpu0.temp0=51.00 degC
hw.sensors.wpi0.raw0=137 (temperature 0 - 285)
hw.sensors.aps0.temp0=42.00 degC
hw.sensors.aps0.temp1=42.00 degC
hw.sensors.aps0.indicator0=On (Keyboard Active)
hw.sensors.aps0.indicator1=Off (Mouse Active)
hw.sensors.aps0.indicator2=On (Lid Open)
hw.sensors.aps0.raw0=508 (X_ACCEL)
hw.sensors.aps0.raw1=506 (Y_ACCEL)
hw.sensors.aps0.raw2=508 (X_VAR)
hw.sensors.aps0.raw3=506 (Y_VAR)
hw.cpuspeed=1829
hw.setperf=100
hw.vendor=LENOVO
hw.product=946154G
hw.version=ThinkPad R60
hw.serialno=L3B0887
hw.uuid=4e92a801-48ac-11cb-8704-ef6f55e83b86


-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://bsdly.blogspot.com/ http://www.datadok.no/ http://www.nuug.no/
Remember to set the evil bit on all malicious network traffic
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



[OT] Hello.

2007-10-07 Thread Roberto Andradas Izquierdo
evolution filters test, sorry.

-- 
Roberto Andradas Izquierdo  | Libre Software Engineering Lab
randradas [EMAIL PROTECTED] gsyc.escet.urjc.es| Grupo de Sistemas y 
Comunicaciones
Tel: (+34) 91 488 81 05 | Edif. Departamental II - Despacho 119
http://www.randradas.org| Universidad Rey Juan Carlos
http://www.libresoft.es | Tulipan s/n 2833 Msstoles, Madrid.



[OT] filter test.

2007-10-07 Thread Roberto Andradas Izquierdo
evolution's filters test. sorry
-- 
Roberto Andradas Izquierdo  | Libre Software Engineering Lab
randradas [EMAIL PROTECTED] gsyc.escet.urjc.es| Grupo de Sistemas y 
Comunicaciones
Tel: (+34) 91 488 81 05 | Edif. Departamental II - Despacho 119
http://www.randradas.org| Universidad Rey Juan Carlos
http://www.libresoft.es | Tulipan s/n 2833 Msstoles, Madrid.



Re: [OT] filter test.

2007-10-07 Thread Peter N. M. Hansteen
Roberto Andradas Izquierdo [EMAIL PROTECTED] writes:

 evolution's filters test. sorry

received twice.

-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://bsdly.blogspot.com/ http://www.datadok.no/ http://www.nuug.no/
Remember to set the evil bit on all malicious network traffic
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



Re: Thank you developers... 4.2 arrived in the mail today

2007-10-07 Thread Josh
 How did you order yours?

I am in NZ too... Is there a way to just transfer money via internet
banking or something?

Graeme Neilson wrote:

  Pre-order has made it all the way to New Zealand already - thanks to all.
  
  On 10/7/07, Peter N. M. Hansteen   [EMAIL PROTECTED]   wrote:

One other data point - My preordered 4.2 set arrived here in Bergen,
Norway today. Excellent artwork as usual, and great song :)

Cheers,
--
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://bsdly.blogspot.com/ http://www.datadok.no/ 
http://www.nuug.no/Remember to set the evil bit on all malicious network 
traffic
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



Re: Thank you developers... 4.2 arrived in the mail today

2007-10-07 Thread Graeme Neilson
I pre-ordered using the web form for international orders
http://www.openbsd.org/orders.html with my new fangled credit card...;)

On 10/8/07, Josh [EMAIL PROTECTED] wrote:

 How did you order yours?

 I am in NZ too... Is there a way to just transfer money via internet
 banking or something?

 Graeme Neilson wrote:

   Pre-order has made it all the way to New Zealand already - thanks to
 all.

   On 10/7/07, Peter N. M. Hansteen   [EMAIL PROTECTED]   wrote:

 One other data point - My preordered 4.2 set arrived here in Bergen,
 Norway today. Excellent artwork as usual, and great song :)

 Cheers,
 --
 Peter N. M. Hansteen, member of the first RFC 1149 implementation
 teamhttp://bsdly.blogspot.com/ http://www.datadok.no/
 http://www.nuug.no/Remember to set the evil bit on all malicious
 network traffic
 delilah spamd[29949]: 85.152.224.147: disconnected after 42673
 seconds.



Re: wine question - BAT2EXE?

2007-10-07 Thread Frank Bax

Frank Bax wrote:
As you can see from my posts (wine and qemu); I am open to any solution 
that will allow me to run this app with performance approaching 
(preferably faster than) native P3-600.  I'll donate C$100 to OpenBSD if 
it works before year-end - it's not much, but its more than US$100 for 
the first time in +30 years.  Shucks, I'll probably make the donation 
anyway; after all, the cost of a cdrom has been constant for a couple of 
years now.



Holy screen savers Batman!!

Thank you Jona Joachim for posting a question answered in August.
Thank you Peter N. M. Hansteen for answering the same question twice.
Thanks especially to Richard Toohey for keeping me thinking about this 
issue off-list over the past few days (and the trip down memory lane); I 
could have easily missed todays emails as well.


I missed the initial thread discussing X11 speed on Lenovo laptop.  Here 
I thought that problem had something to do with the fact I was using 
vesa driver and that it was unrelated to qemu performance.


I boot bsd.mp with acpi enabled and the data conversion is completed in 
1:50 (down from 6:00); my target was 1:20 (speed on native P3-600). 
Close enough!


I just donated $100 to the project.  What a great team!

Frank



Re: qemu speed

2007-10-07 Thread Ted Unangst
On 10/5/07, Nick Guenther [EMAIL PROTECTED] wrote:
 I'm curious: in principle, would it be possible to use lkm(4) in
 OpenBSD to get the same effect? Presumably it would mean a lot of
 porting, but is there something fundamentally different about BSD from
 Linux here?

it's possible.



Re: How can I install 4 OS'es on one disk?

2007-10-07 Thread Amarendra Godbole
On 10/7/07, stan [EMAIL PROTECTED] wrote:
 I have a new laptop that I would like to set up to have 4 different OS's
 on. The OS's I would like to install are:

 OpenBSD
 FreeBSD
 Linux
 Windows (XP r Vista)

 Is it possible to do this on the one disk. I do have enough space, my
 concern is about portions. If it is possible can anyone give me an idea how
 best to approach this? Or a pointer to some docs?

I have almost similar configuration on my IBM Thinkpad X61 laptop.
Here is how I did it:
1. Install Windows XP/ Vista in the first primary partition.
2. Install OpenBSD in the second primary partition.
3. Install FreeBSD in the third.
4. Install Linux (Debian, in my case) in the fourth - which becomes
extended because of the way Linux handles the partitions.

Use grub as your bootloader, as it can boot Linux from the extended
partition. All other three OSes' will chainload through grub, which
means you have to add entries to menu.lst of grub. Booting FreeBSD
through grub is nicely explained here:
http://ezine.daemonnews.org/200102/grub.html. A similar entry needs to
be made for OpenBSD too. Also note that grub starts the numbering from
0, so your partitions will be 0 for Win, 1 for OpenBSD, 2 for FreeBSD,
and 3 for Linux.

HTH.

-Amarendra

 Ate the moment the machine has the Vista part-ion, and it's recovery partition
 (which I figure I don;t need), and a Linux partition on it. I can boot Linux,
 or Vista using Grub.

 --
 I'm sorry, no one here has any intentions of helping you with anything.
 I am the manager of all of Customer Service.