Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jun 2007 14:57:22 -0700
From:      Jeremy Chadwick <koitsu@FreeBSD.org>
To:        Morgan Reed <morgan.s.reed@gmail.com>
Cc:        stable@freebsd.org
Subject:   Re: PXE booting issues
Message-ID:  <20070624215722.GA15392@eos.sc1.parodius.com>
In-Reply-To: <b024b3480706240427k2433f709me6c8b770a1d46cc@mail.gmail.com>
References:  <b024b3480706240427k2433f709me6c8b770a1d46cc@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jun 24, 2007 at 09:27:42PM +1000, Morgan Reed wrote:
>  ==============
>  dd if=pxeboot.tmp of=pxeboot obs=2k conv=osync
>  425+0 records in
>  107+0 records out
>  ==============
>  The discrepancy in the records in and the records out is concerning
>  but I would expect the file to exist regardless, I'm currently using
>  the default /boot/pxeboot.

The default blocksize in dd is 512 -- that is, ibs=512 and obs=512.  If
you only specify obs, ibs still remains at 512.

2048 / 512 = 4.  107 * 4 == 428, which is about 425; chances are the
file isn't *exactly* on a 2047-byte boundary, which explains the
"missing 3".

If you do "bs=2k", you should see both 107 records in and out.

I hope this helps clear up any concern over that part.

-- 
| Jeremy Chadwick                                    jdc at parodius.com |
| Parodius Networking                           http://www.parodius.com/ |
| UNIX Systems Administrator                      Mountain View, CA, USA |
| Making life hard for others since 1977.                  PGP: 4BD6C0CB |




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