Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 May 2002 23:17:48 +0100
From:      Ian Dowse <iedowse@maths.tcd.ie>
To:        lewiz <purple@lewiz.info>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: GRUB. 
Message-ID:   <200205272317.aa58224@salmon.maths.tcd.ie>
In-Reply-To: Your message of "27 May 2002 22:15:49 BST." <1022534149.359.4.camel@turtle.lewiz.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi? <200205272317.aa58224>