Subject: Re: Problem writing boot.fs to floppy
To: Lehle Wolf <Wolf.Lehle@med.siemens.de>
From: Chris G. Demetriou <cgd@netbsd.org>
List: port-i386
Date: 06/27/1999 23:59:30
cgd@netbsd.org (Chris G. Demetriou) writes:
> Lehle Wolf <Wolf.Lehle@med.siemens.de> writes:
> > While trying to put the file boot.fs (size: 1,479,800) to a DOS-floppy
> > (size: 1,457,664) using rawrite.exe the floppy controller complaint.
> 
> uh...
> 
> [ ... ]
> ftp> get boot.fs.gz |"gzip -dc | wc"
> local: |gzip -dc | wc remote: boot.fs.gz
> 227 Entering Passive Mode (204,152,184,75,212,214)
> 150 Opening BINARY mode data connection for 'boot.fs.gz' (1415104 bytes).
>  5240 31962 1474560 
> 226 Transfer complete.
> 1415104 bytes received in 01:14 (18.60 KB/s)
> 
> That's a different size than the boot.fs that you seem to have.
> 
> Did you download it to the windows box in binary mode?  (AFAIK, if you
> use the windows DOS shell 'ftp' program, it defaults to ASCII mode...)

doing the math, i note:

1474560 is the correct size of the file.
5240 is the number of 'lines' according to wc (i.e. newline chars) in
	the file

If the newlines are translated by ftp in ASCII mode into CR/NL, or
NL/CR, then you'll have 5240 extra characters:

1474560 + 5240 = 1479800

1479800 is, of course, the size of the file you have.

I think you almost certainly downloaded it in ascii mode.  8-)


cgd
-- 
Chris Demetriou - cgd@netbsd.org - http://www.netbsd.org/People/Pages/cgd.html
Disclaimer: Not speaking for NetBSD, just expressing my own opinion.