[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LaCie USB 2.0 hard drive on OpenBSD 3.5



Actually, it is a USB _hard_drive_, and the size is correct -- it's 
advertised as "250GB" (of course, that's the vendor's calculation).

Do you know any manpage/webpage/documentation that shows how to 
customize a kernel for SCSI debugging? That would be helpful.

Thanks,
Lawrence


Marco Peereboom wrote:
> Hmmm, isn't this thing a little big for a USB key?
> 250059350016 bytes = 232GB; something is screwed up here.
> 
> You need to rig a kernel to do some SCSI debugging to see what the heck  
> is up.
> 
> On May 1, 2004, at 11:51 PM, Lawrence Teo wrote:
> 
>> Here's the output of "disklabel sd0":
>>
>> root# disklabel sd0
>> disklabel: warning, DOS partition table with no valid OpenBSD partition
>> # /dev/rsd0c:
>> type: SCSI
>> disk: SCSI disk
>> label: WD2500JB-00FUA0
>> flags:
>> bytes/sector: 512
>> sectors/track: 32
>> tracks/cylinder: 64
>> sectors/cylinder: 2048
>> cylinders: 238475
>> total sectors: 488397168
>> rpm: 3600
>> interleave: 1
>> trackskew: 0
>> cylinderskew: 0
>> headswitch: 0           # microseconds
>> track-to-track seek: 0  # microseconds
>> drivedata: 0
>>
>> 16 partitions:
>> #        size   offset    fstype   [fsize bsize   cpg]
>>   c: 488397168        0    unused        0     0        # (Cyl.    0 
>> -  238475*)
>>   i: 488392002       63     MSDOS                       # (Cyl.    
>> 0*-  238472*)
>>
>>
>>
>>
>> Marco Peereboom wrote:
>>
>>> Send us a "disklabel sd0"
>>> On May 1, 2004, at 6:43 PM, Lawrence Teo wrote:
>>>
>>>> I ran into problems using a 250GB LaCie P3 USB 2.0 hard drive on an
>>>> OpenBSD 3.5 system, and I was wondering if someone knows the  solution.
>>>>
>>>> The problem is that OpenBSD refuses to mount the filesystem on the  
>>>> hard
>>>> drive. The filesystem is formatted as FAT32 but OpenBSD does not  
>>>> want  to
>>>> recognize it:
>>>>
>>>>
>>>> root# mount /dev/sd0i /mnt/usbdrive
>>>> mount_msdos: /dev/sd0i on /mnt/usbdrive: not an MSDOS filesystem
>>>>
>>>> root# mount -t msdos /dev/sd0i /mnt/usbdrive
>>>> mount_msdos: /dev/sd0i on /mnt/usbdrive: not an MSDOS filesystem
>>>>
>>>> root# mount -t msdos /dev/sd0c /mnt/usbdrive
>>>> mount_msdos: /dev/sd0c on /mnt/usbdrive: Inappropriate file type 
>>>> or   format
>>>>
>>>> root# mount -t msdos /dev/sd0a /mnt/usbdrive
>>>> mount_msdos: /dev/sd0a on /mnt/usbdrive: Device not configured
>>>>
>>>>
>>>> Here's my fdisk output:
>>>>
>>>>
>>>> -bash-2.05b# fdisk sd0
>>>> fdisk: sysctl(machdep.bios.diskinfo): Device not configured
>>>> Disk: sd0       geometry: 238475/64/32 [488397168 Sectors]
>>>> Offset: 0       Signature: 0xAA55
>>>>          Starting       Ending       LBA Info:
>>>>  #: id    C   H  S -    C   H  S [       start:      size   ]
>>>> --------------------------------------------------------------------- 
>>>> -- -
>>>> *0: 0C    0   1 32 - 238472  44  1 [          63:   488392002 ]  
>>>> Win95  FAT32L
>>>>  1: 00    0   0  0 -    0   0  0 [           0:           0 ] unused
>>>>  2: 00    0   0  0 -    0   0  0 [           0:           0 ] unused
>>>>  3: 00    0   0  0 -    0   0  0 [           0:           0 ] unused
>>>>
>>>>
>>>> My dmesg is as follows (I inserted the USB hard drive after 
>>>> booting   up):
>>>>
>>>>
>>>> OpenBSD 3.5 (GENERIC) #34: Mon Mar 29 12:24:55 MST 2004
>>>>     deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
>>>> cpu0: Intel(R) Pentium(R) III Mobile CPU 1200MHz ("GenuineIntel"
>>>> 686-class) 1.20 GHz
>>>> cpu0:
>>>> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MM 
>>>> X, FXSR,SSE
>>>> real mem  = 267931648 (261652K)
>>>> avail mem = 242102272 (236428K)
>>>> using 3296 buffers containing 13500416 bytes (13184K) of memory
>>>> mainbus0 (root)
>>>> bios0 at mainbus0: AT/286+(00) BIOS, date 11/26/01, BIOS32 rev. 0 
>>>> @   0xffe90
>>>> apm0 at bios0: Power Management spec V1.2
>>>> apm0: battery life expectancy 100%
>>>> apm0: AC on, battery charge high, charging, estimated 5:45 hours
>>>> pcibios0 at bios0: rev. 2.1 @ 0xf0000/0x10000
>>>> pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xfbc20/192 (10 entries)
>>>> pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371 ISA and IDE"
>>>> rev 0x00)
>>>> pcibios0: PCI bus #4 is the last bus
>>>> bios0: ROM list: 0xc0000/0xd000 0xcd000/0x800! 0xcd800/0x800!
>>>> 0xce000/0x800! 0xce800/0x800! 0xcf000/0x800! 0xcf800/0x800!
>>>> 0xd0000/0x800 0xd0800/0x800! 0xd1000/0x800! 0xd1800/0x800
>>>> 0xd2000/0x800!extent_alloc_region: can't allocate region descriptor
>>>> :12 0xd2800/0x800!extent_alloc_region: can't allocate region  
>>>> descriptor
>>>> :12 0xd3000/0x800extent_alloc_region: can't allocate region  descriptor
>>>> :12 0xd3800/0x800extent_alloc_region: can't allocate region  descriptor
>>>> :12
>>>> pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
>>>> pchb0 at pci0 dev 0 function 0 "Intel 82815 Hub" rev 0x04
>>>> ppb0 at pci0 dev 1 function 0 "Intel 82815 AGP" rev 0x04
>>>> pci1 at ppb0 bus 1
>>>> vga1 at pci1 dev 0 function 0 "Nvidia GeForce2 Go" rev 0xb2
>>>> wsdisplay0 at vga1: console (80x25, vt100 emulation)
>>>> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
>>>> ppb1 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0x03
>>>> pci2 at ppb1 bus 2
>>>> esa0 at pci2 dev 3 function 0 "ESS Maestro 3" rev 0x10: irq 5
>>>> ac97: codec id 0x83847609 (SigmaTel STAC9721/23)
>>>> ac97: codec features 18 bit DAC, 18 bit ADC, SigmaTel 3D
>>>> audio0 at esa0
>>>> xl0 at pci2 dev 6 function 0 "3Com 3c556 100Base-TX" rev 0x10: irq 10
>>>> address 00:04:76:49:81:72
>>>> ukphy0 at xl0 phy 0: Generic IEEE 802.3u media interface
>>>> ukphy0: OUI 0x00c000, model 0x0000, rev. 0
>>>> "3Com Mini-PCI V.90 Modem" rev 0x10 at pci2 dev 6 function 1 not   
>>>> configured
>>>> cbb0 at pci2 dev 15 function 0 "Texas Instruments PCI4451 CardBus"  rev
>>>> 0x00: irq 10
>>>> cbb1 at pci2 dev 15 function 1 "Texas Instruments PCI4451 CardBus"  rev
>>>> 0x00: irq 10
>>>> "Texas Instruments PCI4451 FireWire" rev 0x00 at pci2 dev 15  
>>>> function 2
>>>> not configured
>>>> cardslot0 at cbb0 slot 0 flags 0
>>>> cardbus0 at cardslot0: bus 3 device 0 cacheline 0x8, lattimer 0x20
>>>> pcmcia0 at cardslot0
>>>> cardslot1 at cbb1 slot 1 flags 0
>>>> cardbus1 at cardslot1: bus 4 device 0 cacheline 0x8, lattimer 0x20
>>>> pcmcia1 at cardslot1
>>>> pcib0 at pci0 dev 31 function 0 "Intel 82801BAM LPC" rev 0x03
>>>> pciide0 at pci0 dev 31 function 1 "Intel 82801BAM IDE" rev 0x03: DMA,
>>>> channel 0 wired to compatibility, channel 1 wired to compatibility
>>>> wd0 at pciide0 channel 0 drive 0: <IC25N020ATDA04-0>
>>>> wd0: 16-sector PIO, LBA, 19077MB, 39070080 sectors
>>>> atapiscsi0 at pciide0 channel 0 drive 1
>>>> scsibus0 at atapiscsi0: 2 targets
>>>> cd0 at scsibus0 targ 0 lun 0: <TEAC, CD-224E, 3.7C> SCSI0 5/cdrom   
>>>> removable
>>>> wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
>>>> cd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
>>>> pciide0: channel 1 ignored (disabled)
>>>> uhci0 at pci0 dev 31 function 2 "Intel 82801BA USB" rev 0x03: irq 10
>>>> usb0 at uhci0: USB revision 1.0
>>>> uhub0 at usb0
>>>> uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
>>>> uhub0: 2 ports with 2 removable, self powered
>>>> 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
>>>> pms0 at pckbc0 (aux slot)
>>>> pckbc0: using irq 12 for aux slot
>>>> wsmouse0 at pms0 mux 0
>>>> pcppi0 at isa0 port 0x61
>>>> midi0 at pcppi0: <PC speaker>
>>>> sysbeep0 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
>>>> fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
>>>> fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
>>>> biomask 4440 netmask 4440 ttymask 54c2
>>>> pctr: 686-class user-level performance counters enabled
>>>> mtrr: Pentium Pro MTRR support
>>>> dkcsum: wd0 matched BIOS disk 80
>>>> root on wd0a
>>>> rootdev=0x0 rrootdev=0x300 rawdev=0x302
>>>> umass0 at uhub0 port 1 configuration 1 interface 0
>>>> umass0: LaCie LaCie Hard Drive USB, rev 2.00/0.00, addr 2
>>>> umass0: using SCSI over Bulk-Only
>>>> scsibus1 at umass0: 2 targets
>>>> sd0 at scsibus1 targ 1 lun 0: <WDC, WD2500JB-00FUA0, 15.0> SCSI2
>>>> 0/direct fixed
>>>> sd0: 238475MB, 238475 cyl, 64 head, 32 sec, 512 bytes/sec, 
>>>> 488397168   sec
>>>> total
>>>>
>>>>
>>>> I would really appreciate any suggestions on how to solve this  
>>>> problem.
>>>>
>>>> Thanks,
>>>> Lawrence