Mounting USB drives and PCI USB and ieee1394 drives

Alexander P. Goldhammer alex.goldhammer at verizon.net
Wed Nov 5 05:51:12 PST 2003


Toni,

Thanks for your help.

"camcontrol stop 0:0:0:0" and "camcontrol eject 0:0:0:0" give me "Unit
stopped successfully"  When I unplug the USB cable, FreeBSD recognizes
the fact and gives me:
#umass0: at hub0 port 1 (addr 2) disconnected
(da0:umass-sim0:0:0): lost device
umass0: detached

When I plug the USB cable back in I am back to the same ol' problem:
umass0: In system Design USB Storage Adapter, rev 2.00/11.05, addr 2
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT
over and over again then
(da0:umass-sim0:0:0:0): got CAM status 0x4
(da0:umass-sim0:0:0:0): fatal error, failed to attach to device
(da0:umass-sim0:0:0:0): lost device
(da0:umass-sim0:0:0:0): removing device entry

I was reading through the rest of the man page for camcontrol but it is
not clear to me that there is another command in camcontrol.

Any ideas?

-Alex

On Sat, Nov 01, 2003 at 02:50:13PM -0500, Alexander P. Goldhammer wrote:

i am really no scsi, usb, firewire specialist but i think for some of
your questions i can give an answer :-)

> (da0:umass-sim0:0:0:0): Read(6)/write(6) not supported, increasing the

> minimum_cmd_size to 10.

this is normal. 4.8 first tried 6 byte scsi commands. as the messages
says, for this device 10 byte scsi commands are required. the default
changed in 4.9 from 6 to 10 bytes for usb devices.

> #umass0: at hub0 port 1 (addr 2) disconnected
> (da0:umass-sim0:0:0): lost device
> (da0:umass-sim0:0:0): removing device entry
> umass0: detached
> 
> My intuition tells me this is not good.

you should stop the drive before removing it (camcontrol stop 0:0:0).
see camcontrol(8).

> (da0:umass-sim0:0:0:0): got CAM status 0x4
> (da0:umass-sim0:0:0:0): fatal error, failed to attach to device
> (da0:umass-sim0:0:0:0): lost device
> (da0:umass-sim0:0:0:0): removing device entry
> 
> Does anyone have any ideas on how to address this/fix this?

when you stop the device (camcontrol), then remove it, reattaching
should work.

> b) If/when I plug it a USB/Firewire drive into this card how is the 
> "device name" specified?  Or is there a command to figure this out?

man 8 camcontrol

> c) Is msdos the correct "filesystem" designation?

if you share your data between windows and freebsd msdosfs is the right
fs. but be aware i had problems with huge partitions and msdosfs see:

http://lists.freebsd.org/mailman/htdig/freebsd-stable/2003-May/000950.ht
ml
http://lists.freebsd.org/mailman/htdig/freebsd-stable/2003-October/00470
1.html

hth
toni
-- 
Kann man etwas nicht verstehen, dann urteile man | toni at stderror dot
at 
lieber gar nicht, als dass man verurteile.       | Toni Schmidbauer
-- Rudolf Steiner                                |



More information about the freebsd-questions mailing list