Friday, May 7, 2010

How To Restore Grub In Ubuntu

Boot up your live CD


In the desktop, open terminal (Applications -> Accessories -> Terminal).





sudo grub





This will set it to grub mode





find /boot/grub/stage1





This will locate your boot partition. If you already know the location, you can ignore this step.

root (hd0,0)

Replace the (hd0,0) by your boot partition number. If your Ubuntu is installed in the second partition, then change it to (hd0,1)

setup (hd0)
quit

Reboot your system. You should be able to access the Grub bootloader now.

How To Restore Grub In Ubuntu

Boot up your live CD


In the desktop, open terminal (Applications -> Accessories -> Terminal).





sudo grub





This will set it to grub mode





find /boot/grub/stage1





This will locate your boot partition. If you already know the location, you can ignore this step.

root (hd0,0)

Replace the (hd0,0) by your boot partition number. If your Ubuntu is installed in the second partition, then change it to (hd0,1)

setup (hd0)
quit

Reboot your system. You should be able to access the Grub bootloader now.

Thursday, May 6, 2010

Find the MAC address Remotely

If you can ping this host over the LAN/WAN, his MAC address will be cached in ARP table of your NIC for a while, so, from command prompt:


 ping 1.2.3.4

after some echo replies from host 1.2.3.4

arp -a

and you will see MAC address of 1.2.3.4

You can try to specific as

/sbin/arp -a 192.168.1.1


You can also Try : PSTOOLS (freeware from Sysinternals) PSEXEC