DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 16th July 2009
IronForge IronForge is offline
Fdisk Soldier
 
Join Date: Jul 2009
Location: SoCal - "have skills, will travel for projects"
Posts: 55
Default How to "configure" and mount a USB Drive already in use

Greetings:

I've been trying to mount a USB drive for a day or so; and though I've found the references, I can't seem to get past the "rsd0c is not Configured" error message.

The device/drive sd0 did show up on my dmesg yesterday; but I can't seem to find any "sd*" drive or any other USB designation emulating a SCSI drive on my dmesg output today.

I've been using my USB drives as go btwns on Linux and Windows; and would like to have them available for my OpenBSD Box. I've several files I'd rather keep on the USB and backed up on the Hard Drive.

Here's my dmesg:

# dmesg
OpenBSD 4.5-stable (GENERIC) #0: Sat Jul 11 10:11:35 PDT 2009
IronForge's Machine:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Sempron(tm) ("AuthenticAMD" 686-class, 256KB L2 cache) 1.01 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,P GE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem = 2113433600 (2015MB)
avail mem = 2035261440 (1940MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 08/31/04, BIOS32 rev. 0 @ 0xfb490, SMBIOS rev. 2.2 @ 0xf0000 (39 entries)
bios0: vendor Phoenix Technologies, LTD version "6.00 PG" date 08/31/2004
apm0 at bios0: Power Management spec V1.2 (slowidle)
apm0: AC on, battery charge unknown
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xf0000/0xdef4
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfde60/144 (7 entries)
pcibios0: PCI Exclusive IRQs: 3 5 9 10 11
pcibios0: PCI Interrupt Router at 000:02:0 ("SiS 85C503 System" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x8000!
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "SiS 741 PCI" rev 0x03
sisagp0 at pchb0
agp0 at sisagp0: aperture at 0xd0000000, size 0x8000000
ppb0 at pci0 dev 1 function 0 "SiS 648FX AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "SiS 6330 VGA" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 2 function 0 "SiS 964 ISA" rev 0x36
pciide0 at pci0 dev 2 function 5 "SiS 5513 EIDE" rev 0x01: 741: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <HDS722540VLAT20>
wd0: 16-sector PIO, LBA48, 39266MB, 80418240 sectors
wd1 at pciide0 channel 0 drive 1: <Maxtor 6L100P0>
wd1: 16-sector PIO, LBA, 95611MB, 195813072 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 6
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <SONY, DVD RW DRU-530A, 1.0d> ATAPI 5/cdrom removable
atapiscsi1 at pciide0 channel 1 drive 1
scsibus1 at atapiscsi1: 2 targets
cd1 at scsibus1 targ 0 lun 0: <HL-DT-ST, CD-RW GCE-8526B, 1.03> ATAPI 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 3, Ultra-DMA mode 2
cd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2
auich0 at pci0 dev 2 function 7 "SiS 7012 AC97" rev 0xa0: irq 5, SiS7012 AC97
ac97: codec id 0x414c4760 (Avance Logic ALC655 rev 0)
audio0 at auich0
ohci0 at pci0 dev 3 function 0 "SiS 5597/5598 USB" rev 0x0f: irq 10, version 1.0, legacy support
ohci1 at pci0 dev 3 function 1 "SiS 5597/5598 USB" rev 0x0f: irq 11, version 1.0, legacy support
ohci2 at pci0 dev 3 function 2 "SiS 5597/5598 USB" rev 0x0f: irq 9, version 1.0, legacy support
ehci0 at pci0 dev 3 function 3 "SiS 7002 USB" rev 0x00: irq 3
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "SiS EHCI root hub" rev 2.00/1.00 addr 1
sis0 at pci0 dev 4 function 0 "SiS 900 10/100BaseTX" rev 0x91: irq 11, address 00:11:5b:15:b4:c5
rlphy0 at sis0 phy 1: RTL8201L 10/100 PHY, rev. 1
unknown vendor 0x2000 product 0x2800 (class communications subclass modem, rev 0x02) at pci0 dev 11 function 0 not configured
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
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
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
it0 at isa0 port 0x2e/2: IT8705F rev 3, EC port 0x290
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "SiS OHCI root hub" rev 1.00/1.00 addr 1
usb2 at ohci1: USB revision 1.0
uhub2 at usb2 "SiS OHCI root hub" rev 1.00/1.00 addr 1
usb3 at ohci2: USB revision 1.0
uhub3 at usb3 "SiS OHCI root hub" rev 1.00/1.00 addr 1
biomask ef4d netmask ef4d ttymask ffdf
mtrr: Pentium Pro MTRR support
uhub0: device problem, disabling port 4
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
kqemu: kqemu version 0x00010300 loaded, max locked mem=1031948kB
DDB symbols added: 337632 bytes
uhub0: device problem, disabling port 6
uhub0: device problem, disabling port 5
#

I appreciate the help.
Reply With Quote
  #2   (View Single Post)  
Old 16th July 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by IronForge View Post
I've been trying to mount a USB drive for a day or so; and though I've found the references, I can't seem to get past the "rsd0c is not Configured" error message.

The device/drive sd0 did show up on my dmesg yesterday...
  • The first thing you want to do is study Section 14.17 of the FAQ, as this deals with mounting (USB) flash devices.

    http://openbsd.org/faq/faq14.html#flashmem
  • Secondly, become familiar with disklabel(8). This should at least appear familiar given that you have recently installed OpenBSD. If it does not, study both the manpage & Section 4 of the FAQ. Reading Section 14.1 is also recommended.
  • Thirdly, /dev/sd0c cannot be mounted as a filesystem. disklabel(8) will show what partitions are available on the USB drive, & if it is formated FAT, then I urge you to study the examples very carefully at the bottom of the mount(4) manpage. If the drive is formated NTFS, you will need to recompile the kernel after enabling NTFS support in /usr/src/sys/arch/i386/conf/GENERIC. NTFS support is considered experimental, & is thus not available by default. NTFS support is mentioned in passing in Section 14.16.
Reply With Quote
  #3   (View Single Post)  
Old 16th July 2009
IronForge IronForge is offline
Fdisk Soldier
 
Join Date: Jul 2009
Location: SoCal - "have skills, will travel for projects"
Posts: 55
Default Quick response

Thanks, ocicat:

Stepped away to take a break, realized I forgot to enter the lack of "umass" statements on my dmesg... bingo, you've already responded.

In my effort to make this a box that can take on Linux(Compat) and Windows(KQEMU/WINE) apps (going to see if I can run a few work-related apps on this box) My next task was to get my external HD drive accessible...two answers in one response - Thanks!

There's a joy in figuring things out and making it work...

Will re-review the disklabel and others.

Best regards

Last edited by IronForge; 16th July 2009 at 03:51 AM.
Reply With Quote
  #4   (View Single Post)  
Old 16th July 2009
IronForge IronForge is offline
Fdisk Soldier
 
Join Date: Jul 2009
Location: SoCal - "have skills, will travel for projects"
Posts: 55
Default

Ocicat and others:

I think I'm having hardware or another problem. I'm getting this at the end of my dmesg:

uhub0: device problem, disabling port 4
uhub0: device problem, disabling port 6
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
kqemu: kqemu version 0x00010300 loaded, max locked mem=1031948kB
DDB symbols added: 337632 bytes
uhub0: device problem, disabling port 2
uhub0: device problem, disabling port 5
uhub0: device problem, disabling port 6
uhub0: device problem, disabling port 5
uhub0: device problem, disabling port 6


There are no sd* drive nor umass device mentioned either. They were listed 2 days ago.

# disklabel sd0
disklabel: /dev/rsd0c: Device not configured



Unless I've "removed" those devices somehow when I tried to "newfs msdos" or "mount" it...dunno. I replaced the USB device with another and it still wouldn't come up on the dmseg, nor the /var/log/ messages (the messages just repeats the disabling ports after a logfile turnover).

Figure the number of disabled ports and the other devices (printer and DVD) add up to the number of USB ports I've available.

When I do boot with a USB drive plugged in, I do get an "hd2*" on my drive listing; and when I pull out/insert an USB device, I get the following entry in the /var/log/messages file:

Jul 16 12:37:41 IronForge /bsd: uhub0: device problem, disabling port 5

Per FAQ14, shouldn't I see something like the following on my messages?

umass0: at uhub1 port 1 (addr 2) disconnected
sd0 detached
scsibus2 detached
umass0 detached


Is it a hardware problem, or has my kernel been hacked (it's GENERIC), or has someone accessed my machine somehow?

Please advise - thanks.
Reply With Quote
  #5   (View Single Post)  
Old 17th July 2009
IronForge IronForge is offline
Fdisk Soldier
 
Join Date: Jul 2009
Location: SoCal - "have skills, will travel for projects"
Posts: 55
Default found some peculiar pkgs while cleaning up my port directories

I also found this when I decided to clean up the "w-pkg directories" and update/get the ports tree:

# cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs get -rOPENBSD_4_5 -P ports
? ports/databases/p5-Tie-DBI
U ports/databases/p5-Tie-DBI/Makefile
U ports/databases/p5-Tie-DBI/distinfo
U ports/databases/p5-Tie-DBI/pkg/DESCR
U ports/databases/p5-Tie-DBI/pkg/PLIST
? ports/devel/avr/libc
U ports/devel/avr/libc/Makefile
U ports/devel/avr/libc/distinfo
U ports/devel/avr/libc/pkg/DESCR
U ports/devel/avr/libc/pkg/PLIST



From the Manpage's CVS(1):

? file file is in your working directory, but does not
correspond to anything in the source repository,
and is not in the list of files for cvs to
ignore (see the description of the -I option).



IIRC, I haven't touched anything that requires the BDI/Berkely Database thus far, unless OPENBSD, GNOME, or FIREFOX required it...I've worked with ORACLE before; and pulled the BDI port to study it later. Is "avr" in -CURRENT? That's for the Flash/Microprocessor programming tool avrdude, right?

My box's USB drives were working fine while I was using Linux/BSD LiveCDs prior to installing OBSD. Considering that my /var/log/messages are registering USB drive inserts and extractions as device errors; and a Flash/Microprocessor Programming pkg may be installed in a manner outside the basic parameters of the -STABLE ports tree directories (? and U), I've some questions here.

Readers: Don't mean to "jump the gun"; but if you think it's strange, please post or private msg me. This is my home office/work box; and I'm also a Plaintiff against an ex-employer (software company), so if this isn't a hack via the web, someone could have broke in overnight or when I'm away. Paranoid? No way - I've even had directories that contained Legal documents and Police / Congressional Letters deleted. Lovely people, whomever is doing this.
Reply With Quote
  #6   (View Single Post)  
Old 17th July 2009
IronForge IronForge is offline
Fdisk Soldier
 
Join Date: Jul 2009
Location: SoCal - "have skills, will travel for projects"
Posts: 55
Default found some peculiar pkgs while cleaning up my port directories

I also found this when I decided to clean up the "w-pkg directories" and update/get the ports tree:

# cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs get -rOPENBSD_4_5 -P ports
? ports/databases/p5-Tie-DBI
U ports/databases/p5-Tie-DBI/Makefile
U ports/databases/p5-Tie-DBI/distinfo
U ports/databases/p5-Tie-DBI/pkg/DESCR
U ports/databases/p5-Tie-DBI/pkg/PLIST
? ports/devel/avr/libc
U ports/devel/avr/libc/Makefile
U ports/devel/avr/libc/distinfo
U ports/devel/avr/libc/pkg/DESCR
U ports/devel/avr/libc/pkg/PLIST



From the Manpage's CVS(1):

? file file is in your working directory, but does not
correspond to anything in the source repository,
and is not in the list of files for cvs to
ignore (see the description of the -I option)

U file The file has been brought up to date with
respect to the repository. This is done for any
file that exists in the repository but not in
your source, and for files that you haven't
changed but are not the most recent versions
available in the repository.
.



IIRC, I haven't touched anything that requires the BDI/Berkely Database thus far, unless OPENBSD, GNOME, or FIREFOX required it... I've worked with ORACLE before; and may have pulled the BDI database to study it later; but the perl modules weren't manually pulled.

Is "avr" in -CURRENT? That's for the Flash/Microprocessor programming tool avrdude, right? My box's USB drives were working fine while I was using Linux/BSD LiveCDs prior to installing OBSD. Considering that my /var/log/messages are registering USB drive inserts and extractions as device errors; and a Flash/Microprocessor Programming pkg may be installed in a manner outside the basic parameters (from what I read so far, right, ocicat? Ha!) of the -STABLE ports tree directories (? and U when I've only pkg_add'd directly from the ports tree - the "w-pkgnames" are; and were just deleted), I've some questions here.

If I accessed the -CURRENT tree, I should have a lot more inconsistencies.

Readers: Don't mean to "jump the gun"; but if you think it's strange, please post or private msg me. This is my home office/work box; and I'm also a Plaintiff against an ex-employer (software company), so if this isn't a hack via the web, someone could have broke in overnight or when I'm away. Paranoid? No way - I've even had directories that contained Legal documents and Police / Congressional Letters emptied clean. Lovely people, whomever is doing this.
Reply With Quote
  #7   (View Single Post)  
Old 17th July 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by IronForge View Post
I think I'm having hardware or another problem. I'm getting this at the end of my dmesg:

uhub0: device problem, disabling port 4
uhub0: device problem, disabling port 6
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
kqemu: kqemu version 0x00010300 loaded, max locked mem=1031948kB
DDB symbols added: 337632 bytes
uhub0: device problem, disabling port 2
uhub0: device problem, disabling port 5
uhub0: device problem, disabling port 6
uhub0: device problem, disabling port 5
uhub0: device problem, disabling port 6
Yes, I agree. This looks like a hardware issue. The "disabling port" error message is found in /usr/src/sys/dev/usb/uhub.c. Comments in the code indicate that either a new address cannot be added or that a serious error has occurred. In either event, the code cannot rectify what it is finding in hardware.
Quote:
There are no sd* drive nor umass device mentioned either. They were listed 2 days ago.
Then something has changed in the configuration. The dmesg(1) output shows that kqemu has been installed, so a number of packages have been added. Perhaps jggimi may have an idea about it. I personally don't use virtualization software, but I do know that it messes with a lot of things at a very low level.
Quote:
Per FAQ14, shouldn't I see something like the following on my messages?

umass0: at uhub1 port 1 (addr 2) disconnected
sd0 detached
scsibus2 detached
umass0 detached
When the device is unplugged, yes.
Quote:
Is it a hardware problem, or has my kernel been hacked (it's GENERIC), or has someone accessed my machine somehow?
I would suspect hardware issues.
Quote:
IIRC, I haven't touched anything that requires the BDI/Berkely Database thus far, unless OPENBSD, GNOME, or FIREFOX required it... I've worked with ORACLE before; and may have pulled the BDI database to study it later; but the perl modules weren't manually pulled.
When the ports tree is updated, any infrastructural change checked into the tree will be downloaded -- unconditionally.
Quote:
Is "avr" in -CURRENT?
Changes to the makefile were checked in four days ago in -current:

http://www.openbsd.org/cgi-bin/cvswe...r/Makefile.inc

Depending on how much time you want to spend troubleshooting, I will repeat my suspicion about packages added. Since it sounds like you are looking for peace of mind, I would go as far as suggesting reinstalling followed by immediately testing your USB devices before installing hordes of packages.

Last edited by ocicat; 17th July 2009 at 04:50 AM.
Reply With Quote
  #8   (View Single Post)  
Old 17th July 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

The kqemu kernel module can cause trouble -- as far as I know, only when out-of-sync with the kernel, such as during an upgrade. The trouble, though, from my experience, manifests as a kernel panic.

While it may not solve the problem to pkg_delete kqemu, I would do so, and see if the problem goes away. I wouldn't expect it to, but, you'd want no 3rd party kernel modules in a configuration if you were to file a formal problem report, or, even posting about the problem informally to the misc@ mailing list.

I have had similar USB trouble, where ports were disabled. But, not with a mass storage device ... only with a particular multifunction printer/scanner when the OS was configured to use ugen(4) with it, and the failure only occurred when printing; scanning worked fine.

You might consider disabling ehci(4), forcing your USB interface to use USB 1.1 instead of USB 2. It will be slower, of course, but it might circumvent your problem. (No, that didn't work for me, but then, I do have an external USB hard drive that gets I/O errors with echi(4) that it doesn't get with ohci(4) instead.)
Reply With Quote
  #9   (View Single Post)  
Old 28th August 2009
IronForge IronForge is offline
Fdisk Soldier
 
Join Date: Jul 2009
Location: SoCal - "have skills, will travel for projects"
Posts: 55
Default

Thank you, Gentlemen:

Disabling ehci worked. Outside of having one of my usb drives also register as a CD Drive...(go figure) in the /var/log/messages file, I was able to get the USB Drives recognized by the Operating System.

...now onwards to tackling the "other" thread...Ha!
Reply With Quote
Old 28th August 2009
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,125
Default

Also see http://www.daemonforums.org/showthread.php?t=2232
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
Old 1st September 2009
IronForge IronForge is offline
Fdisk Soldier
 
Join Date: Jul 2009
Location: SoCal - "have skills, will travel for projects"
Posts: 55
Default

Thanks, J65nko:

Read that, did that along w/the ehci.

Best regards
Reply With Quote
Reply

Tags
mount, ms-dos, usb, windows

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Opera Port - conflicting pkgs in "make install" IronForge OpenBSD Packages and Ports 5 29th October 2009 05:10 AM
Fixed "xinit" after _7 _8, "how" here in case anyones' "X" breaks... using "nvidia" jb_daefo Guides 0 5th October 2009 09:31 PM
"Thanks" and "Edit Tags". diw Feedback and Suggestions 2 29th March 2009 12:06 AM
Scripted sysinstall fails with "Command 'system' failed" PeterSteele FreeBSD Installation and Upgrading 0 13th November 2008 11:31 PM
Took hardisk out and replaced to another machine: CAN"T Mount disappearedng FreeBSD General 2 17th June 2008 07:40 AM


All times are GMT. The time now is 11:01 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick