From tanc@cuug.ab.ca Sat Jun 27 21:15:10 1998 From: tanc@cuug.ab.ca To: users@lists.opensuse.org Subject: [S.u.S.E. Linux] dd question Date: Sat, 27 Jun 1998 15:15:10 -0600 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1243375120948592267==" --===============1243375120948592267== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Does anyone know how do you write a file to a tape, spanning across more than 1 tape? Also, how do you read from it? A collegue of mine came over this at work and he was asking me about it. =20 Also, what are the advantages or disadvantages of using cpio versus tar for archiving? =20 Any help will be greatly appreciated. =20 Regards, C. J. Tan ------------------------------------------------------------------------------ C. J. Tan E-mail: cjtan(a)acm.org Telephone: 1-403-220-8038=20 tanc(a)cuug.ab.ca 1-403-606-4257=20 URL: http://www.cuug.ab.ca/~tanc> Facsimile: 1-403-284-19= 80 "An engineer made programmer is one=20 who attempts to solve a problem, A programmer made engineer is one=20 who knows how to solve a problem." ------------------------------------------------------------------------------ - To get out of this list, please send email to majordomo(a)suse.com with this text in its body: unsubscribe suse-linux-e --===============1243375120948592267==-- From morche@sat1.de Sun Jun 28 08:55:32 1998 From: morche@sat1.de To: users@lists.opensuse.org Subject: Re: [S.u.S.E. Linux] dd question Date: Sun, 28 Jun 1998 10:55:32 +0200 Message-ID: <35960504.AD9ACD8E@sat1.de> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4188338693002823006==" --===============4188338693002823006== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit C. J. Kenneth Tan wrote: > > Does anyone know how do you write a file to a tape, spanning across more > than 1 tape? Also, how do you read from it? A collegue of mine came over > this at work and he was asking me about it. ... # tar --help ... Device selection and switching: ... -M, --multi-volume create/list/extract multi-volume archive -L, --tape-length=NUM change tape after writing NUM x 1024 bytes ... - To get out of this list, please send email to majordomo(a)suse.com with this text in its body: unsubscribe suse-linux-e --===============4188338693002823006==-- From weissel@jupiter.ph-cip.uni-koeln.de Sun Jun 28 11:05:37 1998 From: weissel@jupiter.ph-cip.uni-koeln.de To: users@lists.opensuse.org Subject: Re: [S.u.S.E. Linux] dd question Date: Sun, 28 Jun 1998 13:05:37 +0200 Message-ID: <19980628130537.A13913@Tiger.uni-koeln.de> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6901749792621681651==" --===============6901749792621681651== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi! Trying to kill the keyboard, tanc(a)cuug.ab.ca produced: > Does anyone know how do you write a file to a tape, spanning across more > than 1 tape? Also, how do you read from it? A collegue of mine came over You may want to use tar. Dump/restore may or may not work, the man page says it doesn't with Linux, yet I heard reports that it does. Any proper backup package will/should work as well. -Wolfgang -- PGP 2 welcome: Mail me, subject "send PGP-key". If you've nothing at all to hide, you must be boring. Unsolicited Bulk E-Mails: *You* pay for ads you never wanted. Is our economy _so_ weak we have to tolerate SPAMMERS? I guess not. - To get out of this list, please send email to majordomo(a)suse.com with this text in its body: unsubscribe suse-linux-e --===============6901749792621681651==-- From tanc@cuug.ab.ca Sun Jun 28 13:07:09 1998 From: tanc@cuug.ab.ca To: users@lists.opensuse.org Subject: Re: [S.u.S.E. Linux] dd question Date: Sun, 28 Jun 1998 07:07:09 -0600 Message-ID: In-Reply-To: <35960504.AD9ACD8E@sat1.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7459861570755688963==" --===============7459861570755688963== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable No, I guess I didn't phrase my question very well. I wanted to know how to write a file to a tape spanning across more than 1 tape using 'dd'. Regards, C. J. Tan On Sun, 28 Jun 1998, Matthias Morche wrote: >=20 > C. J. Kenneth Tan wrote: > >=20 > > Does anyone know how do you write a file to a tape, spanning across more > > than 1 tape? Also, how do you read from it? A collegue of mine came over > > this at work and he was asking me about it. > ... > # tar --help > ... > Device selection and switching: > ... > -M, --multi-volume create/list/extract multi-volume > archive > -L, --tape-length=3DNUM change tape after writing NUM x 1024 > bytes > ... > - > To get out of this list, please send email to majordomo(a)suse.com with > this text in its body: unsubscribe suse-linux-e >=20 ------------------------------------------------------------------------------ C. J. Tan E-mail: cjtan(a)acm.org Telephone: 1-403-220-8038=20 tanc(a)cuug.ab.ca 1-403-606-4257=20 URL: http://www.cuug.ab.ca/~tanc> Facsimile: 1-403-284-19= 80 "An engineer made programmer is one=20 who attempts to solve a problem, A programmer made engineer is one=20 who knows how to solve a problem." ------------------------------------------------------------------------------ - To get out of this list, please send email to majordomo(a)suse.com with this text in its body: unsubscribe suse-linux-e --===============7459861570755688963==-- From jpcowh01@ox.slug.louisville.edu Sun Jun 28 17:20:42 1998 From: jpcowh01@ox.slug.louisville.edu To: users@lists.opensuse.org Subject: Re: [S.u.S.E. Linux] dd question Date: Sun, 28 Jun 1998 13:20:42 -0400 Message-ID: <199806281720.NAA27324@ox.slug.louisville.edu> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1674785638707353632==" --===============1674785638707353632== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable >=20 > No, I guess I didn't phrase my question very well. I wanted to know how > to write a file to a tape spanning across more than 1 tape using 'dd'. >=20 >=20 > Regards, > C. J. Tan >=20 I believe that you'll have to manually keep track of how many blocks are bein= g stored on you medium, then skip that many blocks to write the next tape, th= en when constructing the file together, just take all the fragments and appen= d them... --===============1674785638707353632==-- From morche@sat1.de Sun Jun 28 22:54:01 1998 From: morche@sat1.de To: users@lists.opensuse.org Subject: Re: [S.u.S.E. Linux] dd question Date: Mon, 29 Jun 1998 00:54:01 +0200 Message-ID: <3596C989.DD764C35@sat1.de> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0328538448726456087==" --===============0328538448726456087== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit C. J. Kenneth Tan wrote: > > No, I guess I didn't phrase my question very well. I wanted to know how > to write a file to a tape spanning across more than 1 tape using 'dd'. ... In that case, You have to do the tape sizing by hand. Start dd using the option count to specify the count of blocks to write to each tape and the option skip to specify at which block to start to read from the source device or seek to give the start on the target device. For example: # Write device /dev/sda to 10MB sized tape cartridges within /dev/st0 dd if=/dev/sda bs=10240 skip=0 count=1024 of=/dev/st0; # change tape dd if=/dev/sda bs=10240 skip=1024 count=1024 of=/dev/st0; ... # Later read it back... dd of=/dev/sda bs=10240 seek=0 count=1024 if=/dev/st0; # Again, change tape dd of=/dev/sda bs=10240 seek=1024 count=1024 if=/dev/st0; ... - To get out of this list, please send email to majordomo(a)suse.com with this text in its body: unsubscribe suse-linux-e --===============0328538448726456087==--