About this captureCOLLECTED BY Organization: Alexa Crawls Starting in 1996, Alexa Internet has been donating their crawl data to the Internet Archive. Flowing in every day, these data are added to the Wayback Machine after an embargo period. Collection: Alexa Crawls DE Crawl data donated by Alexa Internet. This data is currently not publicly accessible TIMESTAMPS
Given that I’ve only tested this on a couple of filesystems, I’m askingthat people play things safe with this.
Please ,download and read` this page as well if you download the software.
cd mountpointmount -o remount,noatime mountpointtouch /tmp/md5 /tmp/md5bchattr -m gzip6 -b 32 /tmp/md5 /tmp/md5bfind -xdev -type f -print0|tr \\0\\n \\n\\0|sort|tr \\0\\n \\n\\0| xargs -0 md5sum > /tmp/md5cd /umount mountpointe2fsck -f /dev/xxxe2defrag -r -n -v /dev/xxxe2defrag -n -v /dev/xxxe2fsck -f /dev/xxxmount -o noatime mountpointcd mountpointfind -xdev -type f -print0|tr \\0\\n \\n\\0|sort|tr \\0\\n \\n\\0| xargs -0 md5sum > /tmp/md5bdiff /tmp/md5 /tmp/md5bmount -o atime,remount mountpoint
The diff shouldn’t find any differences, of course.
If you run e2defrag without any arguments, it’ll showyou a brief usage message so you can see what those options do.
The reason for running e2defrag once beforehandreadonly is that that can catch some problems, and it’s better to findthat there is a problem before it’s munged yourfilesystem 🙂 .
The tr and sort probably isn’t necessary, btw.
The reason for running e2fsck beforehand isa) e2defrag can stuff up if the filesystem isn’tvalid, and b) if the e2fsck afterwards shows anyproblems, then we can be sure that e2defrag introducedthe problems.
For my 500MB partition, /tmp/md5 takes up:
$ e2ratio /tmp/md54905 1668 34.0% /tmp/md5
Doing the md5sums does take up some time, but it’s worth it for thesereasons:
- If there is a bug in this e2defrag, then it is best to find out as soon as possible, so that as few filesystems as possible are affected.
- If damage is done to a file, then you probably want to know about it so that you can restore that file.
Naturally, don’t use it with stuff that you can’t afford to lose.As I say, I haven’t read through the whole of thee2defrag sources, and maybe there are problems that ane2fsck and md5sum check won’t catch.
If you do have any problems, please post a note to the e2compr mailing list, email@example.com.(By posting to the mailing list, other people will be aware of the problem sooner than if you’d just sent a note to me.)
defrag-e2c_0.73.1-1.1_i386.deb: Debian i386 package (glibc binaries).
defrag-e2c-0.73.1-1.1.tar.gz:Source (including e2compr and Debian modifications).
Unfortunately I don’t have a copy of standard defrag-0.73, so can’t provide the usual files (e.g. e2compr diffs, Debian diffs separately).
See instructions in installing with other distributions if you don’t use x86 glibc Debian.
Return to Main Entrance
e2compr maintainersLast modified: Fri Dec 11 10:37:20 EST 1998