[wplug] using dd to get 1474560 bytes
Poyner, Brandon
bpoyner at ccac.edu
Sun Jul 11 11:43:02 EDT 2004
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 5762 bytes
Desc: not available
Url : http://penguin.wplug.org/pipermail/wplug/attachments/20040711/9bec6a97/attachment-0001.bin
More information about the wplug
mailing list