Unoffical empeg BBS

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

Topic Options
#66230 - 03/02/2002 17:07 EmpegClone feature in beta8?
Neo_to_Rio
journeyman

Registered: 02/01/2002
Posts: 57
Loc: Silicon Valley
I'll be attempting to clone a unit soon and wonder if beta 8 will support this or if I'll still need to downgrade everything to 1.03.

Top
#66231 - 03/02/2002 17:17 Re: EmpegClone feature in beta8? [Re: Neo_to_Rio]
hybrid8
carpal tunnel

Registered: 12/11/2001
Posts: 7738
Loc: Toronto, CANADA
You have a number of alternatives already... JEmplode, on linux via FTP using mirrordir... Doing the copy thing manually using ftp...

Look in the programming section because there have been recent threads with that type of discussion.

Bruno
_________________________
Bruno
Twisted Melon : Fine Mac OS Software

Top
#66232 - 04/02/2002 01:33 Re: EmpegClone feature in beta8? [Re: hybrid8]
bonzi
pooh-bah

Registered: 13/09/1999
Posts: 2401
Loc: Croatia
For Linux-challenged (and empy-100GB-disk-deprived) users (who thus cannot use mirrordir or simply FTP everything in one gulp), if they want to avoid a simple exercise of writing a script that would FTP fid files one by one, I recommend recently mentioned Lazy Bastard's Guide to Cloning your empeg by Roger. It might look intimidating for penguin-phobes, but it is dead-simple to follow literally even if one doesn't understand a single command (and those who do think "why didn't I think of this").

Clone tool and Jemplode are still only point-and-click solutions, but Roger's solution is so elegant and fast (it transfers directly empeg-to-empeg, cutting total traffic in half and avoiding emplode protocol overhead) that I still prefer it over them.

The guide does not cover cloning of partition containing EQ settings, play counts etc.

I think this should be FAQed (don't blast me too hard if it already is, FAQ gets improved faster that I can follow )
_________________________
Dragi "Bonzi" Raos Q#5196 MkII #080000376, 18GB green MkIIa #040103247, 60GB blue

Top
#66233 - 04/02/2002 08:44 Re: EmpegClone feature in beta8? [Re: bonzi]
Neo_to_Rio
journeyman

Registered: 02/01/2002
Posts: 57
Loc: Silicon Valley
Thanks Bonzi. I certainly do meet the user qualifications. Sounds like I need Linux or cygwin to be on my PC. Right?

I'm not sure this is any eaiser than using jemplode, though the transfer process sounds like it could be a lot faster.

Barry

Top
#66234 - 04/02/2002 09:24 Re: EmpegClone feature in beta8? [Re: bonzi]
ClownBurner
member

Registered: 05/09/2000
Posts: 174
Loc: Irvine, CA USA
FYI, MirrorDir does 1 file at a time, so you only need as much free space as the largest file you have.

The only downside to Roger's method is that it can't be used to 'keep' two empegs in sync without completely re-cloning. Mirrordir can incrementally copy over just the 'new' files. It does kinda need Linux to work well though - there doesn't appear to be a windows port. Although it *might* work in Cygwin, I haven't tested that.
_________________________
_____________ James Mancini

Top
#66235 - 04/02/2002 10:21 Re: EmpegClone feature in beta8? [Re: ClownBurner]
jbauer
veteran

Registered: 08/05/2000
Posts: 1429
Loc: San Francisco, CA
So it appears that the only reason for using a Linux computer outside the empeg is for extracting the netcal program to upload to your 2 empeg units.

Can someone email the netcat_1.10-12.1.tar.gz file that needs to be extracted? I don't have a Linux machine handy to accomplish this process.

The other question is tar-ing the files to send to the new unit. If I do that, don't I also have to untar on the receiving unit? I don't see that mentioned in the Lazy Bastard guide...

Lastly, has anyone gone through the whole process and made it work? At the end of the web page it says "...hopefully a properly cloned player."

- Thanx
- Jon

Top
#66236 - 04/02/2002 10:40 Re: EmpegClone feature in beta8? [Re: jbauer]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5682
Loc: London, UK
So it appears that the only reason for using a Linux computer outside the empeg is for extracting the netcal program to upload to your 2 empeg units.

Yep. I'll put the binaries up on my webpage in a minute...

If I do that, don't I also have to untar on the receiving unit? I don't see that mentioned in the Lazy Bastard guide...

It definitely mentions 'tar' in both stanzas. One of them before the pipe, one after.

Lastly, has anyone gone through the whole process and made it work?

Yep. Me. Worked a treat. I'll go update the page now.

Edit: Updated the page. Included the binaries.


Edited by Roger (04/02/2002 10:56)
_________________________
-- roger

Top
#66237 - 04/02/2002 10:48 Re: EmpegClone feature in beta8? [Re: Roger]
jbauer
veteran

Registered: 08/05/2000
Posts: 1429
Loc: San Francisco, CA
Hm. I don't see any mention of untarring... How does it get untarred on the destination?

I have a 40 gig on my source empeg. It's 90% full... Would the process still work even if I don't have enough room to put the whole drive into a tar file?

- Jon

Top
#66238 - 04/02/2002 10:50 Re: EmpegClone feature in beta8? [Re: jbauer]
tms13
old hand

Registered: 30/07/2001
Posts: 1115
Loc: Lochcarron and Edinburgh
In reply to:

Would the process still work even if I don't have enough room to put the whole drive into a tar file?


Yes - you're not making a file; you're sending the output straight to the tar process on the other player.
_________________________
Toby Speight
030103016 (80GB Mk2a, blue)
030102806 (0GB Mk2a, blue)

Top
#66239 - 04/02/2002 10:55 Re: EmpegClone feature in beta8? [Re: jbauer]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5682
Loc: London, UK
How does it get untarred on the destination?

dest-empeg:/drive0# nc -l -p 2999 | tar xvfz -

Sets up netcat in listening mode on the destination empeg, and anything it gets is sent through tar for extraction.

The tar file is not stored _anywhere_. It's sent straight over the wire.

_________________________
-- roger

Top
#66240 - 04/02/2002 11:32 Re: EmpegClone feature in beta8? [Re: Roger]
jbauer
veteran

Registered: 08/05/2000
Posts: 1429
Loc: San Francisco, CA
Hm. Having a problem untarring the .gz file...

empeg:/# ls -al
total 56
drwxr-xr-x 15 502 220 1024 Feb 4 10:26 .
drwxr-xr-x 15 502 220 1024 Feb 4 10:26 ..
drwxr-xr-x 2 0 0 1024 Dec 22 10:11 bin
drwxr-xr-x 2 0 0 1024 Jul 4 2000 dev
drwxr-xr-x 5 0 0 1024 Aug 23 2000 drive0
drwxr-xr-x 5 0 0 1024 Aug 23 2000 drive1
drwxr-xr-x 4 0 0 1024 Dec 22 10:17 empeg
drwxr-xr-x 3 0 0 1024 Sep 15 1999 etc
drwxr-xr-x 2 0 0 1024 Feb 9 2000 lib
drwxr-xr-x 2 0 0 12288 Dec 22 10:17 lost+found
drwxr-xr-x 2 0 0 1024 Jun 2 1999 mnt
-rw------- 1 0 0 30720 Feb 1 17:54 netcat_1.10-12.1-minimal
.tar.gz
dr-xr-xr-x 17 0 0 0 Feb 4 09:59 proc
lrwxrwxrwx 1 0 0 3 Dec 22 10:17 sbin -> bin
lrwxrwxrwx 1 0 0 10 Dec 22 10:17 swapfile -> ./dev/hda6
drwxr-xr-x 2 0 0 1024 Apr 13 1999 tmp
drwxr-xr-x 4 0 0 1024 Feb 6 2000 usr
drwxr-xr-x 3 0 0 1024 Aug 28 1999 var
empeg:/#
empeg:/# rw
empeg:/# tar xvfz drive0/netcat_1.10-12.1-minimal.tar.gz
tar (child): drive0/netcat_1.10-12.1-minimal.tar.gz: Cannot open: No such file o
r directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
empeg:/#

I set the empeg as rw, sent the .gz file to the root, ran the tar command, and got the above error... What am I doing wrong?

- Jon

Top
#66241 - 04/02/2002 11:36 Re: EmpegClone feature in beta8? [Re: jbauer]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
The tar file is in /, but you're asking tar to deal with a file in /drive0. You probably want to mv it to /drive0
_________________________
Bitt Faulk

Top
#66242 - 04/02/2002 11:37 Re: EmpegClone feature in beta8? [Re: wfaulk]
jbauer
veteran

Registered: 08/05/2000
Posts: 1429
Loc: San Francisco, CA
Ok, so I tried it this way:

empeg:/# tar xvfz ./netcat_1.10-12.1-minimal.tar.gz

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
empeg:/#

Hm. You think the file might be corrupted?

- Jon

Top
#66243 - 04/02/2002 11:40 Re: EmpegClone feature in beta8? [Re: jbauer]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Possibly, but first try it without the `z' in the flags for tar. Your browser may have ``conveniently'' un-gzipped it but left the filename the same.
_________________________
Bitt Faulk

Top
#66244 - 04/02/2002 13:16 Re: EmpegClone feature in beta8? [Re: wfaulk]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5682
Loc: London, UK
Yeah, IE does that sometimes. It could be down to the server configuration, though. Which is embarrassing, since it's my server. I'll take a look when I get a chance.
_________________________
-- roger

Top
#66245 - 04/02/2002 13:40 Re: EmpegClone feature in beta8? [Re: Roger]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
It probably is. I think that Apache (or the default config, more likely), is broken in that respect. It tends to send things ending in .gz with an Encoding-Type (or something like that) of gzip (or whatever), and IE is actually doing the right thing.
_________________________
Bitt Faulk

Top
#66246 - 04/02/2002 13:47 Re: EmpegClone feature in beta8? [Re: Neo_to_Rio]
bonzi
pooh-bah

Registered: 13/09/1999
Posts: 2401
Loc: Croatia
Oops, I forgot that 'ar' is not a part of empeg minimal version of Debian. I see Roger took care of that, though.
_________________________
Dragi "Bonzi" Raos Q#5196 MkII #080000376, 18GB green MkIIa #040103247, 60GB blue

Top
#66247 - 04/02/2002 13:49 Re: EmpegClone feature in beta8? [Re: ClownBurner]
bonzi
pooh-bah

Registered: 13/09/1999
Posts: 2401
Loc: Croatia
If you *do* make mirrordir work on cygwin (or otherwise under Windows), please let us know!
_________________________
Dragi "Bonzi" Raos Q#5196 MkII #080000376, 18GB green MkIIa #040103247, 60GB blue

Top
#66248 - 04/02/2002 14:14 Re: EmpegClone feature in beta8? [Re: Roger]
bonzi
pooh-bah

Registered: 13/09/1999
Posts: 2401
Loc: Croatia
Roger, perhaps you could also put directions for cloning the partition with EQ setings, play counts and other transient data (if that is safe) on your 'Lazy bastard's...' page. I suppose dd piped to netcat will do, but I would prefer a word from the authority
_________________________
Dragi "Bonzi" Raos Q#5196 MkII #080000376, 18GB green MkIIa #040103247, 60GB blue

Top
#66249 - 04/02/2002 14:50 Re: EmpegClone feature in beta8? [Re: ClownBurner]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14486
Loc: Canada
>MirrorDir does 1 file at a time, so you only need
>as much free space as the largest file you have.

Nope, not even that much.. mirrordir just relays the packets
from one unit to the other, using memory as a buffer.

Cheers

Top
#66250 - 04/02/2002 15:05 Re: EmpegClone feature in beta8? [Re: bonzi]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
dd should work, I dd'ed my /dev/hda2 to a file on my old unit, and dd'ed it back on the new unit after FTPing the file over. Worked quite well.

Top