DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 28th March 2011
xmorg xmorg is offline
Real Name: Tim Cooper
Fdisk Soldier
 
Join Date: Sep 2010
Location: San Diego
Posts: 56
Thanked 0 Times in 0 Posts
Default Cant mount USB phones?

Im having a problem mounting the micro-usb cards inside of 2 phones from the phones.

If I remove the card from the phone and insert it into a usb card reader it mounts perfectly, however when I plug in the phone i get for example

da0: <RIM Blackberry SD 003> Removable Direct Access SCSI-4 device
da0: 40.000/MB/s transfers
da0: Attempt to query device size failed: NOT READY, Medium not resent

This "NOT READY" is because when you plug in the phone, you have to manually tell the phone that you want it to function as a usb mass disk. so the /dev/da0 is created and not the /dev/da0s1

so once you tell it that you want it to function as a disk, how do you create the /dev/da0s1?

I have tried
sudo /etc/rc.d/devfs restart ---> nothing
sudo camcontrol rescan all --> nothing

I almost seem to remember doing this before, in fact i know i did it before on my driod phone, i have the roms to proove it However, im now having this problem with the driod as well (different phone different microsd card)

FreeBSD 8.1-RELEASE
Reply With Quote
  #2   (View Single Post)  
Old 29th March 2011
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,067
Thanked 198 Times in 156 Posts
Default

Can you read the device at all? A very quick & easy way to tell if you can access the device at all is # less -f /dev/da0

/dev/da0s1 only exists if there is a fdisk partition table on the disk. What does # fdisk /dev/da0 tell you?
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #3   (View Single Post)  
Old 31st March 2011
lumiwa lumiwa is offline
Package Pilot
 
Join Date: May 2008
Posts: 145
Thanked 4 Times in 3 Posts
Default

Quote:
Originally Posted by xmorg View Post
Im having a problem mounting the micro-usb cards inside of 2 phones from the phones.

If I remove the card from the phone and insert it into a usb card reader it mounts perfectly, however when I plug in the phone i get for example

da0: <RIM Blackberry SD 003> Removable Direct Access SCSI-4 device
da0: 40.000/MB/s transfers
da0: Attempt to query device size failed: NOT READY, Medium not resent

This "NOT READY" is because when you plug in the phone, you have to manually tell the phone that you want it to function as a usb mass disk. so the /dev/da0 is created and not the /dev/da0s1

so once you tell it that you want it to function as a disk, how do you create the /dev/da0s1?

I have tried
sudo /etc/rc.d/devfs restart ---> nothing
sudo camcontrol rescan all --> nothing

I almost seem to remember doing this before, in fact i know i did it before on my driod phone, i have the roms to proove it However, im now having this problem with the driod as well (different phone different microsd card)

FreeBSD 8.1-RELEASE
Try:
true > /dev/da0

and after that:
mount -t msdosfs /dev/da0 /mnt

or something like this...
Reply With Quote
  #4   (View Single Post)  
Old 31st March 2011
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

And what point would there be in doing that, exactly?

Seems to me that the device is quirky and FreeBSD isn't having a lot of luck with it, any changes in that area of the tree? try a later version.
Reply With Quote
  #5   (View Single Post)  
Old 31st March 2011
lumiwa lumiwa is offline
Package Pilot
 
Join Date: May 2008
Posts: 145
Thanked 4 Times in 3 Posts
Default

My phone is /dev/da4s1 and if I don't do true > /dev/da4s1 before mount, mount doesn't work.
Reply With Quote
  #6   (View Single Post)  
Old 31st March 2011
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

That is very odd, wouldn't it be better to report the problem so it can be fixed properly?
Reply With Quote
  #7   (View Single Post)  
Old 1st April 2011
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,067
Thanked 198 Times in 156 Posts
Default

That probably has to with "devfs magic", and the device partitions not being probed correctly until the device is accessed.

But yeah, it's a bug.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #8   (View Single Post)  
Old 1st April 2011
jb_daefo jb_daefo is offline
Package Pilot
 
Join Date: May 2008
Posts: 196
Thanked 5 Times in 5 Posts
Default

May or may not be fixed in the new usb(3.0) stack in v9 (Current).
Reply With Quote
  #9   (View Single Post)  
Old 3rd April 2011
xmorg xmorg is offline
Real Name: Tim Cooper
Fdisk Soldier
 
Join Date: Sep 2010
Location: San Diego
Posts: 56
Thanked 0 Times in 0 Posts
Default

Thanks all for the reply, ill try using true.
Yea, it acts like a card reader with no disk inserted, however, on both phones you cant tell the phone before hand that you want the memory card to act as a "USB disk", only after inserting the USB cable.
Reply With Quote
Reply

Tags
blackberry, mount, msdosfs, umass

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount img guitarscn OpenBSD Packages and Ports 5 8th November 2010 04:45 PM
how do i mount usb wokko NetBSD Installation and Upgrading 4 15th May 2010 09:48 AM
mount ufs from linux kanonmat FreeBSD General 8 2nd December 2008 06:13 AM


All times are GMT. The time now is 03:12 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick