Archive for August, 2009

FreeBSD : zapping file system error

My box crashed many times last week until its file system had inconsistency issue. In another words, it is corrupted. Even manual fsck won’t help fixing the issue. The problem appeared to be a directory had its “.” file missing!! Whenever I tried to remove the directory, “rm” with force option or “rmdir” utilities just complained about “bad file descriptor” and did nothing! Shit happened… Log is showing the error.

Aug 22 13:20:11 zeus fsck: /dev/label/usr: SETTING DIRTY FLAG IN READ_ONLY MODE
Aug 22 13:20:11 zeus fsck:
Aug 22 13:20:11 zeus fsck: /dev/label/usr: UNEXPECTED SOFT UPDATE INCONSISTENCY; RUN fsck MANUALLY.
Aug 14 03:15:18 zeus fsck: /dev/label/usr: 551052 files, 6960462 used, 14873313 free (244305 frags,
1828626 blocks, 1.1% fragmentation)

The solution is rather simple. Just use a handy utility, clri(8), to clear the corrupted inode. Reboot the box into single user mode and run fsck_ufs -y /dev/label/usr. fsck(8) will provide you the inode number which is corrupted.

Its usage is simple
clri special_device inode_number

In my case (i have geom_label. Thus, you are seeing /dev/label/usr here.):-
clri /dev/label/usr 5111832

Exit single user mode, login as usual and run “rm” or “rmdir” to remove the directory. Voila! A word of advice, messing around with inode is the least thing that you want to do. In any case, BACK UP YOUR STUFF BEFORE YOU ATTEMPT ANYTHING. YOU ARE WARNED!

Tuesday, August 25th, 2009

looks like me, sounds like me, but it ain’t me!

Just came across this picture today on Exabytes site.

Who do you think is this? :)

PS : geek00l said that person in the picture is not him!!! :)

Friday, August 21st, 2009

No internet filter? Are you sure?


themalaysianinsider.com ran a flip-flop story on Malaysian Internet censorship. “N” dude has firmly denied a plan to police the Internet citing technical obstacles and strong public displeasure over it. But “R” chap confirmed a possible “green dam” review and the government only intended to block access to pornographic sites. An obvious lack of communication within the ministers and government departments? Now let me show you what the “TM” dudes are doing.

dig @202.188.0.133 gutteruncensored.com ANY

; <<>> DiG 9.4.3-P2 <<>> @202.188.0.133 gutteruncensored.com ANY
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15423
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;gutteruncensored.com. IN ANY

;; ANSWER SECTION:
gutteruncensored.com. 3600 IN SOA ns1.blocked. blocked.tm.net.my. 1 900 600 86400 3600
gutteruncensored.com. 3600 IN NS ns1.blocked.
gutteruncensored.com. 3600 IN A 127.0.0.1

;; Query time: 27 msec
;; SERVER: 202.188.0.133#53(202.188.0.133)
;; WHEN: Sun Aug 9 15:15:01 2009
;; MSG SIZE rcvd: 132

Brilliant… filter via fake DNS records. Some of the gutteruncensor.com readers from Malaysia might have noticed this a week ago. Probably, the “TM” dudes decided, “Since MCMC is sleeping, screw both “N” and “R” dudes. Let them say what they wanted. I’m going ahead with my filtering Kung fu.” :)

Sunday, August 9th, 2009