Kenneth R Westerback wrote:
> On Wed, Dec 19, 2012 at 05:23:55PM -0300, Marcos Laufer wrote:
>   
>> This is a DL360G3 running OpenBSD 5.2 . I can't use a  "WD My Passport" 
>> USB disk, i get input/output error, here is what i got:
>>
>> # dmesg 
>> OpenBSD 5.2 (GENERIC) #0: Fri Dec 14 23:58:18 ART 2012
>>     root@<private>:/u/system/src/sys/arch/i386/compile/GENERIC
>> cpu0: Intel(R) Xeon(TM) CPU 3.06GHz ("GenuineIntel" 686-class) 3.07 GHz
>> cpu0: 
>> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID,xTPR
>> real mem  = 3220738048 (3071MB)
>> avail mem = 3157274624 (3011MB)
>> mainbus0 at root
>> bios0 at mainbus0: AT/286+ BIOS, date 12/31/99, BIOS32 rev. 0 @ 0xf0000, 
>> SMBIOS rev. 2.3 @ 0xec000 (42 entries)
>> bios0: vendor HP version "P31" date 01/28/2004
>> bios0: HP ProLiant DL360 G3
>> acpi0 at bios0: rev 0
>> acpi0: sleep states S0 S4 S5
>> acpi0: tables DSDT FACP APIC SPCR
>> acpi0: wakeup devices
>> acpitimer0 at acpi0: 3579545 Hz, 32 bits
>> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
>> cpu0 at mainbus0: apid 0 (boot processor)
>> cpu0: apic clock running at 133MHz
>> cpu at mainbus0: not configured
>> cpu at mainbus0: not configured
>> cpu at mainbus0: not configured
>> ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 11, 16 pins
>> ioapic1 at mainbus0: apid 3 pa 0xfec01000, version 11, 16 pins
>> ioapic2 at mainbus0: apid 4 pa 0xfec02000, version 11, 16 pins
>> ioapic3 at mainbus0: apid 5 pa 0xfec03000, version 11, 16 pins
>> acpiprt0 at acpi0: bus 0 (PCI0)
>> acpiprt1 at acpi0: bus 1 (PCI1)
>> acpiprt2 at acpi0: bus 4 (PCI2)
>> acpicpu0 at acpi0
>> acpitz0 at acpi0: critical temperature is 31 degC
>> bios0: ROM list: 0xc0000/0x8000 0xc8000/0x4000 0xee000/0x2000!
>> pci0 at mainbus0 bus 0: configuration mode 1 (bios)
>> pchb0 at pci0 dev 0 function 0 "ServerWorks CNB20-HE Host (GC-LE)" rev 0x33
>> pchb1 at pci0 dev 0 function 1 "ServerWorks CNB20-HE Host (GC-LE)" rev 0x00
>> pchb2 at pci0 dev 0 function 2 "ServerWorks CNB20-HE Host (GC-LE)" rev 0x00
>> pci1 at pchb2 bus 1
>> bge0 at pci1 dev 2 function 0 "Broadcom BCM5703X" rev 0x02, BCM5702/5703 A2 
>> (0x1002): apic 3 int 14, address 00:0f:20:96:8c:de
>> brgphy0 at bge0 phy 1: BCM5703 10/100/1000baseT PHY, rev. 2
>> vga1 at pci0 dev 3 function 0 "ATI Rage XL" rev 0x27
>> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
>> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
>> ciss0 at pci0 dev 4 function 0 "Compaq Smart Array 5i/532 rev.2" rev 0x01: 
>> apic 3 int 15
>> ciss0: 1 LD, HW rev 1, FW 2.36/2.36
>> scsibus0 at ciss0: 1 targets
>> sd0 at scsibus0 targ 0 lun 0: <COMPAQ, LOGICAL VOLUME, 2.36> SCSI0 0/direct 
>> fixed
>> sd0: 17359MB, 512 bytes/sector, 35553120 sectors
>> "Compaq iLO" rev 0x01 at pci0 dev 5 function 0 not configured
>> "Compaq iLO" rev 0x01 at pci0 dev 5 function 2 not configured
>> piixpm0 at pci0 dev 15 function 0 "ServerWorks CSB5" rev 0x93: polling
>> iic0 at piixpm0
>> spdmem0 at iic0 addr 0x50: 512MB DDR SDRAM registered ECC PC2100CL2.5
>> spdmem1 at iic0 addr 0x52: 512MB DDR SDRAM registered ECC PC2100CL2.5
>> spdmem2 at iic0 addr 0x54: 1GB DDR SDRAM registered ECC PC2100CL2.5
>> spdmem3 at iic0 addr 0x56: 1GB DDR SDRAM registered ECC PC2100CL2.5
>> pciide0 at pci0 dev 15 function 1 "ServerWorks CSB5 IDE" rev 0x93: DMA
>> atapiscsi0 at pciide0 channel 0 drive 0
>> scsibus1 at atapiscsi0: 2 targets
>> cd0 at scsibus1 targ 0 lun 0: <TEQC0 0, TV=28E=C0 0 0 0, R.4F> ATAPI 5/cdrom 
>> removable
>> cd0(pciide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 1
>> ohci0 at pci0 dev 15 function 2 "ServerWorks OSB4/CSB5 USB" rev 0x05: apic 2 
>> int 10, version 1.0, legacy support
>> pchb3 at pci0 dev 15 function 3 "ServerWorks CSB5 LPC" rev 0x00
>> pchb4 at pci0 dev 17 function 0 "ServerWorks CIOB-X2 PCIX" rev 0x05
>> pchb5 at pci0 dev 17 function 2 "ServerWorks CIOB-X2 PCIX" rev 0x05
>> pci2 at pchb5 bus 4
>> bge1 at pci2 dev 2 function 0 "Broadcom BCM5703X" rev 0x02, BCM5702/5703 A2 
>> (0x1002): apic 3 int 13, address 00:0f:20:96:8c:e1
>> brgphy1 at bge1 phy 1: BCM5703 10/100/1000baseT PHY, rev. 2
>> usb0 at ohci0: USB revision 1.0
>> uhub0 at usb0 "ServerWorks OHCI root hub" rev 1.00/1.00 addr 1
>> isa0 at mainbus0
>> 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
>> pms0 at pckbc0 (aux slot)
>> pckbc0: using irq 12 for aux slot
>> wsmouse0 at pms0 mux 0
>> pcppi0 at isa0 port 0x61
>> spkr0 at pcppi0
>> 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
>> mtrr: Pentium Pro MTRR support
>> umass0 at uhub0 port 4 configuration 1 interface 0 "Western Digital My 
>> Passport 0748" rev 2.10/10.15 addr 2
>> umass0: using SCSI over Bulk-Only
>> scsibus2 at umass0: 2 targets, initiator 0
>> sd1 at scsibus2 targ 1 lun 0: <WD, My Passport 0748, 1015> SCSI4 0/direct 
>> fixed
>> sd1: 953837MB, 512 bytes/sector, 1953458176 sectors
>> ses0 at scsibus2 targ 1 lun 1: <WD, SES Device, 1015> SCSI4 13/enclosure 
>> services fixed
>> ses0: unable to read enclosure configuration
>> vscsi0 at root
>> scsibus3 at vscsi0: 256 targets
>> softraid0 at root
>> scsibus4 at softraid0: 256 targets
>> root on sd0a (dbca6b23415fa5d6.a) swap on sd0b dump on sd0b
>>
>>
>> # 
>> # disklabel sd1
>> # /dev/rsd1c:
>> type: SCSI
>> disk: SCSI disk
>> label: My Passport 0748
>> duid: 227a89b830241469
>> flags:
>> bytes/sector: 512
>> sectors/track: 63
>> tracks/cylinder: 255
>> sectors/cylinder: 16065
>> cylinders: 121597
>> total sectors: 1953458176
>> boundstart: 64
>> boundend: 1953455805
>> drivedata: 0 
>>
>> 16 partitions:
>> #                size           offset  fstype [fsize bsize  cpg]
>>   a:       1953455680               64  4.2BSD   8192 65536    1 
>>   c:       1953458176                0  unused                   
>> un8:~{3}# fdisk sd1
>> Disk: sd1       geometry: 121597/255/63 [1953458176 Sectors]
>> Offset: 0       Signature: 0xAA55
>>             Starting         Ending         LBA Info:
>>  #: id      C   H   S -      C   H   S [       start:        size ]
>> -------------------------------------------------------------------------------
>>  0: 00      0   0   0 -      0   0   0 [           0:           0 ] unused   
>>    
>>  1: 00      0   0   0 -      0   0   0 [           0:           0 ] unused   
>>    
>>  2: 00      0   0   0 -      0   0   0 [           0:           0 ] unused   
>>    
>> *3: A6      0   1   2 - 121596 254  63 [          64:  1953455741 ] OpenBSD  
>>    
>>
>> # 
>> # mount /dev/sd1a /mnt/
>> # df -h|grep mnt
>> /dev/sd1a      928G    8.0K    881G     0%    /mnt
>>
>> # ls /mnt
>> ls: /mnt: Input/output error
>> # 
>> # umount /mnt
>> umount: /mnt: Input/output error
>> # 
>>
>>     
>
> 1) fsck it.
> 2) Try mounting it read-only. '-o ro'.
>
> .... Ken
>
>
>   



when trying to fsck i get millions of this (but mounting read-only works 
fine, below this numbers you can see the output):

CANNOT READ: BLK 695414784
CONTINUE? yes

THE FOLLOWING DISK SECTORS COULD NOT BE READ: 695414784, 695414785, 
695414786, 695414787, 695414788, 695414789, 695414790, 695414791, 
695414792, 695414793, 695414794, 695414795, 695414796, 695414797, 
695414798, 695414799, 695414800, 695414801, 695414802, 695414803, 
695414804, 695414805, 695414806, 695414807, 695414808, 695414809, 
695414810, 695414811, 695414812, 695414813, 695414814, 695414815, 
695414816, 695414817, 695414818, 695414819, 695414820, 695414821, 
695414822, 695414823, 695414824, 695414825, 695414826, 695414827, 
695414828, 695414829, 695414830, 695414831, 695414832, 695414833, 
695414834, 695414835, 695414836, 695414837, 695414838, 695414839, 
695414840, 695414841, 695414842, 695414843, 695414844, 695414845, 
695414846, 695414847, 695414848, 695414849, 695414850, 695414851, 
695414852, 695414853, 695414854, 695414855, 695414856, 695414857, 
695414858, 695414859, 695414860, 695414861, 695414862, 695414863, 
695414864, 695414865, 695414866, 695414867, 695414868, 695414869, 
695414870, 695414871, 695414872, 695414873, 695414874, 695414875, 
695414876, 695414877, 695414878, 695414879, 695414880, 695414881, 
695414882, 695414883, 695414884, 695414885, 695414886, 695414887, 
695414888, 695414889, 695414890, 695414891, 695414892, 695414893, 
695414894, 695414895, 695414896, 695414897, 695414898, 695414899, 
695414900, 695414901, 695414902, 695414903, 695414904, 695414905, 
695414906, 695414907, 695414908, 695414909, 695414910, 695414911,

CANNOT READ: BLK 695414912
CONTINUE? yes

THE FOLLOWING DISK SECTORS COULD NOT BE READ: 695414912, 695414913, 
695414914, 695414915, 695414916, 695414917, 695414918, 695414919, 
695414920, 695414921, 695414922, 695414923, 695414924, 695414925, 
695414926, 695414927, 695414928, 695414929, 695414930, 695414931, 
695414932, 695414933, 695414934, 695414935, 695414936, 695414937, 
695414938, 695414939, 695414940, 695414941, 695414942, 695414943, 
695414944, 695414945, 695414946, 695414947, 695414948, 695414949, 
695414950, 695414951, 695414952, 695414953, 695414954, 695414955, 
695414956, 695414957, 695414958, 695414959, 695414960, 695414961, 
695414962, 695414963, 695414964, 695414965, 695414966, 695414967, 
695414968, 695414969, 695414970, 695414971, 695414972, 695414973, 
695414974, 695414975, 695414976, 695414977, 695414978, 695414979, 
695414980, 695414981, 695414982, 695414983, 695414984, 695414985, 
695414986, 695414987, 695414988, 695414989, 695414990, 695414991, 
695414992, 695414993, 695414994, 695414995, 695414996, 695414997, 
695414998, 695414999, 695415000, 695415001, 695415002, 695415003, 
695415004, 695415005, 695415006, 695415007, 695415008, 695415009, 
695415010, 695415011, 695415012, 695415013, 695415014, 695415015, 
695415016, 695415017, 695415018, 695415019, 695415020, 695415021, 
695415022, 695415023, 695415024, 695415025, 695415026, 695415027, 
695415028, 695415029, 695415030, 695415031, 695415032, 695415033, 
695415034, 695415035, 695415036, 695415037, 695415038, 695415039,


But mounting read-only works:

server:~{14}# mount -o ro /dev/sd1a /mnt/
Dec 19 18:26:59 server /bsd: WARNING: /mnt was not properly unmounted
server:~{15}# df -h|grep mnt
/dev/sd1a      928G    8.0K    881G     0%    /mnt
server:~{16}#         

Reply via email to