[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: ISO file size in bytes?



On Wed, 2007-10-24 at 22:56 -0500, Matt Domsch wrote:
> On Wed, Oct 24, 2007 at 11:44:08PM -0400, Jon Masters wrote:
> > 
> > Right, but I think what he's saying is that he *didn't* have the ISO
> > file to hand - but did have a DVD he could dd from - and he wanted a way
> > to find out how big the image should have been without downloading it.
> 
> Go to bed Jon, you didn't read far enough. :-)  You would have seen
> the appended script do:
> 
> BLOCKS=`isoinfo -d -i ${DEVICE} | grep "Volume size" | awk '{print $4}'`
> dd if=${DEVICE} of=${FILENAME} bs=2k count=${BLOCKS}
> 
> where DEVICE=/dev/cdrom  or whatever device had the media.

Yeah. I suck. Too much Red Sox and coffee, not enough reading...sorry
Matt - sooner or later I'll learn :-)

Jon.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]