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

Re: ideas about moving Debian to another hard drive

> Some time ago it was rumored that cp cannot copy files with holes, it
> just fills the holes :-( There's even a package to work around this,
> perforate. Is it still true that cp -a cannot preserve holes?
> Carlos

No, this rumor is quite easy to falsify.  GNU cp makes a copy with
holes iff the original has holes.

$ dd if=/dev/zero of=foo bs=1k count=200
200+0 records in
200+0 records out
$ cp foo bar
$ du -s foo bar
201     foo
201     bar

$ zum foo
foo [1608K]  [1 link]
$ cp foo bar1
$ du -s foo bar bar1
0       foo
201     bar
0       bar1

TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .

Reply to: