*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-18-2010, 10:15 PM
|
#1
|
|
LQ Newbie
Registered: Jan 2009
Posts: 8
Rep:
|
Mount Android phone in FreeBSD [Solution]
I was having a problem recently mounting my HTC G1 Android phone in FreeBSD as the device nodes for the slices were not being created. The solution was found in a post on the FreeBSD mailing lists. The solution as stated in the post is to use dd so "so devfs looks at it (actually the GEOM code, I think), detects the new partitons, and creates nodes in /dev.". My phone shows up as da1 on my system (as I have another SCSI disk). The device nodes were created after issuing the following:
Code:
dd if=/dev/null of=/dev/da1 count=0
Note that the count equals zero to prevent actually writing anything.
Last edited by rndm_luser; 02-18-2010 at 10:18 PM.
Reason: Clarification
|
|
|
|
03-21-2010, 09:06 AM
|
#2
|
|
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279
|
Nice solution. Thanks.
|
|
|
|
06-19-2010, 01:48 PM
|
#3
|
|
LQ Newbie
Registered: Jun 2010
Location: Seattle, WA
Distribution: FreeBSD 8.2
Posts: 4
Rep:
|
So I'm running FreeBSD 8 on an eee 901, and I have the T-Mobile myTouch 3g. I saw the same problem (no device nodes created for da0, but the device is recognized and receives power). Anyway, I tried the same command noted above, but I receive the message "dd: /dev/da0: Device not configured". I know the USB stack was re-written for 8.0, but I don't see how that would affect this.
Does anybody have any idea what is wrong, or what I should try? Has anybody else managed to mount an android device under FreeBSD 8? Thanks for any help!
|
|
|
|
06-24-2010, 07:46 PM
|
#4
|
|
LQ Newbie
Registered: Jun 2010
Posts: 2
Rep:
|
Quote:
Originally Posted by rpavery
So I'm running FreeBSD 8 on an eee 901, and I have the T-Mobile myTouch 3g. I saw the same problem (no device nodes created for da0, but the device is recognized and receives power). Anyway, I tried the same command noted above, but I receive the message "dd: /dev/da0: Device not configured". I know the USB stack was re-written for 8.0, but I don't see how that would affect this.
Does anybody have any idea what is wrong, or what I should try? Has anybody else managed to mount an android device under FreeBSD 8? Thanks for any help!
|
I had a similar problem with my HTC Droid Eris (the "device not configured" error)-- then I realized my phone was set to 'charge only' and not in disk drive mode. Make sure the proper mode is selected and then run dd with the given conditional, this will cause the proper slice to be recognized (s1). then mount_msdosfs /dev/da0s1 /mountpoint and you should be good to go.
I accomplished this while running FreeBSD 8.0.
|
|
|
|
06-26-2010, 08:12 PM
|
#5
|
|
LQ Newbie
Registered: Jun 2010
Location: Seattle, WA
Distribution: FreeBSD 8.2
Posts: 4
Rep:
|
Hi again,
I tried again on my desktop and it worked this time. Thanks Stuckpig, I was pretty sure I checked that it wasn't just in charge mode, but perhaps I messed up the first time. Anyway, it works now. Now if I could only find a way to get HAL/Dbus to rescan after making the device nodes so that it would be automounted rather than having to manually mount as root or with sudo.
|
|
|
|
06-26-2010, 11:17 PM
|
#6
|
|
LQ Newbie
Registered: Jun 2010
Posts: 2
Rep:
|
Quote:
Originally Posted by rpavery
Hi again,
I tried again on my desktop and it worked this time. Thanks Stuckpig, I was pretty sure I checked that it wasn't just in charge mode, but perhaps I messed up the first time. Anyway, it works now. Now if I could only find a way to get HAL/Dbus to rescan after making the device nodes so that it would be automounted rather than having to manually mount as root or with sudo.
|
I'm about to build the volume manager plugin for thunar (thunar-volman) which accomplishes just that. It's specific to the xfce4 window manager though-- if you want to do it with the base FreeBSD system, check out 'amd' (the FreeBSD automount daemon).
|
|
|
|
06-27-2010, 11:23 PM
|
#7
|
|
LQ Newbie
Registered: Jun 2010
Location: Seattle, WA
Distribution: FreeBSD 8.2
Posts: 4
Rep:
|
Hey again!
I have thunar-volman installed, but it doesn't seem to re-scan the bus since it was already scanned when the phone was plugged in (but only charging). I've searched online for a way to tell it to rescan, but I didn't find a solution (I did try various things related to hal, dbus, and even camcontrol). I wrote a quick shell script to automatically create the device nodes and mount it (as root using sudo), but then I can't write files as a regular user. I could also change my script to run automatically using devd, which I might get around to next weekend, but this still won't solve the permissions issue unless I find a way to get hald/dbus to make Thunar aware of the new device after creating the /dev nodes.
I looked into amd as well, but since I already use Thunar and XFCE, I wanted to stick with those. I know the thunar-volman works already because anything else I plug in shows up in the list in the left hand pane of Thunar.
Thanks again!
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:04 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|