Re: copy zImage _from_ floppy to disk

Alexandre Maret (amaret@infomaniak.ch)
Sat, 11 Jan 1997 22:06:57 +0100


Steve Cahill wrote:
>
> I seemed to have misplaced my zImage, but have it on the (simple) boot
> floppy.
>
> How can one use 'dd' to copy the boot zImage from the floppy to disk?

dd if=/dev/fd0 of=/zImage bs=1024 count=450

This is assuming that the kernel image is smaller than
450k (simple assumption). This will create a file bigger
than needed, but will work. I think that you could find
out the exact size of the kernel, but I'd have to look
at the sources...

alex

-- 
\\-----------------------------------------------------------\\
// Alexandre Maret -- Linux : The choice of a GNU generation //
\\ amaret@infomaniak.ch -- http://www.infomaniak.ch/~amaret  \\
//-----------------------------------------------------------//