12 Dec
2003
12 Dec
'03
22:06
Tom Emerson
dd if=/dev/md0 of=/snapshot/oldroot
In other words, rather than copying "the partition" to "another partition", I'm copying a "partition" TO a "file". After much copying, "df" reported 30mb remaining on the "snapshot" device [JUST made it!]
30mb = 0.00375 B is really a small amount of disk space. Anyway, it is also possible to compress the file: dd if=/dev/md0 | bzip2 > /snapshot/oldroot.bz2 My experience is that the compression ratio is not quite good for this kind of data so "gzip -1", which is much faster, may be a better option. But then you have to work with the original partition. -- A.M.