maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N800 (https://talk.maemo.org/forumdisplay.php?f=25)
-   -   External HD (https://talk.maemo.org/showthread.php?t=14193)

Beakman 2008-01-01 15:25

External HD
 
I've an external 2.5" HD that can run without a PC, when I plug it into the N800, is there a way that I can access FROM the Tablet?

Did that make sense?

InfinityDevil 2008-01-01 18:11

Re: External HD
 
No you can't use USB devices attached to the tablet.

kudos1uk 2008-01-01 18:23

Re: External HD
 
Quote:

Originally Posted by InfinityDevil (Post 118878)
No you can't use USB devices attached to the tablet.

Yes you can with OS2008, I use my camera and flash drive, you need to put it into host mode in terminal.

To enable host mode:
$ echo host> /sys/devices/platform/musb_hdrc/mode

To set N800 back to OTG mode:
$ echo otg > /sys/devices/platform/musb_hdrc/mode

http://www.internettablettalk.com/fo...ead.php?t=4177

I have no idea if your HDD will work or not but if it does not use much power it might, give it a go.

wv9k 2008-01-01 19:00

Re: External HD
 
I made up an OTG cable by soldering together pins 4 and 5 and tried it with my 40G USB drive enclosure and it worked just fine, but it did seem slow, but not horribly so :-). Takes a while to load up in file manager, but it detected and DID open the drive just fine.

InfinityDevil 2008-01-01 19:30

Re: External HD
 
You can? Interesting. I guess I'll need a gender changer cable to take that for a spin. I should have one of those around somewhere.

hordeman 2008-01-01 21:41

Re: External HD
 
yes, you can! i've even used a usb keyboard and there is a thread about using a gamepad. research b4 u post. ;)

Beakman 2008-01-02 00:17

Re: External HD
 
Quote:

Originally Posted by hordeman (Post 118985)
yes, you can! i've even used a usb keyboard and there is a thread about using a gamepad. research b4 u post. ;)

I ALWAYS do, but obviously used the wrong search terms.

Beakman 2008-01-02 00:18

Re: External HD
 
Quote:

Originally Posted by kudos1uk (Post 118881)
Yes you can with OS2008, I use my camera and flash drive, you need to put it into host mode in terminal.

To enable host mode:
$ echo host> /sys/devices/platform/musb_hdrc/mode

To set N800 back to OTG mode:
$ echo otg > /sys/devices/platform/musb_hdrc/mode

http://www.internettablettalk.com/fo...ead.php?t=4177

I have no idea if your HDD will work or not but if it does not use much power it might, give it a go.

I'm getting an "cannot create /sys/devices/platform/musb_hdrc/mode".
Permission Denied.
Do I need root?
When I try to gainroot I need a p/w which I ain't got.
Did I miss something?

Mara 2008-01-02 00:24

Re: External HD
 
Quote:

Originally Posted by Beakman (Post 118816)
I've an external 2.5" HD that can run without a PC, when I plug it into the N800, is there a way that I can access FROM the Tablet?

Did that make sense?

It should work with proper cable/adapter and N8x0 in Host mode. (Assuming the HD does not take too much current from the USB port.)

You should check what format the external HD is formatted? If it is FAT or FAT32 it should work, but if it is NTFS you may be out of luck.

Beakman 2008-01-02 00:48

Re: External HD
 
Quote:

Originally Posted by Mara (Post 119053)
It should work with proper cable/adapter and N8x0 in Host mode. (Assuming the HD does not take too much current from the USB port.)

You should check what format the external HD is formatted? If it is FAT or FAT32 it should work, but if it is NTFS you may be out of luck.

Fat32. See above about my inability to get into host mode.

The HD is powered by a battery pack, so I'm not worried about the draw - needless to say

**************** edit *****************

Am in as root, and host, plug in and get the infamous "unrecognized ...", then after a few I get "Unable to Connect - No file system available".

I can read the drive everywhere else - other machines.

hordeman 2008-01-02 00:57

Re: External HD
 
Quote:

Originally Posted by Beakman (Post 119050)
I ALWAYS do, but obviously used the wrong search terms.

Whoops! That was meant for InfinityDevil. ;) Didn't want any misinformation to be put out there so quickly.

Mara 2008-01-02 01:23

Re: External HD
 
1 Attachment(s)
Quote:

Originally Posted by Beakman (Post 119052)
I'm getting an "cannot create /sys/devices/platform/musb_hdrc/mode".
Permission Denied.
Do I need root?
When I try to gainroot I need a p/w which I ain't got.
Did I miss something?

Yes, you need to be root to do this. The easiest way is to install Becomeroot package and then type in xterm 'sudo gainroot'.

I rewrote this guide now when I packed all the necessary files into one zip file and also cleaned up the scripts a little... so here it goes:

The attached zip file contains four files: host.desktop, otg.desktop, Host.sh and Otg.sh. Before continuing make sure you have Becomeroot package installed.

Here are step by step instructions to install the files:

1) Copy Host.sh and Otg.sh to /home/user/MyDocs
2) Cd into the aforementioned directory and change the files executable by applying commands:
- chmod +x Host.sh
- chmod +x Otg.sh
3) Become root (sudo gainroot) and copy otg.desktop and host.desktop to /usr/share/applications/hildon

Thats it! Now you have two "applications" in your Extras that you can change the USB port mode into Host and Otg mode as you wish.

There are alternative methods to enable host mode as well. Please see the wiki page.

And if anyone finds better way to do this, please feel free to modify the scripts. (I did find the idea how to make entries to Extras and how to write the scripts from someone's post here... don't remember who was it... :o . If you "someone" find the scripts very familiar now you know who did "stole" them... ;) )

Beakman 2008-01-02 16:18

Re: External HD
 
Quote:

Originally Posted by hordeman (Post 119068)
Whoops! That was meant for InfinityDevil. ;) Didn't want any misinformation to be put out there so quickly.

Nooo sweat

EIPI 2008-01-02 17:10

Re: External HD
 
I put up links to Mara's scripts in the Wiki.

Beakman 2008-01-02 17:18

Re: External HD
 
I know this is getting tiring - as I seem to be the only one not to get this to work - ironic as I started this, but I gainroot, then run the command to be host mode as noted earlier, and then plug in the USB HD. I get USB device attached, and that's about it.

I can run file manager but it doesn't show the drive, it doesn't show the two SD cards so that gives me the impression that it DOES think/know there's an USB device attached.

Any ideas?

hordeman 2008-01-02 17:22

Re: External HD
 
Quote:

Originally Posted by Beakman (Post 119375)
I know this is getting tiring - as I seem to be the only one not to get this to work - ironic as I started this, but I gainroot, then run the command to be host mode as noted earlier, and then plug in the USB HD. I get USB device attached, and that's about it.

I can run file manager but it doesn't show the drive, it doesn't show the two SD cards so that gives me the impression that it DOES think/know there's an USB device attached.

Any ideas?

Maybe you should start testing with something simpler? Like a thumb drive. That way, you can have an easier time narrowing down whether the problem is the HD/ media or the N800.

Beakman 2008-01-02 22:54

Re: External HD
 
Quote:

Originally Posted by hordeman (Post 119378)
Maybe you should start testing with something simpler? Like a thumb drive. That way, you can have an easier time narrowing down whether the problem is the HD/ media or the N800.

My thought exactly - got to put together a coupa'la cables.

xxM5xx 2008-01-03 05:29

Re: External HD
 
2 Attachment(s)
This does work. The hard drive had to be reformatted away from NTFS. I used FAT32 and the N800 file manager sees the files and folders on the external drive.

My little OTG (pigtail) adapter in the second photo won't do the chore for a hard drive because the ext. hdd needs more power than the N800 will source, so the powered Hub in the first picture is for HDD and the little adapter pigtail adapter is for low power stuff like flash drives and keyboards. Both the pigtail and the powered hub automatically throw the N800 into host mode when inserted (no need to gainroot or run scripts).

I was unsuccessful in getting my SanDisk Ultra II with USB (not in the photos) to read even though it was formatted FAT. The SanDisk Ultra II plus USB are probably Windows only devices.

Thmos John 2008-01-05 11:39

Re: External HD
 
Thanks for yor works!
But my usb hard drive can't work on my N800, the flash disk and usb keyboard works fine! My usb hard disk is 30G which two partitions, on is 10G, another is 20G. The two partitions are FAT32 system. A message "can not connect , no file system available" popped up. I also used a usb hub with separate power suplly.

Can you help me? Thanks!

xxM5xx 2008-01-05 20:26

Re: External HD
 
Quote:

Originally Posted by Thmos John (Post 121273)
Thanks for yor works!
But my usb hard drive can't work on my N800, the flash disk and usb keyboard works fine! My usb hard disk is 30G which two partitions, on is 10G, another is 20G. The two partitions are FAT32 system. A message "can not connect , no file system available" popped up. I also used a usb hub with separate power suplly.

Can you help me? Thanks!

if you have one or both partitions FAT32 it should work even though the error message pops up. Connect it all up and wait a period of time. Ignore all error messages. The file manager on the N800 should launch, if it doesn't your partitions might not be FAT32 as you believe (or there is something else not correct). I trust you have verified that the hard drive is spinning....

Beakman 2008-01-08 18:10

Re: External HD
 
Quote:

Originally Posted by xxM5xx (Post 119786)
This does work. The hard drive had to be reformatted away from NTFS. I used FAT32 and the N800 file manager sees the files and folders on the external drive.

************* snip (argh) *******************

I'm not sure this matters, as I can not get it to work no matter WHAT I do - seems to be my fate; I start the thread and end being one of the few that can't get what I asked to work - but I digress - I noticed that the USB icon is not present in the "taskbar", is it only there when it's NOT the host?

Just got it to work doing all that you did EXCEPT I had to go to xterm and put it in host mode. I'm thinking you're running something I'm not maybe?

jgallen23 2008-01-09 19:14

Re: External HD
 
Quote:

Originally Posted by Mara (Post 119080)
Yes, you need to be root to do this. The easiest way is to install Becomeroot package and then type in xterm 'sudo gainroot'.

I rewrote this guide now when I packed all the necessary files into one zip file and also cleaned up the scripts a little... so here it goes:

The attached zip file contains four files: host.desktop, otg.desktop, Host.sh and Otg.sh. Before continuing make sure you have Becomeroot package installed.

Here are step by step instructions to install the files:

1) Copy Host.sh and Otg.sh to /home/user/MyDocs
2) Cd into the aforementioned directory and change the files executable by applying commands:
- chmod +x Host.sh
- chmod +x Otg.sh
3) Become root (sudo gainroot) and copy otg.desktop and host.desktop to /usr/share/applications/hildon

Thats it! Now you have two "applications" in your Extras that you can change the USB port mode into Host and Otg mode as you wish.

There are alternative methods to enable host mode as well. Please see the wiki page.

And if anyone finds better way to do this, please feel free to modify the scripts. (I did find the idea how to make entries to Extras and how to write the scripts from someone's post here... don't remember who was it... :o . If you "someone" find the scripts very familiar now you know who did "stole" them... ;) )


mara-

when I run ./Host.sh I get:
/home/user/MyDocs # ./Host.sh
/bin/sh: ./Host.sh not found

Any idea why?

Mara 2008-01-09 19:26

Re: External HD
 
Quote:

Originally Posted by jgallen23 (Post 124208)
mara-

when I run ./Host.sh I get:
/home/user/MyDocs # ./Host.sh
/bin/sh: ./Host.sh not found

Any idea why?

Hmm?

Did you set the file executable? (chmod +x ...)
Who has read rights to it? (ls -l)

When I tested this I tried with command "sh Host.sh"... (when in MyDocs directory) that worked for me. (I think this works even if the files are not set executable? But I may be wrong...?)

EDIT: Sure you have Becomeroot installed?

Kozzi 2008-01-09 19:44

Re: External HD
 
Quote:

Originally Posted by Beakman (Post 123405)

I'm not sure this matters...

If you are talking about the format (FAT32/NTFS), then it actually matters since N800 can't read NTFS.

jgallen23 2008-01-09 21:54

Re: External HD
 
Quote:

Originally Posted by Mara (Post 124214)
Hmm?

Did you set the file executable? (chmod +x ...)
Who has read rights to it? (ls -l)

When I tested this I tried with command "sh Host.sh"... (when in MyDocs directory) that worked for me. (I think this works even if the files are not set executable? But I may be wrong...?)

EDIT: Sure you have Becomeroot installed?

sh Host.sh worked. Should ./Host.sh work as well?

jgallen23 2008-01-10 03:03

Re: External HD
 
I got Host.sh to work in osso-statusbar, but I can't get Otg.sh. Any ideas?

debernardis 2008-01-12 14:06

Re: External HD
 
This worked nicely for me, at the point I could connect my n800 to my new n810 and read its mmc2 as it were an usb stick.

dan 2008-01-12 17:27

Re: External HD
 
jgallen23,

I had similar problem and I solved it by downloading Mara's app's again and putting them on my mmc and then manually moving them to my user file at the top of file manager. It took me about three hours to do this because I thought they to be in a MyDocs folder. Once I did that and followed Mara's directions both files showed up in x-term. Also make sure you put them into osso desktop properly. lol, Dan

jenova13 2008-01-13 05:01

Re: External HD
 
hey xxM5xx, amazing work, thank you, and i couldn't help but notice that that drive is filled with Pink Floyd, amazing band. and amazing work.

dan 2008-01-13 23:03

Re: External HD
 
Mara,

I followed your advise on USB Host mode and got it working great. Thanks.

Can I stop or turn off osso status bar long without damaging the setting for osso-status bar? Any help would be greatly appreciated. Thanks, Dan

Beakman 2008-01-14 14:22

Re: External HD
 
Quote:

Originally Posted by jgallen23 (Post 124496)
I got Host.sh to work in osso-statusbar, but I can't get Otg.sh. Any ideas?

To work? Or is it not there?

joseyong 2008-01-14 17:58

Re: External HD
 
Seagate is introducing its Seagate D.A.V.E. platform, which will give users 60 GB wirelessly through a wireless hard drive. How's that for iPod storage envy?

The Seagate Digital Audio Video Experience will enable your smartphone and handheld to connect to the drive via WiFi or Bluetooth. Data can also be transferred via USB through a PC.

http://msmobiles.com/news.php/7021.html

jenova13 2008-01-14 21:38

Re: External HD
 
Quote:

Originally Posted by xxM5xx (Post 119786)
This does work. The hard drive had to be reformatted away from NTFS. I used FAT32 and the N800 file manager sees the files and folders on the external drive.

what if i were to use ext2 format on the drive, since the n800 is linux based, it should work, shouldn't it?

thorbo 2008-02-01 19:34

Re: External HD
 
How much more difficult would it be to run these commands from the "command line in the CPU monitor on the desktop.... Since I can't imagine that these commands are something that are used a lot. furthermore, what is the default, and does it have to be "turned off" to save battery power to the port? Any help, suggestions would be appreciated.

tz1 2008-02-01 21:41

Re: External HD
 
The Nokias need ext2/ext3 loaded as kernel modules but they should recognize the format. (The native filesystem is jffs2 for the tablets and most embedded systems or those that use flash only). You could also have maybe found and loaded an ntfs (or fuse-ntfs) kernel module to access NTFS natively.

linux_author 2008-02-01 22:53

Re: External HD
 
Quote:

Originally Posted by jenova13 (Post 127701)
what if i were to use ext2 format on the drive, since the n800 is linux based, it should work, shouldn't it?

- it should work *very* well...

(i hooked up a 120GB Maxtor USB drive that had been partitioned ext2/HFS+ ; attached to my n800 in host mode and BADA BING! - the ext2 partition appeared in the File Manager; alas, no HFS+ support in the stock os2008 kernel)

dwf 2008-02-02 06:31

Re: External HD
 
Does this approach work the same on the N810 even though it has the microUSB port?

linux_author 2008-02-02 17:55

Re: External HD
 
Quote:

Originally Posted by dwf (Post 137028)
Does this approach work the same on the N810 even though it has the microUSB port?

- it *should*, but i do not have an N810 (YMMV)...

(there's no reason it should not - the host mode is available under os2008 and that's what you're running on the n810)

tz1 2008-02-02 18:55

Re: External HD
 
For my iPod with hfsplus, it just needed the kernel module:
http://homepage.mac.com/tz1/.Public/n810/hfsplus.ko
(and some fidgeting to create a loop device displaced to the partition)
This was on an n810

jepensedoucjsuis 2008-04-12 15:27

Re: External HD
 
Same problem here, ony I can not get any media drives working Flash,Hard drive, USB cdrom. I just get the "can not connect , no file system availabe" message and it never shows up in the File manager


All times are GMT. The time now is 18:32.

vBulletin® Version 3.8.8