<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1586" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=281264012-26012007>Hi
guys,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=281264012-26012007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=281264012-26012007>I'm trying to backup
a disk image to a device that cuts files at 2GB. In this case I've booted to a
Live CD, so /dev/hda is not mounted. My first try was:</SPAN></FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV><FONT face=Arial size=2><SPAN class=281264012-26012007>for i in 1 2 3 4 5
6 7 8 9 ; do</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=281264012-26012007>
gzip --best | dd of=<mounted smb share>/image.part${i}.gz obs=1000000
count=2000 ;</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=281264012-26012007>done <
</SPAN></FONT><FONT face=Arial size=2><SPAN class=281264012-26012007>cat
/dev/hda</SPAN></FONT></DIV></BLOCKQUOTE>
<DIV><FONT face=Arial size=2><SPAN class=281264012-26012007>Then
re-imaging:</SPAN></FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV><FONT face=Arial size=2><SPAN class=281264012-26012007>zcat =<mounted
smb share>/image.part1.gz <mounted smb share>/image.part2.gz ...
(depending on the number of non-empty gz files) | dd
of=/dev/hda</SPAN></FONT></DIV></BLOCKQUOTE>
<DIV><FONT face=Arial size=2><SPAN class=281264012-26012007>cat seemed to be
essential... I know it's not good form. In general though, this didn't work.
Aside from creating a number of junk/pseudo-empty files when it runs out of
data, the image doesn't seem consistent. In addition, it seems to cut the files
at 1GB, rather than 2GB (I could just fiddle the numbers - but it's odd).
Please lets not argue about MiB vs. MB...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=281264012-26012007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=281264012-26012007>There are plenty of
problems here, and I'm hoping that this can turn into on of those handy
discussions on shell scripting that make Google so handy :) In addition, if I
can figure out how to backup whole disk images to my Slug (the otherwise handy
device in question) then I'd be very appreciative.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=281264012-26012007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=281264012-26012007>I looked at GNU
tar's tape splitting options, but I couldn't figure out how to get it to accept
all the options needed at once (I may very well be stupid).</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=281264012-26012007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=281264012-26012007>Thanks,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=281264012-26012007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=281264012-26012007>Richard</SPAN></FONT></DIV></BODY></HTML>