Problem mounting a USB hard drive

Hristo Iliev hk.iliev at gmail.com
Mon Dec 4 03:20:24 PST 2006


Hello FreeBSD users!

Briefly, I am having problems mounting my 2.5" USB hard drive. I am running
6.1-RELEASE FreeBSD on a Samsung Sens 820 notebook (I attach the "dmesg" and
the relavent extracts from /var/log/messages at the end of my post) and I
have several external USB storage devices that I normally attach to my PC
(Sony DSC digital camera (with 123MB flash card), 80Gb 3.5" Western Digital
hard drive, 32 Mb flash drive and 74Gb 2.5" Samsung hard drive). The first 3
of them mount without any problems: the digital camera (using #mount_msdosfs
/dev/da0s1 /mnt), the 80Gb 3.5" hard drive which has two ntfs partitions
(using mount_ntfs /dev/da0s2 /mnt/s2, etc) as well as the flash drive
(#mount_msdosfs ...). But mounting the 2.5" 74Gb USB hard drive fails (one
NTFS partition). In fact it can not be even synchronized with the system. I
tried rebuilding the kernel with the option

options         SCSI_DELAY=10001

but it didn't help.

Here are the extracts from the system messages.

From "dmesg":

umass0: VIA Technologies Inc. USB 2.0 IDE Bridge, rev 2.00/0.03, addr 2
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <SAMSUNG MP0804H UE10> Fixed Direct Access SCSI-2 device
da0: 1.000MB/s transfers
da0: 76351MB (156368016 512 byte sectors: 255H 63S/T 9733C)
umass0: Invalid CSW: tag 7 should be 8
(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x10, scsi
status == 0x0
Opened disk da0 -> 5
Opened disk da0 -> 5
Opened disk da0 -> 5
Opened disk da0 -> 5
Opened disk da0 -> 5

List of the devices:
hki# ls -alsFG /dev/ | less
total 4
1 dr-xr-xr-x   4 root  wheel          512  1 Яну  1970 ./
2 drwxr-xr-x  20 root  wheel          512  4 Дек 10:51 ../
0 crw-r-----   1 root  operator    0, 106  4 Дек 10:52 acd0
0 crw-r-----   1 root  operator    0,  97  4 Дек 10:52 ad0
0 crw-r-----   1 root  operator    0,  98  4 Дек 10:52 ad0s1
0 crw-r-----   1 root  operator    0,  99  4 Дек 12:52 ad0s1a
0 crw-r-----   1 root  operator    0, 100  4 Дек 10:52 ad0s1b
0 crw-r-----   1 root  operator    0, 101  4 Дек 10:52 ad0s1c
0 crw-r-----   1 root  operator    0, 102  4 Дек 12:52 ad0s1d
0 crw-r-----   1 root  operator    0, 103  4 Дек 12:52 ad0s1e
0 crw-r-----   1 root  operator    0, 104  4 Дек 12:52 ad0s1f
0 crw-r-----   1 root  operator    0, 105  4 Дек 12:52 ad0s1g
0 crw-------   1 root  wheel       0,  30  4 Дек 10:52 agpgart
0 crw-------   1 root  operator    0,  29  4 Дек 10:52 ata
0 crw-------   1 root  wheel       0,  52  4 Дек 10:52 atkbd0
0 crw-rw-rw-   1 root  wheel       0,  38  4 Дек 10:52 audio0.0
0 crw-rw-rw-   1 root  wheel       0,  41  4 Дек 10:52 audio0.1
0 crw-rw-rw-   1 root  wheel       0,  44  4 Дек 10:52 audio0.2
0 crw-rw-rw-   1 root  wheel       0,  47  4 Дек 10:52 audio0.3
0 crw-rw-rw-   1 root  wheel       0,  50  4 Дек 10:52 audio0.4
0 crw-------   1 root  wheel       0, 113  4 Дек 10:52 bpf0
0 crw-rw-rw-   1 root  wheel       0,  55  4 Дек 10:52 bpsm0
0 crw-------   1 itso  wheel       0,  11  4 Дек 12:18 console
0 crw-------   1 root  wheel       0,  77  4 Дек 10:52 consolectl
0 crw-rw-rw-   1 root  wheel       0,  12  4 Дек 10:52 ctty
0 crw-rw----   1 uucp  dialer      0,  81  4 Дек 10:52 cuad0
0 crw-rw----   1 uucp  dialer      0,  82  4 Дек 10:52 cuad0.init
0 crw-rw----   1 uucp  dialer      0,  83  4 Дек 10:52 cuad0.lock
0 crw-rw----   1 uucp  dialer      0,  87  4 Дек 10:52 cuad1
0 crw-rw----   1 uucp  dialer      0,  88  4 Дек 10:52 cuad1.init
0 crw-rw----   1 uucp  dialer      0,  89  4 Дек 10:52 cuad1.lock
0 crw-r-----   1 root  operator    0, 123  4 Дек 10:52 da0
0 crw-r-----   1 root  operator    0, 124  4 Дек 10:52 da0s1
0 crw-------   1 root  wheel       0,   6  4 Дек 10:52 devctl
0 cr--------   1 root  wheel       0,  96  4 Дек 10:52 devstat
...


The result of a (lame) attempt to mount the hard drive:

hki# mount_ntfs /dev/da0s1 /mnt/
mount_ntfs: /dev/da0s1: Input/output error


I hope that somebody can suggest a fix,

Hristo Iliev

P.S. The whole "dmesg":

Copyright (c) 1992-2006 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 6.1-RELEASE #0: Sun May  7 04:32:43 UTC 2006
    root at opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel Pentium III (501.14-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x681  Stepping = 1

Features=0x387f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,PN,MMX,FXSR,SSE>
real memory  = 268435456 (256 MB)
avail memory = 253198336 (241 MB)
kbd1 at kbdmux0
cpu0 on motherboard
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> pcibus 0 on motherboard
pir0: <PCI Interrupt Routing Table: 8 Entries> on motherboard
pci0: <PCI bus> on pcib0
agp0: <Intel 82443BX (440 BX) host to PCI bridge> mem 0xf8000000-0xfbffffff
at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1000-0x100f at device 7.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0x1020-0x103f irq 5 at
device 7.2 on pci0
uhci0: [GIANT-LOCKED]
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pci0: <bridge> at device 7.3 (no driver attached)
cbb0: <TI1251B PCI-CardBus Bridge> mem 0x80000000-0x80000fff irq 11 at
device 8.0 on pci0
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
cbb1: <TI1251B PCI-CardBus Bridge> mem 0x80001000-0x80001fff irq 11 at
device 8.1 on pci0
cardbus1: <CardBus bus> on cbb1
pccard1: <16-bit PCCard bus> on cbb1
pcm0: <ESS Technology Maestro-2E> port 0x1400-0x14ff irq 5 at device 12.0 on
pci0
pcm0: <SigmaTel STAC9721/23 AC97 Codec>
pci0: <simple comms> at device 13.0 (no driver attached)
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc0000-0xcffff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse, device ID 3
fdc0: <Enhanced floppy controller> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on
isa0
fdc0: [FAST]
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: <PNP0c02> can't assign resources (memory)
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0c02> can't assign resources (port)
unknown: <PNP0401> can't assign resources (port)
unknown: <NSC6001> can't assign resources (port)
psmcpnp0: irq resource info is missing; assuming irq 12
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0700> can't assign resources (port)
umass0: VIA Technologies Inc. USB 2.0 IDE Bridge, rev 2.00/0.03, addr 2
Timecounter "TSC" frequency 501138591 Hz quality 800
Timecounters tick every 1.000 msec
ep0: <3Com Megahertz 574B> at port 0x100-0x11f irq 11 function 0 config 1 on
pccard1
ep0: Ethernet address: 00:50:da:cf:56:a9
ad0: 38204MB <SAMSUNG MP0402H UC100-21> at ata0-master UDMA33
acd0: CDROM <SAMSUNG CD-ROM SN-124/TM21> at ata1-master PIO4
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <SAMSUNG MP0804H UE10> Fixed Direct Access SCSI-2 device
da0: 1.000MB/s transfers
da0: 76351MB (156368016 512 byte sectors: 255H 63S/T 9733C)
umass0: Invalid CSW: tag 7 should be 8
(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x10, scsi
status == 0x0
Opened disk da0 -> 5
Opened disk da0 -> 5
Opened disk da0 -> 5
Opened disk da0 -> 5
Opened disk da0 -> 5
Trying to mount root from ufs:/dev/ad0s1a
umass0: at uhub0 port 2 (addr 2) disconnected
(da0:umass-sim0:0:0:0): lost device
(da0:umass-sim0:0:0:0): removing device entry
umass0: detached
umass0: VIA Technologies Inc. USB 2.0 IDE Bridge, rev 2.00/0.03, addr 2
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, STALLED
umass0: BBB reset failed, STALLED
umass0: BBB bulk-in clear stall failed, STALLED
umass0: BBB bulk-out clear stall failed, STALLED
umass0: BBB reset failed, STALLED
umass0: BBB bulk-in clear stall failed, STALLED
umass0: BBB bulk-out clear stall failed, STALLED
umass0: BBB reset failed, STALLED
umass0: BBB bulk-in clear stall failed, STALLED
umass0: BBB bulk-out clear stall failed, STALLED
umass0: BBB reset failed, STALLED
umass0: BBB bulk-in clear stall failed, STALLED
umass0: BBB bulk-out clear stall failed, STALLED
umass0: at uhub0 port 1 (addr 2) disconnected
umass0: detached
umass0: VIA Technologies Inc. USB 2.0 IDE Bridge, rev 2.00/0.03, addr 2
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <SAMSUNG MP0804H UE10> Fixed Direct Access SCSI-2 device
da0: 1.000MB/s transfers
da0: 76351MB (156368016 512 byte sectors: 255H 63S/T 9733C)
umass0: Invalid CSW: tag 7 should be 8
(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x10, scsi
status == 0x0
Opened disk da0 -> 5
Opened disk da0 -> 5
Opened disk da0 -> 5
Opened disk da0 -> 5
Opened disk da0 -> 5
Opened disk da0 -> 5
Opened disk da0 -> 5


More information about the freebsd-questions mailing list