From owner-freebsd-questions Mon May 27 15:17:53 2002 Delivered-To: freebsd-questions@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id 7072137B400 for ; Mon, 27 May 2002 15:17:49 -0700 (PDT) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 27 May 2002 23:17:48 +0100 (BST) To: lewiz Cc: freebsd-questions@freebsd.org Subject: Re: GRUB. In-Reply-To: Your message of "27 May 2002 22:15:49 BST." <1022534149.359.4.camel@turtle.lewiz.org> Date: Mon, 27 May 2002 23:17:48 +0100 From: Ian Dowse Message-ID: <200205272317.aa58224@salmon.maths.tcd.ie> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <1022534149.359.4.camel@turtle.lewiz.org>, lewiz writes: >root@turtle /usr/local/share/grub/i386-freebsd # dd if=stage2 of=/dev/fd0 bs=512 seek=1 >dd: /dev/fd0: Invalid argument >206+1 records in >206+0 records out >105472 bytes transferred in 4.463077 secs (23632 bytes/sec) FreeBSD's devices are all "raw", meaning that you can only read and write data in chunks that make sense to the hardware. In this case the file you are copying is not a multiple of the sector size (512 bytes) so dd fails to write the final partial sector. Try these dd arguments instead: dd if=stage2 of=/dev/fd0 obs=512 conv=osync seek=1 The "conv=osync" tells dd to pad out the final block with zeros. Ian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message