Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Page 1 of 2 1 2 >
Topic Options
#57374 - 10/01/2002 07:38 HiJack v. 115: mirrordir now works
Taym
carpal tunnel

Registered: 18/06/2001
Posts: 2504
Loc: Roma, Italy
Mark, If I unerstand well, it is now possible to clone two empegs through this? If so, how?
Thank you so much for your great job.
_________________________
= Taym =
MK2a #040103216 * 100Gb *All/Colors* Radio * 3.0a11 * Hijack = taympeg

Top
#57375 - 10/01/2002 09:27 Re: HiJack v. 115: mirrordir now works [Re: Taym]
ClownBurner
member

Registered: 05/09/2000
Posts: 174
Loc: Irvine, CA USA
I'd love to know that too, since I've had the ubiquitous serial number problems with the clone tool, and I'd prefer Ethernet anyway...
_________________________
_____________ James Mancini

Top
#57376 - 13/01/2002 10:33 Re: HiJack v. 115: mirrordir now works [Re: Taym]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14482
Loc: Canada
To clone one empeg onto another, the easiest way (for me) is to have a third machine running Linux, with mirrordir software installed.

First, use the serial port to login to the target empeg ("empeg2") and issue the "rw" command (yes, I know.. I'm working on making this easier..).

Then, from the Linux box on the network:

mirrordir -v ftp://empeg1/ ftp://empeg2

Come back a few hours later, and you'll have two completely identical empegs, except for kernels and other stuff stored in the flash.

Of course, there's a bug I just found in kftpd that causes mirrordir to have trouble every 64 files or so.. that will be fixed shortly in Hijack v121

-ml

Top
#57377 - 13/01/2002 10:41 Re: HiJack v. 115: mirrordir now works [Re: mlord]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
Mark, not sure if this has been asked for already, but any chance PASV mode will be supported?
_________________________
- Tony C
my empeg stuff

Top
#57378 - 13/01/2002 10:48 Re: HiJack v. 115: mirrordir now works [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14482
Loc: Canada
Ooopps not quite correct..

You'll also need to "EXCLUDE" /proc/ from the mirrordir copy.

Or just copy the fids instead:


mirrordir -v ftp://empeg1/drive0/ ftp://empeg2/drive0/

Top
#57379 - 13/01/2002 10:51 Re: HiJack v. 115: mirrordir now works [Re: tonyc]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14482
Loc: Canada
>Mark, not sure if this has been asked for already,
>but any chance PASV mode will be supported?

Not any time soon. The difficulty with PASV is that it's just too easy to lock up the single-threaded kftpd, requiring a reboot to recover it.

The only real need ("want?") for PASV is for accessing an Empeg through a firewall. And the existing khttpd can do this instead, for retrieval at least. I hope to add HTTP POST (for uploads) eventually as well.

Cheers

Top
#57380 - 13/01/2002 10:53 Re: HiJack v. 115: mirrordir now works [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14482
Loc: Canada
Here's how to mirror an Empeg, excluding /proc/:


mirrordir -v --exclude-regexp '.*/proc/.*' ftp://empeg1/ ftp://empeg2/

Top
#57381 - 13/01/2002 11:03 Re: HiJack v. 115: mirrordir now works [Re: mlord]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5914
Loc: Wivenhoe, Essex, UK
Is their any possibilty of having a multi threaded kftpd/khttpd at some point or is it just too hard/memory intensive ?
_________________________
Remind me to change my signature to something more interesting someday

Top
#57382 - 13/01/2002 12:20 Re: HiJack v. 115: mirrordir now works [Re: mlord]
Taym
carpal tunnel

Registered: 18/06/2001
Posts: 2504
Loc: Roma, Italy
Thank you very much Mark.
Now, does anybody know of any mirrordir utility running under win32, or maybe can/wants to compile it to run under win32? Unfortunately I have no Linux box at hand, and I guess many here would greatly benefit from this cloning method, expecially now that the clone utility in Emplode has some bugs still to be fixed...

Thank you!
_________________________
= Taym =
MK2a #040103216 * 100Gb *All/Colors* Radio * 3.0a11 * Hijack = taympeg

Top
#57383 - 13/01/2002 12:43 Re: HiJack v. 115: mirrordir now works [Re: andy]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14482
Loc: Canada
>any possibilty of having a multi threaded kftpd/khttpd ?

Maybe. Mostly, it's a resource thing.. not a lot of memory to go around, and I just want(ed) basic remote access capability. But I suppose I might add a sys_fork() call in there someday, just to try it out.

The "real" khttpd() server in linux-2.4.xx (totally unrelated to mine) actually just runs as a single thread, but manages multiple connections using internal status queues and non-blocking I/O. But it's also a lot bigger, and doesn't do as much as the one in Hijack.

...

Top
#57384 - 13/01/2002 13:02 Re: HiJack v. 115: mirrordir now works [Re: Taym]
smu
old hand

Registered: 30/07/2000
Posts: 879
Loc: Germany (Ruhrgebiet)
Hi.

Smartftp is supposed to be able to do this using it's global queue feature which does allow you to store a remote file (even multiple files) on a second remote system.
However, I was unable to get it to work for me right now, but that might be due to my firewall (I only have one ftp server on my home network, so I had to choose an external one for the second connection).

cu,
sven
_________________________
proud owner of MkII 40GB & MkIIa 60GB both lit by God and HiJacked by Lord

Top
#57385 - 13/01/2002 13:22 Re: HiJack v. 115: mirrordir now works [Re: smu]
Taym
carpal tunnel

Registered: 18/06/2001
Posts: 2504
Loc: Roma, Italy
I was just looking at that! I use SmartFTP too and hope it had that among its may features. Tomorrow I'll finally be able to put my hands on my new empeg, and I'll post a report of my cloning attempts.
Thank you!
_________________________
= Taym =
MK2a #040103216 * 100Gb *All/Colors* Radio * 3.0a11 * Hijack = taympeg

Top
#57386 - 13/01/2002 14:49 Hijack v122: multi-threaded [Re: andy]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14482
Loc: Canada
Okay, Hijack v122 is out.

Notable changes since v119:

-- kftpd/khttpd now spawn sub-threads for each new connection, so you can click on a tune to play it (streaming audio) and continue browsing in another window.
-- hard drive detection code modified to wait for the master drive, regardless of the 1/2 drive setting in the hijack menu.
-- mime-type added for convenient viewing of tags files under /drive?/fids/
-- fixed bug in ftp that caused every 64th transfer to fail, as seen when using mirrordir to clone players
-- added fsync() after each file download, sync() after each ftp session is terminated.

Available from http://empeg-hijack.sourceforge.net/

Cheers

-ml

Top
#57387 - 13/01/2002 16:00 Re: Hijack v122: multi-threaded [Re: mlord]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5914
Loc: Wivenhoe, Essex, UK
Mark, you're a star...
_________________________
Remind me to change my signature to something more interesting someday

Top
#57388 - 13/01/2002 16:29 Re: HiJack v. 115: mirrordir now works [Re: Taym]
bonzi
pooh-bah

Registered: 13/09/1999
Posts: 2401
Loc: Croatia
In the worst case, one could download all *1 files to PC and use them to generate a script that transfers *0 files one by one with PC as intermediate storage. Kludgy, but will work.

_________________________
Dragi "Bonzi" Raos Q#5196 MkII #080000376, 18GB green MkIIa #040103247, 60GB blue

Top
#57389 - 13/01/2002 19:14 Re: HiJack v. 115: mirrordir now works [Re: bonzi]
Taym
carpal tunnel

Registered: 18/06/2001
Posts: 2504
Loc: Roma, Italy
Ok, I am afraid I need a review of what are the relevant files in the Empeg. If all I want to do is to move my mp3s and database (meaning playlists and martist/titles/yrs/notes ecc) from one player to another, what are the files I should move? Where are them and what are them?
And for the equalizer settings?
What about times played, etc?
For a proper copy I would also need to copy the config.ini. Am I forgetting anything else?

Tony, maybe this could go in the FAQ. Sorry if there is. I checked and did not find it...

Actually, I think it would be nice if there was some sort of guide to the content of the empeg tree structure, highlighting those dirs that contain something relevant for those users who want to play around with it. What do you think?

Thank you very much in advance for the great help!
_________________________
= Taym =
MK2a #040103216 * 100Gb *All/Colors* Radio * 3.0a11 * Hijack = taympeg

Top
#57390 - 13/01/2002 20:00 Re: Hijack v122: multi-threaded [Re: mlord]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
This isn't a complaint or anything, but is there a way to turn off the Hijack Version popup on the empegs boot? Its not a big deal or anything, it just cuts off my penguin animation ; )

-Greg

Top
#57391 - 13/01/2002 21:28 Re: HiJack v. 115: mirrordir now works [Re: Taym]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14482
Loc: Canada
Your music, playlists, and the infamous "database" are all under the /drive0 and /drive1 directories.. those are what must be copied over.

-ml

Top
#57392 - 13/01/2002 21:29 Re: Hijack v122: multi-threaded [Re: mandiola]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14482
Loc: Canada
Don't worry too much about the popup, it's just temporary. I'm actually using it to test something, and waiting to see if anyone reports a broken system as a result.

It'll go out from on top of the penguin sometime soon.

-ml

Top
#57393 - 13/01/2002 21:36 Re: Hijack v122: multi-threaded [Re: mlord]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
Hehe ok. Do your work man, your awsome at it. Good luck ; )

-Greg

Top
#57394 - 14/01/2002 05:29 Re: HiJack v. 115: mirrordir now works [Re: mlord]
Taym
carpal tunnel

Registered: 18/06/2001
Posts: 2504
Loc: Roma, Italy
Great. So, I'll make a copy of the entire tree structure under /drive0 and /drive1 on my PC running windows, and copy it back to the new Empeg. I'll let you know how it goes. Thank you!
_________________________
= Taym =
MK2a #040103216 * 100Gb *All/Colors* Radio * 3.0a11 * Hijack = taympeg

Top
#57395 - 14/01/2002 08:36 Re: HiJack v. 115: mirrordir now works [Re: mlord]
Taym
carpal tunnel

Registered: 18/06/2001
Posts: 2504
Loc: Roma, Italy
OK, I am downloading all my 15Gb of stuff from the empeg to my PC, hoping to upload it back on the new one. Using ftp server implemented in hijack and SmartFTP in Win2k. WHat happens is that every some fids downloaded (never the same number) I get a "Connection Failure" for no apparent reason, and have to restart the download form where it stopped.
Unfortunately I don't get any more detailed error message. Little chances it is due to the lan connection, or to smartftp, since are both working perfectly with other applications. Is there something I can do to see of there's a bug somewhere?
_________________________
= Taym =
MK2a #040103216 * 100Gb *All/Colors* Radio * 3.0a11 * Hijack = taympeg

Top
#57396 - 14/01/2002 08:51 Re: HiJack v. 115: mirrordir now works [Re: Taym]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14482
Loc: Canada
The v121/v122/v123 versions of Hijack should not have this problem -- it was happening due to a bug in the parsing of the "PORT" command.

-ml

Top
#57397 - 14/01/2002 09:11 Re: HiJack v. 115: mirrordir now works [Re: mlord]
Taym
carpal tunnel

Registered: 18/06/2001
Posts: 2504
Loc: Roma, Italy
I am using Hijack version 123 . I was using ports 923 and 922 for the kftpd. Now I am using the standard ports, and the connection seems to be faster and more stable. Is it possible that the ports used were the problem? No firewall is being used between my pc and my emepg. Just a simple connection thorugh the quite new and extremely expensive Cisco Swicth that is where I work, and quite high quality ethernet cables that have been working with no problem at all so far. So I guess there should no be problem with cambling and other networking devices.
_________________________
= Taym =
MK2a #040103216 * 100Gb *All/Colors* Radio * 3.0a11 * Hijack = taympeg

Top
#57398 - 14/01/2002 09:38 Re: HiJack v. 115: mirrordir now works [Re: Taym]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14482
Loc: Canada
No, TCP takes care of all that stuff anyway.

Well, if you connect to the serial port with kftpd_verbose=0 in config.ini, then it should only dump messages when there's an error. And I'll need to see those messages to have any hope of diagnosing the problem.

-ml

Top
#57399 - 14/01/2002 10:58 Re: HiJack v. 115: mirrordir now works [Re: mlord]
Taym
carpal tunnel

Registered: 18/06/2001
Posts: 2504
Loc: Roma, Italy
Ok, I think I found out what the problem is, more or less. Basically while downloading I get caught by the "freeze" bug. Empeg stops responding to commands on the front panel, but that is apparently related to a slowdown of the connection as well, which eventually gets dropped. The bad thing is that it happens unexpectedly, and in thelast ten minutes it did not even allow me to retrieve the directory list!
_________________________
= Taym =
MK2a #040103216 * 100Gb *All/Colors* Radio * 3.0a11 * Hijack = taympeg

Top
#57400 - 14/01/2002 12:21 Re: HiJack v. 115: mirrordir now works [Re: Taym]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14482
Loc: Canada
For the player freezes, the situation seems to improve when you use the "reserve" keyword thingie to free up a little extra memory in config.ini. You'll have to search for syntax etc.. I forgot what I set..

Top
#57401 - 14/01/2002 12:30 Re: HiJack v. 115: mirrordir now works [Re: mlord]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5914
Loc: Wivenhoe, Essex, UK
I had the player "unfreeze" for the first time. I froze (during a transient info slide), but when it got to the end of the playlist it unfroze again.
_________________________
Remind me to change my signature to something more interesting someday

Top
#57402 - 14/01/2002 16:07 Re: HiJack v. 115: mirrordir now works [Re: mlord]
smu
old hand

Registered: 30/07/2000
Posts: 879
Loc: Germany (Ruhrgebiet)
Hi.

Section Startup, parameter ReserveCache=n where n is the number of (approximately) 32kByte chunks to reduce the cache by. Details at riocar.org developer info

cu,
sven
_________________________
proud owner of MkII 40GB & MkIIa 60GB both lit by God and HiJacked by Lord

Top
#57403 - 15/01/2002 03:39 Re: HiJack v. 115: mirrordir now works [Re: mlord]
Taym
carpal tunnel

Registered: 18/06/2001
Posts: 2504
Loc: Roma, Italy
OK, Thank you mlord and Smu. Last night I tried everything I could, but the player would just freeze when trying to ftp anything from it. As I said, it became harder and harder even to just get a directory list. With this solution you suggested I got it to work again. Just to be clearer to those who may need it as well, I just added these two lines at the very beginning of the in the config.ini

[Startup]
ReserveCache=32


Now the ftp seems to be working fine. Hopefully I'll manage to retrieve all the remaining gigs, and upload them, in the new player. I'll let you know!
Thank you.
_________________________
= Taym =
MK2a #040103216 * 100Gb *All/Colors* Radio * 3.0a11 * Hijack = taympeg

Top
Page 1 of 2 1 2 >