Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=2736944
By: szaka
> du sees it as the 2gb file, but ls and x see it as 21gb. whats up with
> that?
It's a sparse file. A file is sparse if it has unallocated blocks (holes).
The reported size of such files are always higher than the disk space
consumed by them. The du command can tell the real disk space used by a
sparse file. The holes are always read as zeros. All major Linux and Unix
filesystem like, ext2, ext3, reiserfs, Reiser4, JFS and XFS, supports
sparse files but for example the ISO 9600 CD-ROM filesystem doesn't.
> will this cause problems when i try to put it on a dvdr?
It depends how you write it. E.g. Iso9660 doesn't support sparse files so
it would cause problem.
> i guess i could try compessing it first that might make it relize its
> only 2gb. let me know what you think.
Yes, quite probably you must compress it. But use the method what's
written in the manual:
Space and speed-wise the most efficient way to compress a clone image
tar -cjSf ntfs.img.tar.bz2 ntfs.img
Uncompressing a tar archived clone image
tar -xjSf ntfs.img.tar.bz2
You can use gzip too of course ('z' option for tar), that's usually much faster
but the outputs are a bit bigger.
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=44085
|