Re: How to list available all hard disks in OpenBSD

2012-12-21 Thread Alexander Hall
Alexander Hall alexan...@beard.se wrote:

On 12/21/12 04:17, Indunil Jayasooriya wrote:
 HI,

 I would like to know How to list available all hard disks in OpenBSD
?

 If I run below 2 commands, it will give an output.

 dmesg |grep wd0

 fdisk wd0


 If I install a new Hard Disk, How to get to know whether it is wd1 or
 anything eles?

 In Linux, Fdisk -l show all the available hard disks. In OpenBSD
what's the
 command for it?

$ sysctl -n hw.disknames
cd0:,sd0:3ae78cd65d4ba8f8

$ sysctl -n hw.disknames | sed 's/:[^,]*//g;s/,/ /'
cd0 sd0

and also see hotplugd(8)

...and add a 'g' at the appropriate place in the sed expression...



Re: kernel panic with /etc/daily and ntfs mount

2012-12-21 Thread Sebastian Neuper
On Thu, 20 Dec 2012 21:36:12 + (UTC)
Stuart Henderson s...@spacehopper.org wrote:

  and my first try was to apply the bgpd patch. I even succeeded in 
  recompiling
  the kernel thanks to your great documentation and noticed afterwards, that
  i didn't have to and bgpd has nothing to do with it :)
 
  You don't have to rebuild the kernel for that patch.
  You have to rebuild and install bgpd, which is part of userland.
 
 ..and you don't have to do it at all unless you're running bgpd.
 
 If you are running it, you will know.

Yeah, ok. Thanks. :)

This bug has something to do with find(1) on ntfs partitions and daily(8) uses 
find(1). A report was already sent to b...@openbsd.org . Here is a link to MARC:

http://marc.info/?l=openbsd-bugsm=135578697512678w=2

Best, Sebastian.

-- 
Sebastian Neuper pha...@gmx.de



Re: Plausible deniable encryption

2012-12-21 Thread Dustin Fechner
On 12/21/2012 06:17 AM, Robert Connolly wrote:
 I want to hide a system in the primary swap partition.

Could you please explain why anybody (including you) would want to do this!?



Re: Help with the board H77-D3H

2012-12-21 Thread What you get is Not what you see
On Thu, Dec 20, 2012 at 6:29 PM, Nick Holland
n...@holland-consulting.netwrote:

 and no dmesg.  that's the missing clue, of course.  serial console
 collection would be nice.


Could you give me some hints about serial console thing? I dont have any
experience with it. Do I need to have some special cables etc?
I have two machines one linux the other openbsd. If no special cables
necessary I will try to play with serial console thing.
So still not able to show a dmesg.


I'm guessing, as it sounds fairly new-ish, that you have an option to run
 the SATA ports in AHCI mode, and obviously, you are not.  I've found at
 least some AHCI controllers in compatibility mode are between glacial and
 unusable.  Yours sounds like it was glacial during install and unusable
 after boot.  Dig through your BIOS for options to change the mode of the
 SATA ports to AHCI (enhanced  good  non-sucky no idea what they'll
 call it).  You will know you are in AHCI mode if your disks come up as sd
 rather than wd devices.



As you have guessed there is a switch in bios about sata modes. There are 3
sata modes: ide,ahci and raid. When ide selected the disc is recognised as
wd
and when ahci it is sd.
I reinstalled  to a different hard disk which is older, same thing happened.



Re: Help with the board H77-D3H

2012-12-21 Thread Peter Hessler
Which kernel are you booting?  If you only boot 'bsd', you need a
fully-installed system to use that.  You need to make sure to boot the
'bsd.rd' kernel.



On 2012 Dec 20 (Thu) at 18:01:44 +0200 (+0200), What you get is Not what you 
see wrote:
:I try to install OpenBSD 5.2 i386 to a box with this board.
:It has an Intel G645 Pentium processor with 4GB of ram and a 500G of Sata3
:hard drive.
:It has an onboard AR8151 ethernet which I understand is not supported by
:the generic kernel.
:There is a web page about a diff workaround which dont I dont bother now
:because I plan to use other nics in the worst case.
:So my problem is not currently with this nic now.
:I hardly installed 5.2 generic (it took 5-6 hours, because the cdrom was
:too slow) and now it cant boot.
:I mean, when booting it comes to this line in dmesg
:root on wd0a . swap on wd0b dump on wd0b
:and the error occurs
:init : cannot stat /etc/login.conf No such file or directory
:sh: /etc/rc No such file or directory
:init: /etc/pwd.db No such file 
:Enter pathname of shell .
:
:I guess the /etc/ filesystem is not mounted or there is no such filesystem.
:I try to change some bios settings without success.
:Even I tried disable acpi option when booting but this leads to debugger
:menu from where I dont know how to report the dump etc.
:
:So any help would be appreciated.
:Here is the board manifacture's web page
:http://www.gigabyte.com/products/product-page.aspx?pid=4141
:

-- 
Lizzie Borden took an axe,
And plunged it deep into the VAX;
Don't you envy people who
Do all the things ___YOU want to do?



vfs.nfs.iothreads

2012-12-21 Thread Jan Stary
On 5.2/i386, man sysctl says

 To adjust the number of kernel nfsio threads used to service asynchronous
 I/O requests on an NFS client machine:

   # sysctl vfs.nfs.iothreads=4

 The default is 4; 20 is the maximum.  See nfssvc(2) and nfsd(8) for
 further discussion.

Does it still apply?  The default now seems to be

   # sysctl vfs.nfs.iothreads
   vfs.nfs.iothreads=-1

which scales itself to 4 when I copy a file from a NFS server.
Should I be touching vfs.nfs.iothreads manually?
Setting it to 20 just panicked my 5.2/i386.

Also, neither nfssvc(2) nor nfsd(8) seems
to contain any further discussion of this.

Jan



Re: Help with the board H77-D3H

2012-12-21 Thread Christiano F. Haesbaert
Just as a note, I have a z77 d3h and ahci was disabled too.



[off-topic] purging : microsoft : demons : howto?

2012-12-21 Thread Mayuresh Kathe

demons galore,
of the microsoft lore,
lurking in windows disks,
lying near my hard disks,
drawing my attention,
giving me too much tension,
how do i purge,
this crazy scourge?

best.

~mayuresh

ps: it's driving me crazy... :)



Re: issue tracker

2012-12-21 Thread Stefan Sperling
On Fri, Dec 21, 2012 at 01:17:06PM +, sickm...@lavabit.com wrote:
 On 12:25 Thu 20 Dec , Stefan Sperling wrote:
  On Wed, Dec 19, 2012 at 09:43:18PM +, sickm...@lavabit.com wrote:
   Hi,
   
   I have been using OpenBSD for quite a long time, and find it awesome.
   I've got some spare time lately and decided to hunt some bugs, but I
   don't really know where to start. Any suggestions?
   
   P.S. Yeah, I know about openbsd-bugs, but I suppose that's not all there
   is.
  
  I could provide a list of things that need doing in locales/wireless/IPv6
  if any of those areas are of interest to you.
 
 They are. Except for locales, never used them.

Cool! Below is a todo list written off the top of my head.

Wireless:

There are performance issues with ral(4) and possibly other devices.
I believe it's because the rate adaptation algorithm is too basic
and doesn't cope well in noisy environments. The dragonfly commit
log for ral(4) contains some interesting work by sephe@dragonfly
which I've been taking a closer look at.
http://gitweb.dragonflybsd.org/dragonfly.git/history/HEAD:/sys/dev/netif/ral
(Careful: Some of sephe's commits have been reverted in a giant
sync with freebsd commit -- I'm not sure whether the person who
made that commit knew what he was doing...)
Note that parts of these rely on other changes made to the generic
net80211 layer in dragonfly. I hope that we might be able to fix
performance issues with ral(4) and perhaps other chips based on sephe's
work. But this needs a bit of research. I'm not entirely sure if that
really is the case. For some reason, hostap mode seems to be affected
most by the performance issues, which is why I believe the rate adapation
approach might to blame (but it might just as well be something else).

ral(4) does not support power saving in hostap mode for rt2560 and
rt2661 chips. Power-saving support for newer chip variants exists.

In general, adding support for power-saving in hostap mode to any
drivers which support hostap mode is needed. See here for the spec:
http://standards.ieee.org/getieee802/download/802.11-2012.pdf
(Chapter 10.2 Power management)
and look at ral(4) (rt2860.c), athn(4), and acx(4) for example code.

There are chips that ath(4) should support but does not.
See http://marc.info/?l=openbsd-miscm=134901419419278w=2

There are chips that athn(4) should support but does not.
I'm already working on AR9485 and could use some help there if you
have access to such hardware. The equivalent Linux driver is ath9k
which supports several models athn(4) lacks support for. Adding support
for any of these would be great.

ipw(4) is buggy: http://marc.info/?l=openbsd-miscm=134929439329011w=2
Could also be a hardware/firmware issues. Needs research.

urtwn(4) is buggy: http://marc.info/?l=openbsd-miscm=134666785524449w=2
http://marc.info/?l=openbsd-miscm=134666785524449w=2
This could also be a problem in the USB stack, not sure. Needs research.

There is no driver for BCM43228 chips. There is a BSD-licensed driver
for linux: http://linuxwireless.org/en/users/Drivers/brcm80211
Writing a driver for this will be very difficult! I'm mentioning this
for completeness.

FreeBSD has a driver for some other broadcom chips we don't support:
http://svnweb.freebsd.org/base/head/sys/dev/bwn/
It would be nice (but far from trivial) to get this ported to OpenBSD.

Of course, it's best to start off hacking on drivers for hardware you
own and actually use.

IPv6:

Carp does not support unicast peers over IPv6, only multicast.
Support for IPv4 unicast was added by reyk in this commit:
http://marc.info/?l=openbsd-cvsm=121348006024130w=2
The equivalent should be implemented for IPv6.

ospf6d(4) does not support multiple areas as specified in RFC 5340
and thus isn't really RFC-compliant. Also, it does not support virtual
links (same RFC).

ospf6d(4) does not support authenticated OSPF packets. It should be
using IPsec for this, according to RFC 5340 (the MD5-based approach used
in OSPF for IPv4 is not applicable to OSFP for IPv6).
Currently we require users to manually configure IPsec flows between routers.
It would be great if there was a way to tell ospf6d to configure ipsec flows
automatically.  Obviously, IPsec secrets would need to be installed on any
routers taking part in the OSPF network, but beyond that ospf6d should just
do whatever is necessary to secure OSPF traffic.


I hope this list helps you getting started.
If you have any questions just let me know.



Re: issue tracker

2012-12-21 Thread Martin Pieuchot
On 21/12/12(Fri) 17:49, Stefan Sperling wrote:
 On Fri, Dec 21, 2012 at 01:17:06PM +, sickm...@lavabit.com wrote:
  On 12:25 Thu 20 Dec , Stefan Sperling wrote:
   On Wed, Dec 19, 2012 at 09:43:18PM +, sickm...@lavabit.com wrote:
Hi,

I have been using OpenBSD for quite a long time, and find it awesome.
I've got some spare time lately and decided to hunt some bugs, but I
don't really know where to start. Any suggestions?

P.S. Yeah, I know about openbsd-bugs, but I suppose that's not all there
is.
   
   I could provide a list of things that need doing in locales/wireless/IPv6
   if any of those areas are of interest to you.
  
  They are. Except for locales, never used them.
 
 Cool! Below is a todo list written off the top of my head.
 
 Wireless:
 [...]
 
 FreeBSD has a driver for some other broadcom chips we don't support:
 http://svnweb.freebsd.org/base/head/sys/dev/bwn/
 It would be nice (but far from trivial) to get this ported to OpenBSD.

If someone wants to work on this item, send me an email first, I already
have a WIP port of the driver.

M.



Re: [off-topic] purging : microsoft : demons : howto?

2012-12-21 Thread mxb
Original by author?
Well rimed :)

On 21 dec 2012, at 17:22, Mayuresh Kathe mayur...@wolfman.devio.us wrote:

 demons galore,
 of the microsoft lore,
 lurking in windows disks,
 lying near my hard disks,
 drawing my attention,
 giving me too much tension,
 how do i purge,
 this crazy scourge?
 
 best.
 
 ~mayuresh
 
 ps: it's driving me crazy... :)



Re: vfs.nfs.iothreads

2012-12-21 Thread Jason McIntyre
On Fri, Dec 21, 2012 at 02:34:50PM +0100, Jan Stary wrote:
 On 5.2/i386, man sysctl says
 
  To adjust the number of kernel nfsio threads used to service asynchronous
  I/O requests on an NFS client machine:
 
  # sysctl vfs.nfs.iothreads=4
 
  The default is 4; 20 is the maximum.  See nfssvc(2) and nfsd(8) for
  further discussion.
 
 Does it still apply?  The default now seems to be
 
  # sysctl vfs.nfs.iothreads
  vfs.nfs.iothreads=-1
 
 which scales itself to 4 when I copy a file from a NFS server.
 Should I be touching vfs.nfs.iothreads manually?
 Setting it to 20 just panicked my 5.2/i386.
 
 Also, neither nfssvc(2) nor nfsd(8) seems
 to contain any further discussion of this.
 

i don;t use nfs, so a bit of guesswork...

i get -1 here too. but you;re saying that the value changes to 4 when
transferring, right?

i can;t see anything from a quick glance at cvs logs that indicate past
discussion of the sysctl. but i take it that nfsd's -n option (default
4, max 20) is analogous, and that the stuff about how many daemons to
run is what the see nfsd... reference is to.

and that the default is 4 when nfsd is actually doing something.

so it sounds like the docs are correct, but not very clear (or helpful).

if some nfs dude can clarify, we can tidy it up a bit...

jmc



Re: vfs.nfs.iothreads

2012-12-21 Thread Michał Markowski
2012/12/21 Jason McIntyre j...@kerhand.co.uk:
 i get -1 here too. but you;re saying that the value changes to 4 when
 transferring, right?

I found this in /sys/nfs/nfs_vfsops.c:

   if (nfs_niothreads  0) {
   nfs_niothreads = 4;
   nfs_getset_niothreads(1);
   }

http://www.openbsd.org/cgi-bin/cvsweb/src/sys/nfs/nfs_vfsops.c.diff?r1=1.30;r2=1.31

-- 
Michał Markowski



Re: [off-topic] purging : microsoft : demons : howto?

2012-12-21 Thread Mayuresh Kathe

yes, original by author.
born out of sheer frustration. :)

On Fri, 21 Dec 2012, mxb wrote:


Original by author?
Well rimed :)

On 21 dec 2012, at 17:22, Mayuresh Kathe mayur...@wolfman.devio.us wrote:


demons galore,
of the microsoft lore,
lurking in windows disks,
lying near my hard disks,
drawing my attention,
giving me too much tension,
how do i purge,
this crazy scourge?

best.

~mayuresh

ps: it's driving me crazy... :)




Re: Plausible deniable encryption

2012-12-21 Thread Robert Connolly

On 12/21/12 04:06, Dustin Fechner wrote:

On 12/21/2012 06:17 AM, Robert Connolly wrote:

I want to hide a system in the primary swap partition.

Could you please explain why anybody (including you) would want to do this!?

Essentially, for fun. For hobby, I am trying to implement every privacy 
and security technique available, all at the same time. It could be 
useful to someone like Julian Assange.


Steganographic file systems have the problem that encryption is hard to 
deny, and indicates that something is being hidden. Encrypted swap 
spaces are becoming mainstream, making this the least suspicious 
technique for hiding encrypted data.


ie:
vnconfig -ck -v /dev/vnd0c /dev/rsd0b



Re: Plausible deniable encryption

2012-12-21 Thread Robert Connolly
On 12/21/12 19:36, Robert Connolly wrote:
 On 12/21/12 04:06, Dustin Fechner wrote:
 On 12/21/2012 06:17 AM, Robert Connolly wrote:
 I want to hide a system in the primary swap partition.
 Could you please explain why anybody (including you) would want to do 
 this!?

 Essentially, for fun. For hobby, I am trying to implement every 
 privacy and security technique available, all at the same time. It 
 could be useful to someone like Julian Assange.

Let me put this another way.

I want to be able to walk to the coffee shop, mail a Christmas card to 
my aunt Sarah, buy a cup of coffee, go to the library, and look at 
pictures of Iceland, and then come home and not find advertizements in 
my mail box saying my aunt Sarah likes Acme Brand Coffee, and travel 
brochures for Iceland; but on the internet we know today, this is the 
level of privacy we have (none). And why do we have this lack of 
privacy? To make other people money.

As the Tor developers put it, there is an arms race between censorship 
and data collection, and freedom and privacy. I am using my skill-set to 
help others make it more difficult to take my freedom and privacy away.