Sign up here and you can log into the forum!

Virtual USB Drive

Here is the place to inquire about app.bins--Only currently available apps for sigma 8655 based wdtv's belong in this forum. requests go in 'Application Questions'

Virtual USB Drive   

Postby recliq » Thu Jun 30, 2011 10:36 am

Guess what... a new app.bin from me! :mrgreen:
Now this one could be quite interesting for some of you and it was quite often demaded in the past: A virtual USB drive.

Note: This application does NOT work with 1.05+ kernels (the one with 3TB support...)!

About:
The app.bin adds a kernel module which will emulate a connected USB drive.
What's that good for?
It let's you use xmounts without having any actual USB drives connected to your WDTV! 8-)

For this to work we need a quite new and mostly unknown feature of WDLXTV (0.4.7.0 or higher): NETAPP
NETAPP let's you load anything you can load from USB (like app.bin, osd.bin, .thumbDB, .wdtvext-plugins, etc...) from a network share.

WARNING:
It is possible to put your device into an unusable state by supplying an invalid /conf/config in versions under 0.5.0.0. This is why its stated to get this working from usb first. You have been warned!

SAFTY ADVICE:
First confirm NETAPP works from USB device, THEN move that net.config to /conf/net.config.

Note: I have tested this only with NFS shares so far!


So you are still not scared? Here's how to do it, but don't say I didn't warn you! 8-)

Install:
Most important is to disable Media Library otherwise you will get error messages and it will not work as expected!

Then the next thing to do is to create a new share on your server and put the app.bin in there.
Then you need to create a file /conf/net.config (if you don't have already one) and put this line in there:
Code: Select all
crazymount NETMOUNT server:/share

Obviously you have to chage server:/share to reflect your setup...

Next you should enable the virtual USB drive by setting this config setting:
Code: Select all
config_tool -c FAKEUSB=ON

Then reboot your device.

Usage:
You should now see 'Local Drives' in OSD and the USB LED should be on although there is no actual USB drive connected.

Changelog:
1.0.0-1: initial release

Download:
Attachments
fakeusb.app.tgz
Virtual USB Drive v1.0.0-1
(38.84 KiB) Downloaded 1236 times
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: Virtual USB Drive   

Postby BonzenPaule » Thu Jun 30, 2011 1:39 pm

Working like a charm! I used nfs too.
Thanks a lot for this app.bin and for reminding us of this feature recliq :)
Sincerely
BonzenPaule
BonzenPaule
Donor
 
Posts: 83
Joined: Thu Oct 28, 2010 10:40 am
Location: Rostock, Germany

Re: Virtual USB Drive   

Postby kroetkroet » Thu Jun 30, 2011 11:30 pm

I'm in repetition mode, but...

Image
WDLXTV-fan! - In case you need further assistance: read our WIKI, search our Forum and most of all: donate 'something' to b-rad for his great efforts!!!
User avatar
kroetkroet
Beta Tester
 
Posts: 1010
Joined: Mon Apr 05, 2010 11:53 pm

Re: Virtual USB Drive   

Postby excentrifugalForz » Thu Jul 07, 2011 9:19 am

Thanks for this, I have it working with samba shares from my nas.
excentrifugalForz
n00b
 
Posts: 2
Joined: Thu Jul 07, 2011 8:50 am

Re: Virtual USB Drive   

Postby recliq » Thu Jul 07, 2011 10:48 am

I'm glad to hear that it works with samba as well ;)
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: Virtual USB Drive   

Postby excentrifugalForz » Sat Jul 09, 2011 4:15 am

I have it installed on 2 lives, both working great.

One is running 1.03 fw and the other 1.02 fw.

Something odd that I noticed is the disk usage display in webend, the 1.03 unit shows volume: dummy (/dev/sda)
and the 1.02 unit shows volume: dummy (/dev/sda) and volume: dummy (/dev/sda0).

Functionally, from the osd both are the same and dolphin filemanager shows the same directory structure other than a /tmp/media/usb/.wd_tv directory in the 1.03 unit.

Is this because of differences in fw or did I screw something up?
excentrifugalForz
n00b
 
Posts: 2
Joined: Thu Jul 07, 2011 8:50 am

Re: Virtual USB Drive   

Postby recliq » Sat Jul 09, 2011 4:21 am

I never tested it on 1.03... as long as it's working i'd say to just ignore the wfe disk usage display (you can disable it in wec) :geek:
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: Virtual USB Drive   

Postby mefoxy » Fri Aug 26, 2011 1:36 am

I've tried for some time now to get this working for me. But I can't..

Here is my setup:

WDLTXV Live 1.05.04, IP: 192.168.1.96
WIN7 Laptop with haneWIN nfs server running, IP: 192.168.1.90

My net.config contains the following:
Code: Select all
/etc/init.d/S10portmap startNFS
crazymount NETMOUNT 192.168.1.90:/nfsVideos

The first line is because of a post of recliq in this thread: new Feature: NETAPP

The "nfsVideos" is defined in the exports of the nfs server an points to "c:\...\Downloads\"
In this folder I've stored the fakeusb.app.bin

Also I've set the config via telnet:
Code: Select all
config_tool -c FAKEUSB=ON


The result is that my WDTV LIve needs about 5min or more to start and I don't know what's going on.
It's always hard if a noob like me try to set up things like that. But I won't give up that easily ;)
So if anyone would help I would appreciate!
mefoxy
Donor
 
Posts: 2
Joined: Thu Aug 25, 2011 12:37 am

Re: Virtual USB Drive   

Postby mefoxy » Mon Aug 29, 2011 1:55 pm

Has anybody a clue for me?
mefoxy
Donor
 
Posts: 2
Joined: Thu Aug 25, 2011 12:37 am

Re: Virtual USB Drive   

Postby recliq » Tue Aug 30, 2011 12:35 am

Does the NFS share actually get mounted?
Code: Select all
mount -t nfs


Can you please give the result of these commands:
Code: Select all
showmount -e 192.168.1.90

Code: Select all
grep IPUP /conf/config

Code: Select all
grep xmount /tmp/messages.txt
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Next

Return to WDLXTV-G2 & WDLXTV-Live/Plus app.bins

Who is online

Users browsing this forum: No registered users and 1 guest