USB and cam system bug?

Code:
# ll /dev/da*
[I]ls: No match.[/I]
Now, I plug into USB port my mobile phone(File Transfer mode).
Code:
# camcontrol devlist
[I]<SEMC Int.Memory 0000>             at scbus0 target 0 lun 0 (da0,pass0)
<SEMC Mem-Stick 0000>              at scbus1 target 0 lun 0 (da1,pass1)[/I]
Code:
# ll /dev/da*
[I]crw-r-----  1 root  operator  -   0, 147 Dec 14 20:37:26 2009 /dev/da0
crw-r-----  1 root  operator  -   0, 149 Dec 14 20:37:27 2009 /dev/da1[/I]
For mounting, there should be /dev/da1s1 listed, but it is not.

"Something" made it ready/loaded, as I did:
Code:
# camcontrol load da1
In /etc/rc.conf:
Code:
hald_enable="YES"
dbus_enable="YES"
Now in order to get /dev/da1s1 listed
Code:
# camcontrol rescan all
[I]Re-scan of bus 0 was successful
Re-scan of bus 1 was successful[/I]
Code:
# ll /dev/da*
[I]crw-r-----  1 root  operator  -   0, 147 Dec 14 20:37:26 2009 /dev/da0
crw-r-----  1 root  operator  -   0, 149 Dec 14 20:37:27 2009 /dev/da1[/I]
Still nothing...
So I do this:
Code:
# mount -t msdosfs -o -m=600,-M=700 /dev/da1s1 ~/mobile
[I]mount_msdosfs: /dev/da1s1: No such file or directory[/I]
Now watch this!
Excluding slice 1
Code:
# mount -t msdosfs -o -m=600,-M=700 /dev/da1 ~/mobile
[I]mount_msdosfs: /dev/da1: Invalid argument[/I]
Exactly command above, made /dev/da1s1 to appear
Code:
# ll /dev/da*
[I]crw-r-----  1 root  operator  -   0, 147 Dec 14 20:37:26 2009 /dev/da0
crw-r-----  1 root  operator  -   0, 149 Dec 14 20:37:27 2009 /dev/da1
[color="Red"]crw-r-----  1 root  operator  -   0, 150 Dec 14 20:46:21 2009 /dev/da1s1[/color][/I]
Now I can do:
Code:
# mount -t msdosfs -o -m=600,-M=700 /dev/da1s1 ~/mobile
And Voila!

Is this a bug?
 
Maybe explained by my post and others in the thread Nov 2008.
"Can't mount usb flash drive"
(desktop usage >> Multimedia subforum(s).)
 
I disagree with you.
Those post are nothing but a trial and error attempts, with no final solution.

I will be very simple. Concentrate on this:
When I plugin USB device, I want it to immidieatly show as:
Code:
# ll /dev/da*
[I]crw-r-----  1 root  operator  -   0, 147 Dec 14 20:37:26 2009 /dev/da0
[color="Red"]crw-r-----  1 root  operator  -   0, 150 Dec 14 20:46:21 2009 /dev/da0s1[/color]
crw-r-----  1 root  operator  -   0, 149 Dec 14 20:37:27 2009 /dev/da1
[color="Red"]crw-r-----  1 root  operator  -   0, 150 Dec 14 20:46:21 2009 /dev/da1s1[/color][/I]
insetad of current:
Code:
# ll /dev/da*
[I]crw-r-----  1 root  operator  -   0, 147 Dec 14 20:37:26 2009 /dev/da0
crw-r-----  1 root  operator  -   0, 149 Dec 14 20:37:27 2009 /dev/da1
[/I]
 
Could be a bug or a regression. Did it behave similarly on 7.x or you have only tried 8.0?

Also, I'm just curious. Why do you enable HAL if you want to manually mount the device? Isn't HAL usually used to auto-detect and auto-mount devices?
 
I use hal because other ports need it(ie: Xorg). Not because this exact case.

It sucks a big time, a fact, that you first have to intentionally cause an error, with attempt to mount device itself in order for device to be rescanned by OS and to properly show device's slices in /dev
 
I did not. ;)
Actually..., I've never done such a thing, so I have no experience with it.

If someone did, than post a link to it, so we could track a progress.
 
I booted without hald.
It didn't affect issue in any way, except that mouse worked in default console, but not when I started X.

I must notice that after a reebot, with usb memory leaved plugged in, all devices were properly showed with theirs slices in /dev/da*

This type of scan is obviously not initiated when usb is plugged in afterwords.
 
Seeker said:
No, I simply plug it in a usb slot on my midi case

Frontend ports by any chance? If so, try the ports on the back of the case also. I have seen some motherboards where the front / back usb ports worked differently.
 
That's why I'm asking the above question. These may all be connected to 1 root hub only. You may check the MoBo diagrams, but I thought plugging a pendrive or mouse in was easier.
 
In a back of a case are 4 usb slots.(directly on a MB)
In front of a case are 2 usb slots.(wired to MB)

usb mouse and this mem are always plugged in front case usb slots.
Now I've attached mem in a back of a case.

Nothing changed.
 
I tried it on a laptop and all is same.
Here are some sys messages

Code:
da1 at umass-sim1 bus 1 scbus1 target 0 lun 0
da1: <SEMC Mem-Stick 0000> Removable Direct Access SCSI-0 device
da1: 1.000MB/s transfers
da1: Attempt to query device size failed: NOT READY, Medium not present
And more when mounting
Code:
GEOM: da1: partition 1 does not start on a track boundary.
GEOM: da1: partition 1 does not end on a track boundary.
 
But this doesn't explain, why is all properly displayed/detected, if USB device is attached prior to booting.

If I attach USB device afterwards, then I have to initiate an error, in order to get a properly displayed/detected devices/slices
 
Seeker said:
But this doesn't explain, why is all properly displayed/detected, if USB device is attached prior to booting.

If I attach USB device afterwards, then I have to initiate an error, in order to get a properly displayed/detected devices/slices

Code:
...
da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
da0: <SEMC Int.Memory 0000> Removable Direct Access SCSI-0 device
da0: 1.000MB/s transfers
da0: Attempt to query device size failed: NOT READY, Medium not present
(probe1:umass-sim1:1:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe1:umass-sim1:1:0:0): CAM Status: SCSI Status Error
(probe1:umass-sim1:1:0:0): SCSI Status: Check Condition
(probe1:umass-sim1:1:0:0): UNIT ATTENTION asc:29,0
(probe1:umass-sim1:1:0:0): Power on, reset, or bus device reset occurred
(probe1:umass-sim1:1:0:0): Retrying Command (per Sense Data)
(probe1:umass-sim1:1:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe1:umass-sim1:1:0:0): CAM Status: SCSI Status Error
(probe1:umass-sim1:1:0:0): SCSI Status: Check Condition
(probe1:umass-sim1:1:0:0): NOT READY asc:3a,0
(probe1:umass-sim1:1:0:0): Medium not present
(probe1:umass-sim1:1:0:0): Unretryable error
da1 at umass-sim1 bus 1 scbus1 target 0 lun 0
da1: <SEMC Mem-Stick 0000> Removable Direct Access SCSI-0 device
da1: 1.000MB/s transfers
da1: Attempt to query device size failed: NOT READY, Medium not present
can't re-use a leaf (minimum_cmd_size)!
ugen4.2: <Sony Ericsson> at usbus4 (disconnected)
umass0: at uhub4, port 2, addr 2 (disconnected)
(da0:umass-sim0:0:0:0): lost device
(da0:umass-sim0:0:0:0): removing device entry
umass1: at uhub4, port 2, addr 2 (disconnected)
(da1:umass-sim1:1:0:0): lost device
(da1:umass-sim1:1:0:0): removing device entry

What does this tell you?
Any indication to this issue?
 
Back
Top