Archive for October, 2009


Two days before i was changing my -inx operating system in my laptop…i was changing the os from ubuntu to laptop also had windows vista in another partition….every thing went well till the booting time…when i entered into fc11it was working perfectly okay except my bluetooth headset which it was not able to detect…thats okay for me coz i already have the solution for that..(that will be my topic for the next blog)…

But when i tried to enter into windows it was showing some error “BOOTMGR is missing… Press Ctrl+Alt+Del to restart” eventhough i press the much famed ctrl+alt+del key combination it was not helping my cause…i.e. it still showed the error…

i tried my hand with reinstalling the windows vista…it also didn’t help…but in turn made my -inx partition as free space….

so after numerous attempt i was possible to find the solution for this…

if that problem occurs don’t panic…

there are mainly two methods to get rid of the problem

1) boot your computer with windows vista recovery/installation CD and go to repair options…then click on the command prompt the command prompt type “bootrec /fixboot” or “bootrec /rebuidbcd”

2) if the problem still persists as in my case…just boot up into the -inx which ever u have installed..

in the console type ‘fdisk -l’ you should see just like the picture given below..

fdisk -l

just check for the partition having “*” as you can see in my case one will be windows and one will be for linux…here get the partition number for linux (i.e. just count from the first partition starting from 0) …

check your ‘/boot/grub/menu.lst’ for the corresponding windows entry…check whether the partition¬† number is correct as per the value calculated by you…

that’s it…

Happy Programming….N’Joy…


while working in network programming (linux), i stumbled upon a command line -nix based tool named “tcpdump”. tcpdump is a common packet analyser that allows the user to intercept and display TCP/IP and other packets being transmitted or received over a network to which the computer is attached.

After I used it for the first time, i became so obsessed with tcpdump that i began to intercept all the packets travelling through my network, for fun..haha…

So lets start and share some of the functionalities i observed during the usage of the tool…

As I have already told you, this is a command based open a gnome-terminal and shoot the command

# tcpdump -i eth0 (as the symbol in terminal indicates you should be in root)

so if i am correct you should see this screen…


As you can see that it is listing all the packets received by you in your computer..

just take a close watch on that. The big number followed by the ip address is the port number and the symbol ‘>’ denotes the source ip address from where the packets have come. This tool will even list the data carried by each packets for this see the last part of each line.

Next, if you want more interactive viewing of the packets retreived just type

# tcpdump -i eth0 -x

you will get a screen similar to this one


here you can see the hex value of data in the packets each 16-bits grouped as column.

There are a lot of options that can be used with the tcpdump so that we can filter the particular data from a source or to a particular destination as well as from or to a particular port number…

here are some of the example

# tcpdump -i eth0 -x -p ip src <ipaddress>

will give packets having source address <ipaddress>

#tcpdump -i eth0 -x -p ip dst <ipaddress>

will list all the packets bearing the destination address <ipadress>

#tcpdump -i eth0 -x -p ip src <ipaddress1> and dst <ipaddress2>

will list all the packets bearing the src address as ipadress1 and dst address as ipaddress2

#tcpdump -i wlan0 -x

will lists all the packets if you are using wifi connection

#tcpdump -i eth0 -x port 6666

will lists all packets from port number 6666

#tcpdump -i eth0 -xmulticast/broadcast

will lists all the packets having multicast/broadcast address

#tcpdump -i eth0 -x less 120

#tcpdump -i eth0 -x greater 90

will lists all the pavkets having length more than 90 bytes

thats all ….for more updates and more options check the man page of tcpdump….

Happy Coding…N’Joy…