Estimating left space on a CD...

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

 



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



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux