Subject: USB 2.0 FLASH DISK not work.
To: 'NetBSD-current' <current-users@NetBSD.org>
From: Ricardo A. Reis <ricardo_bsd@yahoo.com.br>
List: current-users
Date: 06/30/2005 19:12:20
Hi all,

I've a problem with PenDrive Sansung 1GB , i not had success a mount in 
my workstation .

Dmesg..

NetBSD 3.0_BETA (GENERIC) #0: Thu Jun 30 17:12:17 BRT 2005
        root@mynetbsd:/usr/src/sys/arch/i386/compile/GENERIC
total memory = 191 MB
avail memory = 179 MB
BIOS32 rev. 0 found at 0xfb270
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD K6-2 (586-class), 501.15 MHz, id 0x58c
cpu0: features 8021bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
cpu0: features 8021bf<PGE,MMX>
cpu0: "AMD-K6(tm) 3D processor"
cpu0: I-cache 32 KB 32B/line 2-way, D-cache 32 KB 32B/line 2-way
cpu0: ITLB 64 4 KB entries direct-mapped
cpu0: DTLB 128 4 KB entries 2-way
cpu0: 4 page colors
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: VIA Technologies VT82C597 (Apollo VP3) Host-PCI Bridge (rev. 0x04)
agp0 at pchb0: aperture at 0xe8000000, size 0x10000000
ppb0 at pci0 dev 1 function 0: VIA Technologies VT82C598 (Apollo MVP3) 
CPU-AGP Bridge (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: S3 ViRGE/GX2 (rev. 0x04)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
pcib0 at pci0 dev 7 function 0
pcib0: VIA Technologies VT82C596A PCI-ISA Bridge (rev. 0x12)
viaide0 at pci0 dev 7 function 1
viaide0: VIA Technologies VT82C596A (Apollo Pro) ATA66 controller
viaide0: bus-master DMA support present
viaide0: primary channel configured to compatibility mode
viaide0: primary channel interrupting at irq 14
atabus0 at viaide0 channel 0
viaide0: secondary channel configured to compatibility mode
viaide0: secondary channel interrupting at irq 15
atabus1 at viaide0 channel 1
uhci0 at pci0 dev 7 function 2: VIA Technologies VT83C572 USB Controller 
(rev. 0x08)
uhci0: interrupting at irq 10
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pchb1 at pci0 dev 7 function 3
pchb1: VIA Technologies product 0x3050 (rev. 0x20)
eap0 at pci0 dev 8 function 0: Ensoniq AudioPCI (rev. 0x01)
eap0: interrupting at irq 11
audio0 at eap0: full duplex, mmap, independent
midi0 at eap0: AudioPCI MIDI UART
fxp0 at pci0 dev 9 function 0: i82558 Ethernet, rev 5
fxp0: interrupting at irq 5
fxp0: Enabling receiver lock-up workaround
fxp0: Ethernet address 00:04:ac:66:1d:d5
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 0
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr0 at pci0 dev 10 function 0: VIA VT6105 (Rhine III) 10/100 Ethernet
vr0: interrupting at irq 9
vr0: Ethernet address: 00:40:f4:5f:1c:1b
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface
ukphy0: OUI 0x0002c6, model 0x0034, rev. 3
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isa0 at pcib0
lpt0 at isa0 port 0x378-0x37b irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi1 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
isapnp0: no ISA Plug 'n Play devices found
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
Kernelized RAIDframe activated
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 0: <SAMSUNG DVD-ROM SD-616T, , F301> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
wd0 at atabus0 drive 1: <Maxtor 2F040J0>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 39205 MB, 79656 cyl, 16 head, 63 sec, 512 bytes/sect x 80293248 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
cd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
wd0(viaide0:0:1): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA)
wd1 at atabus1 drive 0: <QUANTUM FIREBALLlct10 15>
wd1: drive supports 16-sector PIO transfers, LBA addressing
wd1: 14324 MB, 29104 cyl, 16 head, 63 sec, 512 bytes/sect x 29336832 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
wd1(viaide0:1:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
Accounting started

------ with-pendrive-----

umass0 at uhub0 port 1 configuration 1 interface 0
umass0: vendor 0x10d6 USB 2.0(FS) FLASH DISK, rev 1.10/1.00, addr 2
umass0: using ATAPI over Bulk-Only
atapibus1 at umass0: 2 targets
sd0 at atapibus1 drive 0: <USB2.0, (FS) FLASH DISK, 1.00> disk removable
sd0: fabricating a geometry
sd0: 1001 MB, 1001 cyl, 64 head, 32 sec, 512 bytes/sect x 2051809 sectors
sd0: fabricating a geometry
sd0: fabricating a geometry
sd0: fabricating a geometry
sd0: fabricating a geometry
sd0: fabricating a geometry
sd0: fabricating a geometry
sd0: fabricating a geometry
sd0: fabricating a geometry

-------without-pendrive-------
umass0: at uhub0 port 1 (addr 2) disconnected
sd0 detached
atapibus1 detached
umass0 detached

Disklabel output!!

# sudo disklabel sd0
# /dev/rsd0d:
type: ATAPI
disk: mydisk
label: fictitious
flags: removable
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 1001
total sectors: 2051809
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

7 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 d:   2051809         0     unused      0     0        # (Cyl.      0 
-   1001*)
 e: 168689522 1869771365    unknown                     # (Cyl. 912974+- 
995342+)
 f: 1869881465 1701519481    unknown                     # (Cyl. 
830820+- 1743848+)
disklabel: boot block size 0
disklabel: super block size 0
disklabel: partition e: offset past end of unit
disklabel: partition e: partition extends past end of unit
disklabel: partitions e and f overlap
disklabel: partition f: offset past end of unit
disklabel: partition f: partition extends past end of unit
disklabel: warning, partition g: size 0, but offset 2573
zsh: 1185 exit 106   sudo disklabel sd0


Mount output


#sudo mount_msdos -l /dev/sd0e /mnt/pendrive
mount_msdos: /dev/sd0e on /mnt/pendrive: Invalid argument
zsh: 806 exit 1     sudo mount_msdos -l /dev/sd0e /mnt/pendrive

# sudo mount_msdos -l /dev/sd0f /mnt/pendrive
mount_msdos: /dev/sd0f on /mnt/pendrive: Invalid argument
zsh: 1511 exit 1     sudo mount_msdos -l /dev/sd0f /mnt/pendrive



Thanks for Advanced




-- 
Atenciosamente

Ricardo A. Reis
UNIFESP - SENAI
www.unifesp.br
Unix and System Admin


	
	
		
_______________________________________________________ 
Yahoo! Acesso Grátis - Internet rápida e grátis. 
Instale o discador agora! http://br.acesso.yahoo.com/