Problem using nut/usbhid-ups driver

2010-04-19 Thread Jon Sjöstedt
Hello all!

I have a brand new APC Smart-UPS 750 that I want to use with my OpenBSD-box.

So far I have:
* Installed the nut package nut-2.2.1p0 using pkg_add
* Added user _ups to the daemon group
* changed group for /dev/ugen0.00 to daemon (was wheel)
* Created this ups.conf file:
[ups-closetmonster]
driver = usbhid-ups
port = /dev/ugen0.00
desc = UPS APC Smart-UPS 750 for server closetmonster

When I try to start the usbhid-ups driver, it always fails:

$ sudo usbhid-ups - -a ups-closetmonster
Network UPS Tools: 0.29 USB communication driver - core 0.32 ()

debug level is '4'
upsdrv_initups...
No appropriate HID device found
No matching HID UPS found

Any ideas appreciated!


Some details:

$ dmesg | grep ugen0
ugen0 at uhub3 port 1 American Power Conversion Smart-UPS 750
FW:651.18.I USB FW:7.4 rev 1.10/0.06 addr 2

$ usbdevs -vd
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x),
NEC(0x1033), rev 1.00
  uhub0
 port 1 powered
 port 2 powered
 port 3 powered
 port 4 powered
 port 5 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, OHCI root hub(0x),
NEC(0x1033), rev 1.00
  uhub1
 port 1 powered
 port 2 powered
 port 3 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, OHCI root hub(0x),
NEC(0x1033), rev 1.00
  uhub2
 port 1 powered
 port 2 powered
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub3
 port 1 addr 2: low speed, self powered, config 1, Smart-UPS 750
FW:651.18.I USB FW:7.4(0x0002), American Power Conversion(0x051d), rev
0.06, iSerialNumber AS0950242625
   ugen0
 port 2 powered
Controller /dev/usb4:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub4
 port 1 powered
 port 2 powered



-- 
Jon



Trouble setting u pkerberos for pgsql

2009-03-19 Thread Jon Sjöstedt
Hello all!

Installing pgsql server for the first time, I get stuck on this (which
is a part of the /usr/local/share/doc/postgresql/README.OpenBSD)
ktutil -k /etc/postgresql/krb5.keytab get postgres/server.domain
ktutil: connect(kerberos.mydomain): Connection timed out
ktutil: connect(kerberos.mydomain): Connection timed out

Can I make it use localhost in any way?

--
jonsjost...@gmail.com jonsjost...@hotmail.com



Trouble setting up kerberos for pgsql

2009-03-18 Thread Jon Sjöstedt
Hello all!

Installing pgsql server for the first time, I get stuck on this (which
is a part of the /usr/local/share/doc/postgresql/README.OpenBSD)
ktutil -k /etc/postgresql/krb5.keytab get postgres/server.domain
ktutil: connect(kerberos.mydomain): Connection timed out
ktutil: connect(kerberos.mydomain): Connection timed out

Can I make it use localhost in any way?

--

The d00...@dtek.chalmers.se email address will eventually be abandoned
during 2009. Please use addresses below instead
Jon Sjvstedt   _O_
Godvddersgatan 52 /(|)\
418 38 GVTEBORG  |  H  |
 -OOO-[-+X+-]-OOO-
Hem 075 - 242 80 04( )
Mobil 0735 - 029 557  _| |_

jonsjost...@gmail.com jonsjost...@hotmail.com



special chars in path in fstab

2009-02-11 Thread Jon Sjöstedt
Hello all!
I want to use space in dir-names that are mount-points, but mount-a says
Inappropriate file type or format. I can perfectly use mount manually
to mount a filesystem on a dir with space in its dir-name.

I have tried quoting in , '' and 44, but that didnt help. Can this be
done in any way?


Jon



Re: Mount directories of unmounted disks/partitions

2009-01-16 Thread Jon Sjöstedt
Hello all patient!
Another clarification attempt :)
I have a drive. Lets call it wd0. It has one partition wd0d that fills up
the whole drive. The root of wd0d has three directories (and no other
files) music, pictures and others. wd0d is mounted at /bananas

The music directory of wd0d grows and suddenly needs more space than
available on wd0. I add a new drive wd1 and create wd1d with all available
space. I copy everything in wd0d/music to wd1d.

I still want the same structure as before, but i dont want to mount wd1d
in a directory that is inside wd0d.

If mount would accept something like

mount /bananas/pictures /dev/wd0d/pictures
mount /bananas/others /dev/wd0d/others
mount /bananas/music /dev/wd1d

my problem would be solved.


 On 16/01/2009, at 10:46 AM, Jon Sjvstedt wrote:

 Hello,

 On Thu, Jan 15, 2009 at 1:30 PM, Jon Sjvstedt
 d00...@dtek.chalmers.se
 wrote:

 Hello all!
 I have an issue with mount. The problem  is that i would like to
 create
 a
 directory with subdirs. On the subdirs I would mount directories of
 not
 yet mounted disks. Example

 mount /stuff/data1 /wd0d/dataa
 mount /stuff/data2 /wd0d/datab
 mount /stuff/data3 /wd1d
 mount /stuff/data4 /wd2d/datad
 mount /stuff/data5 /wd2d/datae


 Syntax of your mount commands is a bit strange... according to
 mount(8) the first argument should be a 'special' device, like
 /dev/wd0a, not a regular directory.
 Clarification attempt: I know that mount wants a device like /dev/wd0d,
 but my example was an atempt to explain what I want to archive. I want
 a
 mounting point in the root file system to be mounted with a directory
 found inside a device that is not yet mounted. I also want this
 transparent to samba and NFS (I'll use both).

 It would be perfectly ok to use more programs than mount to solve this


 I want to do this because datax are all growing fast (it is my music
 and
 photos). Eventually dataa and datab will need their own disks.

 Can this be done in a neat way? I only want to mount disks on the
 root
 partition


 If each datax directory has it's own partition it's perfectly
 possible.
 The thing is that I want these mounted directories to share a disk (or
 partition) until they both cant fit. Then, the biggest one have to move
 away. If my ideas get to work, I only have to change the device of the
 mounting, not the mounting point.

 However, it seems to me that (from your example above) 'dataa' and
 'datab' are on the same partition, and, from mount(8): For disk
 partitions, the special device must correspond to a partition
 registered in the disklabel(5)., so no deal.


 I'm still not understanding what you want or what the problem is. This
 appears to me to be a perfectly ordinary mounting situation.

 If you have a bunch of dirs, data[1-2], as subdirectories of /stuff,
 then you can put whatever you want in these. Then, at some point you
 can mount a different volume on any of these and the path will remain
 as /stuff/datax. If you wish to then change the mounted volume, just
 change your fstab or mount command as appropriate.
 This will work with samba and nfs, as long as your smb.conf and exports
 are set up correctly, and is a perfectly ordinary situation, as I said.

 I'm confused by:
 I want a mounting point in the root file system to be mounted with a
 directory
 found inside a device that is not yet mounted.

 Do you want to hierarchically mount filesystems? This seems very odd.

 Have I somehow misunderstood?


 paulm









The d00...@dtek.chalmers.se email address will
eventually be abandoned during 2009. Please use
addresses below instead
Jon Sjvstedt   _O_
Godvddersgatan 52 /(|)\
418 38 GVTEBORG  |  H  |
-OOO-[-+X+-]-OOO-
Hem 075 - 242 80 04( )
Mobil 0735 - 029 557  _| |_

jonsjost...@gmail.com jonsjost...@hotmail.com



Re: Mount directories of unmounted disks/partitions

2009-01-16 Thread Jon Sjöstedt
If you wish to contribute there are clarifications for my somewhat unclear
initial post. If you have not seen them, read the digest.
 How do you think file systems are mounted on top of / ?

 On 2009 Jan 16 (Fri) at 11:10:23 +0100 (+0100), Jon Sjvstedt wrote:
 :I still want the same structure as before, but i dont want to mount wd1d
 :in a directory that is inside wd0d.

 --
 Never call a man a fool.  Borrow from him.




The d00...@dtek.chalmers.se email address will
eventually be abandoned during 2009. Please use
addresses below instead
Jon Sjvstedt   _O_
Godvddersgatan 52 /(|)\
418 38 GVTEBORG  |  H  |
-OOO-[-+X+-]-OOO-
Hem 075 - 242 80 04( )
Mobil 0735 - 029 557  _| |_

jonsjost...@gmail.com jonsjost...@hotmail.com



Mount directories of unmounted disks/partitions

2009-01-15 Thread Jon Sjöstedt
Hello all!
I have an issue with mount. The problem  is that i would like to create a
directory with subdirs. On the subdirs I would mount directories of not
yet mounted disks. Example

mount /stuff/data1 /wd0d/dataa
mount /stuff/data2 /wd0d/datab
mount /stuff/data3 /wd1d
mount /stuff/data4 /wd2d/datad
mount /stuff/data5 /wd2d/datae

I want to do this because datax are all growing fast (it is my music and
photos). Eventually dataa and datab will need their own disks.

Can this be done in a neat way? I only want to mount disks on the root
partition



The d00...@dtek.chalmers.se email address will
eventually be abandoned during 2009. Please use
addresses below instead

jonsjost...@gmail.com jonsjost...@hotmail.com



Re: Mount directories of unmounted disks/partitions

2009-01-15 Thread Jon Sjöstedt
 Hello,

 On Thu, Jan 15, 2009 at 1:30 PM, Jon Sjvstedt d00...@dtek.chalmers.se
 wrote:

 Hello all!
 I have an issue with mount. The problem  is that i would like to create
 a
 directory with subdirs. On the subdirs I would mount directories of not
 yet mounted disks. Example

 mount /stuff/data1 /wd0d/dataa
 mount /stuff/data2 /wd0d/datab
 mount /stuff/data3 /wd1d
 mount /stuff/data4 /wd2d/datad
 mount /stuff/data5 /wd2d/datae


 Syntax of your mount commands is a bit strange... according to
 mount(8) the first argument should be a 'special' device, like
 /dev/wd0a, not a regular directory.
Clarification attempt: I know that mount wants a device like /dev/wd0d,
but my example was an atempt to explain what I want to archive. I want a
mounting point in the root file system to be mounted with a directory
found inside a device that is not yet mounted. I also want this
transparent to samba and NFS (I'll use both).

It would be perfectly ok to use more programs than mount to solve this


 I want to do this because datax are all growing fast (it is my music and
 photos). Eventually dataa and datab will need their own disks.

 Can this be done in a neat way? I only want to mount disks on the root
 partition


 If each datax directory has it's own partition it's perfectly possible.
The thing is that I want these mounted directories to share a disk (or
partition) until they both cant fit. Then, the biggest one have to move
away. If my ideas get to work, I only have to change the device of the
mounting, not the mounting point.

 However, it seems to me that (from your example above) 'dataa' and
 'datab' are on the same partition, and, from mount(8): For disk
 partitions, the special device must correspond to a partition
 registered in the disklabel(5)., so no deal.


 
 The d00...@dtek.chalmers.se email address will
 eventually be abandoned during 2009. Please use
 addresses below instead

 jonsjost...@gmail.com jonsjost...@hotmail.com


 fbscarel




The d00...@dtek.chalmers.se email address will
eventually be abandoned during 2009. Please use
addresses below instead

jonsjost...@gmail.com jonsjost...@hotmail.com



Re: Problem with disk size

2007-10-25 Thread Jon Sjöstedt
Please dont kill me :) I'm really not experienced with this kind of stuff.

Maby this helps:

$ sudo disklabel wd0
# Inside MBR partition 3: type A6 start 63 size 16514001
# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: Maxtor 6L250R0
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 490234752
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: 490234752 0  unused  0 0  # Cyl 0
-486343
  d: 49023468863  4.2BSD   2048 16384   16 # Cyl
0*-486343*
$ sudo fdisk wd0
fdisk: sysctl(machdep.bios.diskinfo): Device not configured
Disk: wd0   geometry: 16383/16/63 [490234752 Sectors]
Offset: 0   Signature: 0xAA55
 Starting   Ending   LBA Info:
 #: idC   H  S -C   H  S [   start:  size   ]

 0: 000   0  0 -0   0  0 [   0:   0 ] unused
 1: 000   0  0 -0   0  0 [   0:   0 ] unused
 2: 000   0  0 -0   0  0 [   0:   0 ] unused
*3: A60   1  1 - 16382  15 63 [  63:16514001 ] OpenBSD
$

 Jon Sjvstedt wrote:
 Hello all!

 I have an OpenBSD-box with two 250G drives inside (and some SCSI).
 Trying
 to use one of the drives as a whole gave this from disklabel


 $ sudo disklabel -p g wd0
 [snip]

 don't snip.

 16 partitions:
 # sizeoffset  fstype [fsize bsize  cpg]
   c:233.8G  0.0G  unused  0 0  # Cyl
 0-486343
   d:233.8G  0.0G  4.2BSD   2048 16384   16 # Cyl
 0*-486343*

 but df -h says:

 /dev/wd0d  7.8G7.4G4.2M   100%

 and I cant create any new files on the drive. What could be the problem
 here? Any hints appreciated.

 dmesg attached.

 thanks for the dmesg.

 You tried darned hard to obscure this (I really don't care how many G
 your disk is, I care about which sectors you are using), but it does
 appear that you opted to not properly partition your disk.  The fact
 that you didn't show the output of fdisk causes me to believe you
 knew it, though you may not have recognized the significance. ;)

 Your OpenBSD subpartition appears to start at sector zero.  Bad idea.
 This means, whether by design or by accident, you don't have an fdisk
 partition table (aka, MBR) on the disk.  Also a bad idea.

 On some platforms, i386 is one of them, you must use fdisk partitions,
 and your disklabel partitions must start at a one track offset (in
 your case, probably 63 sectors).

 When you don't follow the rules, ugly things happen.  It isn't the
 size of the disk, it's the way it's laid out that is giving you
 problems.

 See faq14.html...
I did, but i probably didnt understand it :P

 Nick.




Jon Sjvstedt   _O_



Problem with disk size

2007-10-24 Thread Jon Sjöstedt
Hello all!

I have an OpenBSD-box with two 250G drives inside (and some SCSI). Trying
to use one of the drives as a whole gave this from disklabel


$ sudo disklabel -p g wd0
[snip]
16 partitions:
# sizeoffset  fstype [fsize bsize  cpg]
  c:233.8G  0.0G  unused  0 0  # Cyl 0
-486343
  d:233.8G  0.0G  4.2BSD   2048 16384   16 # Cyl
0*-486343*

but df -h says:

/dev/wd0d  7.8G7.4G4.2M   100%

and I cant create any new files on the drive. What could be the problem
here? Any hints appreciated.

dmesg attached.





Jon Sjvstedt   _O_
OpenBSD 3.9 (GENERIC) #617: Thu Mar  2 02:26:48 MST 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III (GenuineIntel 686-class) 665 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem  = 536387584 (523816K)
avail mem = 482426880 (471120K)
using 4278 buffers containing 26923008 bytes (26292K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 05/31/00, BIOS32 rev. 0 @ 0xfdae0
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 @ 0xf7710/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:07:0 (VIA VT82C686 ISA rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0x1 0xd/0x8000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 VIA VT82C691 PCI rev 0xc4
ppb0 at pci0 dev 1 function 0 VIA VT82C598 AGP rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 NVIDIA Riva TNT2 rev 0x15
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0 VIA VT82C686 ISA rev 0x1b
uhci0 at pci0 dev 7 function 2 VIA VT83C572 USB rev 0x0e: irq 12
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 7 function 3 VIA VT83C572 USB rev 0x0e: irq 12
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
viaenv0 at pci0 dev 7 function 4 VIA VT82C686 SMBus rev 0x20
ahc0 at pci0 dev 9 function 0 Adaptec AHA-2940U rev 0x00: irq 10
scsibus0 at ahc0: 16 targets
sd0 at scsibus0 targ 0 lun 0: SEAGATE, ST39102LW, 0004 SCSI2 0/direct fixed
sd0: 8683MB, 6962 cyl, 12 head, 212 sec, 512 bytes/sec, 17783240 sec total
sd1 at scsibus0 targ 1 lun 0: SEAGATE, ST39102LW, 0004 SCSI2 0/direct fixed
sd1: 8683MB, 6962 cyl, 12 head, 212 sec, 512 bytes/sec, 17783240 sec total
sd2 at scsibus0 targ 2 lun 0: IBM, DNES-309170, SAH0 SCSI3 0/direct fixed
sd2: 8748MB, 11474 cyl, 5 head, 312 sec, 512 bytes/sec, 17916240 sec total
cd0 at scsibus0 targ 3 lun 0: SONY, CD-RW CRX140S, 1.0e SCSI4 5/cdrom 
removable
pciide0 at pci0 dev 10 function 0 CMD Technology PCI0680 rev 0x02
pciide0: bus-master DMA support present
pciide0: channel 0 configured to native-PCI mode
pciide0: using irq 9 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: Maxtor 6L250R0
wd0: 16-sector PIO, LBA48, 239372MB, 490234752 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
pciide0: channel 1 configured to native-PCI mode
wd1 at pciide0 channel 1 drive 0: Maxtor 6L250R0
wd1: 16-sector PIO, LBA48, 239372MB, 490234752 sectors
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5
dc0 at pci0 dev 11 function 0 Davicom DM9102 rev 0x31: irq 12, address 
00:80:ad:72:3b:17
amphy0 at dc0 phy 1: DM9102 10/100 PHY, rev. 0
emu0 at pci0 dev 12 function 0 Creative Labs SoundBlaster Live rev 0x05: irq 
11
ac97: codec id 0x54524123 (TriTech Microelectronics TR28602)
audio0 at emu0
Creative Labs PCI Gameport Joystick rev 0x05 at pci0 dev 12 function 1 not 
configured
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
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: 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
isapnp0 at isa0 port 0x279: read port 0x203
Maxi Sound 64 Series, ESS8600, ,  at isapnp0 port 0x800/8 not configured
Maxi Sound 64 Series, ESS8601, ,  at isapnp0 port 0x220/16,0x388/4,0x300/2 
irq 5 drq 1,0 not configured
Maxi Sound 64 Series, ESS8602, ,  at isapnp0 port 0x201/1 not configured
Maxi Sound 64 Series, ESS8603, ,  at isapnp0 port 0x330/6 irq 5 not configured
biomask f765 netmask f765 ttymask f7e7
pctr: 686-class user-level performance counters enabled

Looking for something similar to screen-command

2007-09-12 Thread Jon Sjöstedt
Hello all!

I have installed BitTorrent-4.2.2 on my 3.9-box. With this i would like to
start file sharing on a console, logout, login later and reattach to the
console of the BitTorrent-4.2.2 session. AFAIK this is done in most
Linux-distros using the command screen, but how can I do it in BSD?

Any help appreciated


Jon Sjvstedt



Re: Looking for something similar to screen-command

2007-09-12 Thread Jon Sjöstedt
Ok, thanks! Please dont kill me any more!:)
 You use screen as well :-P

 On 9/12/07, Jon Sjvstedt [EMAIL PROTECTED] wrote:
 Hello all!

 I have installed BitTorrent-4.2.2 on my 3.9-box. With this i would like to
 start file sharing on a console, logout, login later and reattach to
the console of the BitTorrent-4.2.2 session. AFAIK this is done in most
Linux-distros using the command screen, but how can I do it in BSD?

 Any help appreciated

 
 Jon Sjvstedt










Jon Sjvstedt   _O_
Godvddersgatan 52 /(|)\
418 38 GVTEBORG  |  H  |
-OOO-[-+X+-]-OOO-
Hem 075 - 242 80 04( )
Mobil 0735 - 029 557  _| |_

[EMAIL PROTECTED] [EMAIL PROTECTED]



Apache-problem

2006-09-03 Thread Jon Sjöstedt
Hello!
I have just enabled and tested some stuff with the 3.9-apache server. The
predefined It Worked!-page works as expected. I have added one more
directory by adding

Directory /var/www/htdocs/my_test
Options MultiViews
AllowOverride None
Order allow,deny
Allow from all
/Directory

to my httpd.conf

the directory my_test is a mount point where I mount my www-drive

Accessing this directory from internet works as expected, but if I access
it from the internal (192.168.1.*) network the returned address is my
hostname (which can not be looked up in any DNS). I would like the servers
local IP-adress to be returned instead (just as when i access the It
Worked!-page).

Since the It Worked!-page works without tricks with virtual hosts i
expect to solve this without using them. How can this be done?

--

Jon Sjvstedt

d00jon()dtek,chalmers!se jonsjostedt[]hotmail:com



Re: SCSI-HD problems at install

2006-05-18 Thread Jon Sjöstedt
 On Fri, May 12, 2006 at 07:42:08PM +0200, Jon Sj?stedt wrote:
 Hello!
 I have a machine with Tekram DC395-UW with one IBM DNES-309170 ID2, a
 SONY-burner
 ID3 and two Seagate ST39102LW (ID0 and ID1). Id0 is set to be bootdrive
 in
 Tekram BIOS (ver 3.03).

 The install starts fine from a IDE-cdromdrive (the SONY wont work, any
 ideas?). But when the disks are about ot be formated it stops to work.
 Labels from previous tries are there, but i cant assign mountpoints to
 all
 of them. When format is about to start it says (and sometimes after
 would
 you like to use *all* of sd0 for openBSD? yes)

 check condition (error 0x70) on opcode 0x28
 senskey illegal request
 asc/ascq asc 0x24 ascq 0x00
 frucode 0x1
 sksv error in CDB offset 3 bit 2
 check condition (error 0x70) on opcode 0x28
 senskey illegal request
 asc/ascq asc 0x24 ascq 0x00
 frucode 0x1
 sksv error in CDB offset 4 bit 6

 Any ideas?




 
 Jon Sjvstedt


 http://www.openbsd.org/report.html
 http://www.openbsd.org/faq/faq4.html#getdmesg

 It would seem to be reporting an illegal READ(10) command, with the
 problem being an illegal 'logical block' field. Perhaps trying to
 read outside of the bounds of the disk?

 I'd zero the existing disklabel(s), boot record and partition tables
 and try again. If it fails again, capturing the entire attempt
 (including dmesg) via a serial console would be perfect.

  Ken

I have messed a bit with the disks, but the problems wont dissapear. I
attach a console-install try. Hope it clears things a bit. The harddrive
errors occour a bit every now and then when the OS tries to do stuff with
the disks.

zero the existing disklabel(s), boot record and partition tables Is
there a very exact and precice way to do this? When i try to write a
virgin MBR I get the same error. Formating a disk using the SCSI-BIOS
setup wont help either (formating is fine, but the error remains). Both
disks have previously worked fine with Windows NT 4.0 installed

The detected values for the CHS does not match the ones found at
www.seagate.com


Jon Sjvstedt
 OpenBSD/i386 CDBOOT 1.04ion 1 VIA VT82C571 IDE re
boot: ATA
booting cd0a:/3.9/i386/bsd.rd: 4435508+740284 [52+155376+141982]=0x538528d  
  
onfigured to compatibility, channel 1 configured to
entry point at 0x100120rev 0x0e: irq 9

Copyright (c) 1982, 1986, 1989, 1991, 1993annel 0 disabled (no drives) USB 
revision 
The Regents of the University of California.  All rights reserved.CI 
root hub, rev 1.00/1.00, a
scsibus0 at atapiscsi0: 2 targets   
Copyright (c) 1995-2006 OpenBSD. All rights reserved.  
http://www.OpenBSD.org2B, 0017 SCSI0 5/cdrom r VT82C686 SMBus rev 0x20 at 
pci0 dev 7 function 4 n

OpenBSD 3.9 (RAMDISK_CD) #1025: Thu Mar  2 02:43:29 MST 2006: using PIO mode 4, 
Ultra-DMA mode 2v 9 function 0 Tekram D
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/RAMDISK_CD72 USB rev 
0x0e: irq 9s1 at trm0: 16 targets 
cpu0: Intel Pentium III (GenuineIntel 686-class) 665 M
  
R,SSE, 696
real mem  = 536387584 (523816K)es/sec, 17783240 sec total 
avail mem = 483577856 (472244K)   
using 4278 buffers containing 26923008 bytes (26292K) of memorynsfers   
  
mainbus0 (root)sibus1 targ 1 l
bios0 at mainbus0: AT/286+(00) BIOS, date 05/31/00, BIOS32 rev. 0 @ 0xfdae0 
 
sd1: 8683MB, 6962 cy
apm0 at bios0: Power Management spec V1.240 sec total   
  
apm0: flags 30102 dobusy 0 doidle 1 
trm0: target 2 using 8 bi
pcibios0 at bios0: rev 2.1 @ 0xf/0x1

pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf7710/176 (9 entries)SCSI3 0/direct 
fixed 
cd1 at scsibus1 targ 3 lun 0: SONY, CD-
cpu0 at mainbus0 SCSI4 5/cdrom r
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)  
  
e 
dc0 at pci0 dev 11
pchb0 at pci0 dev 0 function 0 VIA VT82C691 PCI rev 0xc4:ad   

ppb0 at pci0 dev 1 function 0 VIA VT82C598 AGP rev 0x00 phy 1: DM9102 10/100 
PHY, rev. 0
pci1 at ppb0 bus 1   
Creative Labs
vga1 at pci1 dev 0 function 0 NVIDIA Riva TNT2 rev 0x15 configu   
  
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)ameport Joystick rev 
0x05 at pci0 dev 12 function 1 n
pcib0 at pci0 dev 7 function 0 VI 
pciide0: channel 0 disabled (no drives)   
npx0 at isa0 port 0
atapiscsi0 at pciide0 channel 1 drive 0   
pccom0 
scsibus0 at atapiscsi0: 2 targets0a, 16 byte fifo 
cd0 at scsibus0 targ 0 lun 0: 

SCSI-HD problems at install

2006-05-12 Thread Jon Sjöstedt
Hello!
I have a machine with Tekram DC395-UW with one IBM-disk ID2, a SONY-burner
ID3 and two Seagate ST39102LW (ID0 and ID1). Id0 is set to be bootdrive in
Tekram BIOS (ver 3.03).

The install starts fine from a IDE-cdromdrive (the SONY wont work, any
ideas?). But when the disks are about ot be formated it stops to work.
Labels from previous tries are there, but i cant assign mountpoints to all
of them. When format is about to start it says (and sometimes after would
you like to use *all* of sd0 for openBSD? yes)

check condition (error 0x70) on opcode 0x28
senskey illegal request
asc/ascq asc 0x24 ascq 0x00
frucode 0x1
sksv error in CDB offset 3 bit 2
check condition (error 0x70) on opcode 0x28
senskey illegal request
asc/ascq asc 0x24 ascq 0x00
frucode 0x1
sksv error in CDB offset 4 bit 6

Any ideas?





Jon Sjvstedt