Hi Chad,

> I know he data on the disk is only around 80M, but dd copies the 
> whole CD (600M+). Someone mentioned a file called isofilesize or 
> similar that determines the size of the iso filesystem so that dd 
> will only copy the iso image and not the disk padding. Does anyone 
> know where this file is located or how to get the used portion of the 
> CD without the padding.

 I usually mount the CD and estimate its file size with df, then unmount and 
dd it. Something like:
mount /mnt/cdrom
df | grep /mnt/cdrom
umount /mnt/cdrom
dd if=/dev/cdrom of=Image.img bs=1k count=<size from df>
 You could use a block size of 2k (CD block size is 2k) and divide the count 
by 2, but I am not sure if this really improves performance. Wouldn't hurt 
though.

                                        Bye,

                                        Leonard.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to