Estimating left space on a CD...

Andrea Giuliano a.giuliano at iccu.sbn.it
Fri Aug 27 10:39:24 UTC 2004


Hi,

I'm writing a BASH script to do simple backups on a CD-RW, but I can't
find a way to know how much space is left on the medium.

A trivial solution could be mounting the medium and use "du -sk" on it,
but the disadvantage of this method is that the result would just be the
total length of the original files, while the ISO images are usually
slightly longer. The result is an underestimated value.

Any hints?

Best regards.

----
Andrea Giuliano, Ph. D.
ICCU - Istituto Centrale per il Catalogo Unico
Viale Castro Pretorio 105, Rome - ITALY
Tel. +39064989509, Fax +39064059302





More information about the fedora-list mailing list