[wplug] using dd to get 1474560 bytes
Gentgeen
gentgeen at linuxmail.org
Sun Jul 11 23:09:48 EDT 2004
That did not do it for me. I accidentally posted this same email to the K12LTSP list, and one of their replies confermes what I was originally thinking, that something was wrong with the script. The other reply was --
[SNIP]
Looks to me like the mbcd script is using the wrong tool. The results
of du -b will vary depending on the kind of filesystem on which the
file resides. On a fat filesystem du reports a floppy image as 1474560
while on ext3 it's 1478656.
--
Mike Wescott
[/SNIP]
On Sun, 11 Jul 2004 11:43:02 -0400
"Poyner, Brandon" <bpoyner at ccac.edu> wrote:
> Give this a try, I'm not certain it will help but it forces dd to not truncate the output file.
>
> dd if=/dev/fd0 of=floppy.img bs=1024 count=1440 conv=notrunc
>
> du -b really prints the apparent size, according to the man page.
>
> print apparent sizes, rather than disk usage; although the
> apparent size is usually smaller, it may be larger due to holes
> in ('sparse') files, internal fragmentation, indirect blocks,
> and the like
>
> -----Original Message-----
> From: Gentgeen [mailto:gentgeen at linuxmail.org]
> Sent: Sat 7/10/2004 10:38 PM
> To: wplug
> Cc:
> Subject: [wplug] using dd to get 1474560 bytes
>
>
>
> I have a strange problems, I am trying to make a multi-boot CD, using
> MBCD. (This is a script/program found at
> http://cowww.epfl.ch/~swalter/mbcd/) It is a really great way for me to
> get a number of my own boot floppies onto one CD, and reduce the clutter
> in my toolbox.
>
> I made an image of a boot floppy using 'dd if=/dev/fd0 of=floppy.img'
> and did not see any errors. when I do a 'ls -l' it shows floppy.img to
> be 1474560 bytes. But when I do a 'du -b' it shows floppy.img to be
> 1478656 bytes. Now the mbcd script uses the 'du -b' method to verify
> the size of the image, and requires it to be 1474560 or 2949120 bytes.
>
> So what am I doing wrong? I tried adding bs=1474560 and bs=2x80x18b to
> the 'dd' command, but no change. I have also tried it with 3 different
> boot floppies.
>
>
>
> ******************************************************************
> Associate yourself with men of good quality if you esteem your own
> reputation; for 'tis better to be alone then in bad company.
> - George Washington, Rules of Civility
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug
>
>
******************************************************************
Associate yourself with men of good quality if you esteem your own
reputation; for 'tis better to be alone then in bad company.
- George Washington, Rules of Civility
More information about the wplug
mailing list