April 2005 Archives

Examining Linux file fragmentation

| No Comments

Ever wonder if an individual file is fragmented or not? The little known filefrag utility shipped as part of the e2fsprogs package can answer that question for files on ext2 and ext3 filesystems.

Examples:

# filefrag /usr/bin/bc
/usr/bin/bc: 5 extents found, perfection would be 1 extent

Or the verbose mode:

# filefrag -v /usr/bin/bc
Checking /usr/bin/bc
Filesystem type is: ef53
Filesystem cylinder groups is approximately 4976
Blocksize of file /usr/bin/bc is 4096
File size of /usr/bin/bc is 62636 (16 blocks)
First block: 350680
Last block: 354750
Discontinuity: Block 1 is at 352866 (was 350680)
Discontinuity: Block 5 is at 352981 (was 352869)
Discontinuity: Block 12 is at 352998 (was 352988)
Discontinuity: Block 13 is at 354748 (was 352998)
/usr/bin/bc: 5 extents found, perfection would be 1 extent

To examine fragmentation for an entire ext2/ext3 filesystem use the e2fsck command on the filesystem. When it finishes running it will report fragmentation details.

IP netblock 48.0.0.0/8 now allocated

| No Comments

If you filter unassigned IP addresses (considered bogons) you should update it to allow IP addresses in the 48 netblock.

It has been allocated to Africa by the Internet Assigned Number Authority.

Here at Guru Labs, our border router has a multi-hop BGP peering session with the Team Cymru Bogon route servers so our router now allows these packets in automatically.

Putty Math

| No Comments

putty-math.jpg

Another student putty creation.

Take my PIN not my finger

| No Comments

The problem with bio-metrics is that if the thief wants to take the "authenticator" with them, it is a bit more painful process then just giving them a set of keys or a pin number.

Anyone who has watched Demolition Man knows this and the following news story about finger stealing thiefs shouldn't be a surprise:

http://news.bbc.co.uk/2/hi/asia-pacific/4396831.stm

http://www.theregister.co.uk/2005/04/04/fingerprint_merc_chop/

About this Archive

This page is an archive of entries from April 2005 listed from newest to oldest.

March 2005 is the previous archive.

May 2005 is the next archive.

Find recent content on the main index or look in the archives to find all content.