maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Thread for problems getting USB hostmode working. (https://talk.maemo.org/showthread.php?t=65570)

casper27 2010-11-13 16:42

Thread for problems getting USB hostmode working.
 
Post all problems with getting USB Hostmost working on different USB peripherals here.
It is Beta software but has been proved to work by numerous people on here so its mostly a case by case problem.
The developers are getting mighty P*ssed with winey posts and duplicate questions on the other thread.

werebug 2010-11-13 19:24

Re: Thread for problems getting USB hostmode working.
 
Is it possible to use this on Ubuntu

So I can use keyboard and mouse

esthreel 2010-11-13 19:30

Re: Thread for problems getting USB hostmode working.
 
i am having problem with external HDD, flash and mouse worked great. So the drive is 3.5 inch and has power supply, the size is 1TB and it is formatted as NTFS. I know i have to open terminal sudo gainroot and then modprobe ntfs. When I have to do this? after I opn hen? Thanks.

MohammadAG 2010-11-13 19:32

Re: Thread for problems getting USB hostmode working.
 
Before you mount, however you might need extra packages (that may/may not be available in maemo) for write support.

esthreel 2010-11-13 20:03

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by MohammadAG (Post 872584)
Before you mount, however you might need extra packages (that may/may not be available in maemo) for write support.

I got this error.
http://www.ipix.lt/images/11686382.png

MohammadAG 2010-11-13 20:12

Re: Thread for problems getting USB hostmode working.
 
I don't have any NTFS drives, so I can't test, but it should be possible to mount /dev/sda1 /mnt in terminal and open it in filebox

esthreel 2010-11-13 20:20

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by MohammadAG (Post 872614)
I don't have any NTFS drives, so I can't test, but it should be possible to mount /dev/sda1 /mnt in terminal and open it in filebox

So the default file manager will not see any drives that are NTFS?

MohammadAG 2010-11-13 20:30

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by esthreel (Post 872618)
So the default file manager will not see any drives that are NTFS?

Code:

[ 8916.612762] usb 1-1: new high speed USB device using musb_hdrc and address 4
[ 8916.791564] usb 1-1: default language 0x0409
[ 8916.842742] usb 1-1: uevent
[ 8916.842864] usb 1-1: usb_probe_device
[ 8916.842895] usb 1-1: configuration #1 chosen from 1 choice
[ 8916.845275] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
[ 8916.845428] usb 1-1:1.0: uevent
[ 8916.845581] libusual 1-1:1.0: usb_probe_interface
[ 8916.845611] libusual 1-1:1.0: usb_probe_interface - got id
[ 8916.845672] usb-storage 1-1:1.0: usb_probe_interface
[ 8916.845703] usb-storage 1-1:1.0: usb_probe_interface - got id
[ 8916.851623] scsi2 : SCSI emulation for USB Mass Storage devices
[ 8916.857360] usb-storage: device found at 4
[ 8916.857391] usb-storage: waiting for device to settle before scanning
[ 8916.858276] /home/builder1/maemo-fremantle-armel-extras-devel/work/kernel-power-2.6.28/drivers/usb/core/inode.c: creating file '004'
[ 8916.858581] usb 1-1: New USB device found, idVendor=059f, idProduct=1013
[ 8916.858612] usb 1-1: New USB device strings: Mfr=10, Product=11, SerialNumber=12
[ 8916.858612] usb 1-1: Product: LaCie Hard Disk
[ 8916.858642] usb 1-1: Manufacturer: LaCie
[ 8916.858642] usb 1-1: SerialNumber: 2007102500100BB3
[ 8916.858673] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[ 8916.858703] hub 1-0:1.0: port 1 enable change, status 00000503
[ 8920.256958] twl4030_keypad twl4030_keypad: Spurious key event 4-2
[ 8920.500457] twl4030_keypad twl4030_keypad: Spurious key event 4-2
[ 8921.856048] usb-storage: device scan complete
[ 8921.857299] scsi 2:0:0:0: Direct-Access    ST350082 0AS                  PQ: 0 ANSI: 2 CCS
[ 8921.870544] sd 2:0:0:0: [sda] 1953546336 512-byte hardware sectors: (1.00 TB/931 GiB)
[ 8921.871276] sd 2:0:0:0: [sda] Write Protect is off
[ 8921.871307] sd 2:0:0:0: [sda] Mode Sense: 00 38 00 00
[ 8921.871307] sd 2:0:0:0: [sda] Assuming drive cache: write through
[ 8921.872131] sd 2:0:0:0: [sda] 1953546336 512-byte hardware sectors: (1.00 TB/931 GiB)
[ 8921.872863] sd 2:0:0:0: [sda] Write Protect is off
[ 8921.872863] sd 2:0:0:0: [sda] Mode Sense: 00 38 00 00
[ 8921.872894] sd 2:0:0:0: [sda] Assuming drive cache: write through
[ 8921.872924]  sda: sda1
[ 8921.917846] sd 2:0:0:0: [sda] Attached SCSI disk
/home/user #


If you mount under /media, it should.
Code:

mkdir -p /media/ntfs
mount /dev/sda1 /media/ntfs


esthreel 2010-11-13 21:00

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by MohammadAG (Post 872630)
If you mount under /media, it should.
Code:

mkdir -p /media/ntfs
mount /dev/sda1 /media/ntfs


It worked all like a charm, thanks.

http://www.ipix.lt/images/42508838.png

But the problem is that when I open it from list with default manager i see text (no files), it sees the disk as empty. If i go to filebox I see them all. The bigger problem is that when i try to open a file I get for jpg / pdf - file format not supported, for music / video - file not found. Any ideas?

P.S. http://talk.maemo.org/archive/index.php/t-17811.html Any one looked on this?

Larswad 2010-11-13 22:28

Re: Thread for problems getting USB hostmode working.
 
@esthreel: This is basic mounting knowledge for linux. You have to give rights to the user (since you run the filemanager as 'user').
you first need the id of your user and users group:

to find out, enter:

Code:

id user
and you will get the user's id. (You will probably get 29999 for both 'user' id and the 'users' group).

now, as root:

Code:

mount -t ntfs /dev/sda1 /media/ntfs -o uid=29999,gid=29999,utf8,dmask=027,fmask=137
Replace the 29999 with the id you got, if it was different of course.
Now, you should be able to access your files from the file manager.
Good luck.


All times are GMT. The time now is 08:57.

vBulletin® Version 3.8.8