From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c9e08fb8bf7d00e X-Google-Attributes: gidfee84,public From: walker@avenir.cerl.uiuc.edu (Michael W. Walker) Subject: Re: abnormal file size Date: 1995/05/17 Message-ID: <3pd8l6$7nd@vixen.cso.uiuc.edu>#1/1 X-Deja-AN: 102838688 references: <3pd6fa$d73@news.uni-c.dk> organization: University of Illinois at Urbana-Champaign newsgroups: comp.unix.osf.osf1 In article <3pd6fa$d73@news.uni-c.dk>, Marianne wrote: >Hello Everybody, > > I hope somebody can help me with this. I have a file which looks like >it's 3.3GB on a 1GB disk. 'ls -l' give 3.3GB and whenever I try to copy, >backup, ftp the file it really come out as 3.3GB. The file is really 7MB >and 'du -k' give the right size. I've tried to fsck the disk without >success. > I suspect it is a "sparse" file. If you need to copy it, but don't want the copy to occupy additional space, use the "dd" command with conv=sparse. Eg: dd if=original of=copy conv=sparse if memory serves me right. See dd in man pages if this doesn't work.