Re: tar a file on dos floppies
- From: Logan Shaw <lshaw-usenet@xxxxxxxxxxxxx>
- Date: Fri, 10 Nov 2006 07:32:15 GMT
dave wrote:
I have to tar a large file on to multiple floppies and view it on a dos box.
What is the best way to do this?
I was thinking something like tar -cvf /dev/fd0 file.out
would I be able to take these floppies and see them on a dos box?
That is going to take the tar archive and write it directly onto
the floppy. It will overwrite the FAT filesystem that is normally
on a DOS floppy. The DOS machine will see it as an unformatted,
garbage floppy because you will have overwritten the FAT structure
that the DOS machien is looking for.
Can I tar to a dos formatted floppy like that?
Whether it's DOS-formatted or in any other format is irrelevant
once you've written over it with the tar command.
Is there a another utility I need to run to get files ready for viewing in
dos?
Well, of course it depends on what kind of files they are! If they
are ELF-format object files, you'll need an application on the DOS
machine than can understand the files.
If you merely want to take a big file (bigger than a floppy) and
transfer it via floppy to a DOS machine and then recreate it, you
can do this:
1) Use the "split" command to break it up into files small enough
to fit on floppies.
2) Copy the files to each floppy, as a file on the floppy's
filesystem. This might mean mounting the floppy, or maybe
using mtools. It depends on the version of Unix.
3) When you get to the DOS machine, copy them all to the
hard disk, then do this to concatenate them back together:
copy /b file1.bin+file2.bin+file3.bin origfile.xyz
Yes, that's right -- DOS has an equivalent of the Unix "cat"
command.
- Logan
.
- References:
- tar a file on dos floppies
- From: dave
- tar a file on dos floppies
- Prev by Date: tar a file on dos floppies
- Next by Date: Restricting the Access to a Linux Server
- Previous by thread: tar a file on dos floppies
- Next by thread: Re: tar a file on dos floppies
- Index(es):
Relevant Pages
|