UUGRN

Große Dateien unter Linux

From
Markus Hochholdinger <Markus@...>
Date
Hallo Liste,

ich habe mir mal die Mühe gemacht, und geschaut, was tar, gzip und bzip2
so mit großen (größer 2GB) Dateien machen. Also bei mir kann tar, gzip
und bzip damit umgehen. Beim Vergleichen ist mir aufgefallen, daß diff
nicht mit großen Dateien umgehen kann.

Das Log dieser Aktion:

$ uname -a
Linux xxxx 2.4.18-686 #1 Sun Apr 14 11:32:47 EST 2002 i686 unknown
$ dpkg -l | grep tar
ii tar 1.13.25-2 GNU tar
$ dpkg -l | grep gzip
ii gzip 1.3.2-3 The GNU compression utility.
$ dpkg -l | grep bzip
ii bzip2 1.0.2-1 A high-quality block-sorting file
compressor
$ dpkg -l | grep diff
ii diff 2.7-29 File comparison utilities
ii patch 2.5.4-11 Apply a diff file to an original
$ dpkg -l | grep textutils
ii textutils 2.0-12 The GNU text file processing
utilities.

ext3 fs:

$ ls -l
insgesamt 2447692
-rw-r--r-- 1 mh root 2503986294 31. Mai 15:45 bigfile
$ tar -cvvf bigfile.tar bigfile
-rw-r--r-- mh/root 2503986294 2003-05-31 15:45:58 bigfile
$ ls -al
insgesamt 4895404
-rw-r--r-- 1 mh root 2503986294 31. Mai 15:45 bigfile
-rw-r--r-- 1 mh root 2503997440 31. Mai 17:36 bigfile.tar
$ gzip bigfile.tar
$ ls -l
insgesamt 4866180
-rw-r--r-- 1 mh root 2503986294 31. Mai 15:45 bigfile
-rw-r--r-- 1 mh root 2474107582 31. Mai 17:36
bigfile.tar.gz
$ gunzip bigfile.tar.gz
$ gunzip bigfile.tar.gz
$ bzip2 bigfile.tar
$ ls -l
insgesamt 4882476
-rw-r--r-- 1 mh root 2503986294 31. Mai 15:45 bigfile
-rw-r--r-- 1 mh root 2490778524 31. Mai 17:36
bigfile.tar.bz2
$ bunzip2 bigfile.tar.bz2
$ ls -l
insgesamt 4895396
-rw-r--r-- 1 mh root 2503986294 31. Mai 15:45 bigfile
-rw-r--r-- 1 mh root 2503997440 31. Mai 17:36 bigfile.tar
$ mv bigfile bigfile.original
$ tar -xvf bigfile.tar
bigfile
$ diff bigfile.original bigfile
diff: bigfile.original: Value too large for defined data type
diff: bigfile: Value too large for defined data type
$ split -b 1024m bigfile "bigfile."
$ split -b 1024m bigfile.original "bigfile.original."
$ ls -l
insgesamt 12238488
-rw-r--r-- 1 mh root 2503986294 31. Mai 15:45 bigfile
-rw-r--r-- 1 mh root 1073741824 1. Jun 13:07 bigfile.aa
-rw-r--r-- 1 mh root 1073741824 1. Jun 13:16 bigfile.ab
-rw-r--r-- 1 mh root 356502646 1. Jun 13:18 bigfile.ac
-rw-r--r-- 1 mh root 2503986294 31. Mai 15:45
bigfile.original
-rw-r--r-- 1 mh root 1073741824 1. Jun 13:39
bigfile.original.aa
-rw-r--r-- 1 mh root 1073741824 1. Jun 13:48
bigfile.original.ab
-rw-r--r-- 1 mh root 356502646 1. Jun 13:51
bigfile.original.ac
-rw-r--r-- 1 mh root 2503997440 31. Mai 17:36 bigfile.tar
$ diff bigfile.original.aa bigfile.aa
$ diff bigfile.original.ab bigfile.ab
$ diff bigfile.original.ac bigfile.ac
$ diff bigfile.original.ac bigfile.ac
$

Gruß
\|/
MH (o o)
------------------------------------------------------oOO--U--OOo--
Markus Hochholdinger
e-mail mailto:Markus@... .oooO
www http://www.hochholdinger.net ( ) Oooo.
------------------------------------------------------\ (----( )-
\_) ) /
(_/

Thread

Follow-ups: