Restore GRUB2 after installing Windows


How I Restored GRUB2 after a Windows 7 InstallGRUB2 (Grand Unified Bootloader)  is a universal bootloader used by Ubuntu and other Linux Distributions. If you have a Linux Distribution installed on a partition, and attempt to  install Windows alongside it, your GRUB bootloader will be overwritten by the Windows bootloader, and your computer will only boot into Windows.


Recovering the GRUB2 Bootloader after a Windows Install  is simple. When finished, your Bootloader should detect all installed Operating Systems and automatically add a bootable menu item for each of them.

Note: This GRUB2 Installation process assumes that a Linux Partition still exists. If you overwrote Linux with Windows, this tutorial will not work for you, as there is no Linux system to recover boot.


How to Restore GRUB2 after installing Windows:
  1. Boot from an Ubuntu Live CD or Live USB
  2. Once up and running, Open a Terminal Open a Terminal
  3. Type sudo su (press enter after typing each command)
  4. Type fdisk -l 
  5. Type sudo su and then fdisk -l
  6. Note which device contains your Linux partition (IE: /dev/sda1) Locate your Linux Device
  7. Type mount /dev/sdx# /mnt (replacing x# with your actual device and partition number)
  8. Type mount --bind /dev /mnt/dev
  9. Type mount --bind /proc /mnt/proc
  10. Type cp /etc/resolv.conf /mnt/etc/resolv.conf
  11. Type chroot /mnt
  12.  mount and chroot
  13. Type grub-install --recheck /dev/sdx (replacing x with your actual device)
  14. Type reboot (to reboot your PC) Install grub 2 and reboot
Make sure to remove your Live USB or CD. Upon reboot you should be presented with a GRUB2 menu. However, Windows is missing. Now, I show you how to fix that.


Making GRUB 2 detect Windows Installs:
  1. Proceed to boot into your Linux environment.
  2. Open a terminal and type sudo update-grub (enter your root password when prompted) sudo update-grub


If all went well, grub should have updated it's menu entries to reflect what it detected. Including existing Windows partitions.

99 ways to make your computer amazingly fast

Over the last several years working in IT for various companies as a Systems Administrator, Network Administrator, and Help Desk professional, I’ve written and learned about many ways to increase the performance of not only my PC, but also of the many PCs on my networks ranging from Windows 98 to Windows Vista to Windows 7.

In this article, I hope to compile a complete list of all the different methods and tricks that I’ve used to get the last bit of juice out of a slow PC. Whether you are using an old PC or the latest and greatest in hardware, you can still use some of these to make your PC run faster.

Note that since I write blogs, I have previously written about many performance tips already which I will link back to throughout. If I have not written about it, I’ve throw in a link to a relevant article from some of my other favorite sites. This list is in no particular order, just written in the order that I could think of them.

There are probably a lot of great tweaks and performance hacks that I’ve missed here, so feel free to chime in with comments! Enjoy!

1. Defragment your computer hard disk using free tools like SmartDefrag.

2. You should also defragment your Windows pagefile and registry.

3. Clean up hard drive disk space being taken up by temporary files, the recycle bin, hibernation and more. You can also use a tool like TreeSize to determine what is taking up space on your hard drive.

4. Load up Windows faster by using Startup Delayer, a free program that will speed up the boot time of Windows by delaying the startup of programs.

5. Speaking of startup programs, many of them are useless and can be turned off. Use the MSCONFIG utility to disable startup programs.

6. By default, the size of the paging file is controlled by Windows, which can cause defragmentation. Also, the paging file should be on a different hard drive or partition than the boot partition. Read here on the rules for best paging file performance.

7. In Windows XP and Vista, the Windows Search indexing service is turned on for all local hard drives. Turning off indexing is a simple way to increase performance.

8. If you don’t care about all the fancy visual effects in Windows, you can turn them off by going to Performance Options.

9. You can optimize the Windows boot time using a free program called Bootvis from Microsoft.

10. Clean your registry by removing broken shortcuts, missing shared DLLs, invalid paths, invalid installer references and more. Read about the 10 best and free registry cleaners.

11. One of the main reasons why PC’s are slow is because of spyware. There are many programs to remove spyware including Ad-Aware, Giant Antispyware, SUPERAntiSpyware, and more.

12. If you have a deeper spyware infection that is very hard to remove, you can use HijackThis to remove spyware.

13. Remove unwanted pre-installed software (aka junk software) from your new PC using PC Decrapifier.

14. Disable unnecessary Windows services, settings, and programs that slow down your computer.

15. Tweak Windows XP and tweak Windows Vista settings using free programs

16. Disable UAC (User Account Control) in Windows Vista

17. Tweak your mouse settings so that you can copy and paste faster, scroll faster, navigate quickly while browsing and more. Read here to learn how to tweak your mouse.

18. Delete temporary and unused files on your computer using a free program like CCleaner. It can also fix issues with your registry.

19. Delete your Internet browsing history, temporary Internet files, cookies to free up disk space.

20. Clean out the Windows prefetch folder to improve performance.

21. Disable the XP boot logo to speed up Windows boot time.

22. Reduce the number of fonts that your computer has to load up on startup.

23. Force Windows to unload DLLs from memory to free up RAM.

24. Run DOS programs in separate memory spaces for better performance.

25. Turn off system restore only if you regularly backup your Windows machine using third party software.

26. Move or change the location of your My Documents folder so that it is on a separate partition or hard drive.

27. Turn off default disk performance monitors on Windows XP to increase performance.

28. Speed up boot time by disabling unused ports on your Windows machine.

29. Use Process Lasso to speed up your computer by allowing it to make sure that no one process can completely overtake the CPU.

30. Make icons appear faster while browsing in My Computer by disabling search for network files and printers.

31. Speed up browsing of pictures and videos in Windows Vista by disabling the Vista thumbnails cache.

32. Edit the right-click context menu in Windows XP and Vista and remove unnecessary items to increase display speed.

33. Use the Windows Performance Toolkit and the trace logs to speed up Windows boot time.

34. Speed up your Internet browsing by using an external DNS server such as OpenDNS.

35. Improve Vista performance by using ReadyBoost, a new feature whereby Vista can use the free space on your USB drive as a caching mechanism.

36. If you have a slow Internet connection, you can browse web pages faster using a service called Finch, which converts it into simple text.

37. Use Vista Services Optimizer to disable unnecessary services in Vista safely.

38. Also, check out my list of web accelerators, which are programs that try to prefetch and cache the sites you are going to visit.

39. Speed up Mozilla Firefox by tweaking the configuration settings and by installing an add-on called FasterFox.

40. Learn how to build your own computer with the fastest parts and best hardware.

41. Use a program called TeraCopy to speed up file copying in Windows XP and Vista.

42. Disable automatic Last Access Timestamp to speed up Windows XP.

43. Speed up the Start Menu in Vista by hacking the MenuShowDelay key in the registry.

44. Increase the FileSystem memory cache in Vista to utilize a system with a large amount of RAM.

45. Install more RAM if you are running XP with less than 512 MB or Vista with less than 1 GB of RAM.

46. Shut down XP faster by reducing the wait time to kill hung applications.

47. Make sure that you have selected “Adjust for best performance” on the Performance tab in System Properties.

48. If you are reinstalling Windows, make sure that you partition your hard drives correctly to maximize performance.

49. Use Altiris software virtualization to install all of your programs into a virtual layer that does not affect the registry or system files.

50. Create and install virtual machines for free and install junk program, games, etc into the virtual machines instead of the host operating system. Check out Sun openxVM.

51. Do not clear your paging file during shutdown unless it is needed for security purposes. Clearing the paging file slows down shutdown.

52. If your XP or Vista computer is not using NFTS, make sure you convert your FAT disk to the NTFS file system.

53. Update all of your drivers in Windows, including chipset and motherboard drivers to their latest versions.

54. Every once in a while run the built-in Windows Disk Cleanup utility.

55. Enable DMA mode in Windows XP for IDE ATA/ATAPI Controllers in Device Manager.

56. Remove unnecessary or old programs from the Add/Remove dialog of the Control Panel.

57. Use a program click memtest86 or Prime95 to check for bad memory on your PC.

58. Determine your BIOS version and check the manufactures website to see if you need to update your BIOS.

59. Every once in a while, clean your mouse, keyboard and computer fans of dust and other buildup.

60. Replace a slow hard drive with a faster 7200 RPM drive, SATA drive, or SAS drive.

61. Changing from Master/Slave to Cable Select on your hard drive configuration can significantly decrease your boot time.

62. Perform a virus scan on your computer regularly. If you don’t want to install virus protection, use some of the free online virus scanners.

63. Remove extra toolbars from your Windows taskbar and from your Internet browser.

64. Disable the Windows Vista Sidebar if you’re not really using it for anything important. All those gadgets take up memory and processing power.

65. If you have a SATA drive and you’re running Windows Vista, you can speed up your PC by enabling the advanced write caching features.

66. Learn how to use keyboard shortcuts for Windows, Microsoft Word, Outlook, or create your own keyboard shortcuts.

67. Turn off the Aero visual effects in Windows Vista to increase computer performance.

68. If you are technically savvy and don’t mind taking a few risks, you can try to overclock your processor.

69. Speed up the Send To menu in Explorer by typing “sendto” in the Run dialog box and deleting unnecessary items.

70. Make sure to download all the latest Windows Updates, Service Packs, and hot fixes as they “normally” help your computer work better.

71. Make sure that there are no bad sectors or other errors on your hard drive by using the ScanDisk orchkdsk utility.

72. If you are not using some of the hardware on your computer, i.e. floppy drive, CD-ROM drive, USB ports, IR ports, Firewire, etc, then go into your BIOS and disable them so that they do not use any power and do not have to be loaded during boot up.

73. If you have never used the Recent Documents feature in Windows, then disable it completely as a long list can affect PC performance.

74. One basic tweak that can help in performance is to disable error reporting in Windows XP

75.  If you don’t care about a pretty interface, you should use the Windows Classic theme under Display Properties.

76. Disable short filenames if you are using NTFS by running the following command: fsutil behavior set disable8dot3 1. It will speed up the file creation process.

77. If you have lots of files in a single folder, it can slow down Explorer. It’s best to create multiple folders and spread out the files between the folders.

78. If you have files that are generally large, you might want to consider increasing the cluster size on NTFS to 16K or even 32K instead of 4K. This will help speed up opening of files.

79. If you have more than one disk in your PC, you can increase performance by moving your paging file to the second drive and formatting the volume using FAT32 instead of NTFS.

80. Turn off unnecessary features in Vista by going to Control Panel, choosing Uninstall a program, and then clicking on Turn Windows features on and off. You can turn off Remote Differential Compression, Tablet PC components, DFS replication service, Windows Fax & Scan, Windows Meeting Space, and lots more.

81. Install a free or commercial anti-virus program to help protect against viruses, etc. Make sure to use an anti-virus program that does not hog up all of your computer resources.

82. Completely uninstall programs and applications using a program like Revo Uninstaller. It will get rid of remnants left behind by normal uninstalls.

83. If you know what you are doing, you can install several hard drives into your machine and set them up in RAID 0, RAID 5, or other RAID configurations.

84. If you are using USB 1.0 ports, upgrade to 2.0. If you have a Firewire port, try to use that instead of a USB port since Firewire is faster than USB right now.

85. Remove the drivers for all old devices that may be hidden in Device Manager that you no longer use.

86. A more extreme option is to choose a faster operating system. If you find Vista to be slow, go with Windows XP. Switching to Mac or Linux is also an option.

87. One of the easiest ways to speed up your PC is to simply reformat it. Of course, you want to backup your data, but it is the best way to get your computer back to peak performance.

88. Speed up Internet browsing in IE by increasing the number of max connections per server in the registry.

89. If you use uTorrent to download torrents, you can increase the download speeds by tweaking the settings.

90. If you have a desktop background, make sure it’s a small and simple bitmap image rather than a fancy picture off the Internet. The best is to find a really small texture and to tile it.

91. For the Virtual Memory setting in Windows (right-click on My Computer, Properties, Advanced, Performance Settings, Advanced, Virtual Memory), make sure the MIN and MAX are both the same number.

92. If you search on Google a lot or Wikipedia, you can do it much faster on Vista by adding them to the Vista Start Menu Instant Search box.

93. If you have a custom built computer or a PC that was previously used, make sure to check the BIOS for optimal settings such as enabled CPU caches, correctly set IDE/SATA data transfer modes, memory timings, etc. You can also enable Fast/Quick boot if you have that option.

94. If you have a SCSI drive, make sure the write cache is enabled. You can do so by opening the properties of the SCSI drive in Windows.

95. If you have a machine with an older network card, make sure to enable the onboard processor for the network card, which will offload tasks from the CPU.

96. If you are using Windows Vista, you can disable the Welcome Center splash screen that always pops up.

97. If you already have anti-spyware software installed, turn off Windows Defender protection.

98. If you are running a 32-bit version of Windows and have 4GB of RAM or more, you can force Windows to see and use all of the RAM by enabling PAE.

99. Buy a new computer !! ;) Pretty easy eh?

I’m sure I have missed out on lots of performance tweaks, tips, hacks, etc, so feel free to post comments to add to the list! Enjoy!

Apple iphone 4G Price, Features & Specification

As it appears, the new iPhone's industrial design will depart from the tapered look of the two iPhone iterations that it will supercede. The seamless, curved, tapered surfaces that made iPhone 3G and 3GS look undeniably svelte will be replaced with a more boxy, industrial, utilitarian form factor that hints that of the iMac, Mac Mini and the iPad.

What's new with iPhone 4G aside from how it looks?


Last month, we reported that the 4th generation iPhone will be dubbed iPhone HD -- pointing to the fact that it will have a high-resolution screen. Well, I'm glad to report that that detail is pretty accurate -- if Gizmodo's initial disclosure of iPhone 4G specifications is to be believed.

Here's What's New and What's Changed in iPhone 4G (vs. iPhone 3GS) according to Gizmodo (via source link):

What's new
• Front-facing camera for video chat
• Improved regular back-camera (with larger lens) with Camera flash
• Supports Micro-SIM instead of standard SIM (like the iPad)
• Improved display - It's unclear if it's the 960x460 display thrown around before—it certainly looks like it, with the "Connect to iTunes" screen displaying much higher resolution than on a 3GS.
• What looks to be a secondary mic for noise cancellation, at the top, next to the headphone jack
• Split buttons for volume
• Power, mute, and volume buttons are all metallic



What's changed
• The back is entirely flat, made of either glass (more likely) or ceramic or shiny plastic in order for the cell signal to poke through. Tapping on the back makes a more hollow and higher pitched sound compared to tapping on the glass on the front/screen, but that could just be the orientation of components inside making for a different sound
• An aluminum border going completely around the outside
• Slightly smaller screen than the 3GS (but seemingly higher resolution)
• Everything is more squared off
• 3 grams heavier
• 16% Larger battery
• Internals components are shrunken, miniaturized and reduced to make room for the larger battery




Apple iPhone 4G Review

After the most popularity of Apple iPhone 3GS, Apple back soon with its new iphone its Apple iPhone 4G. Its really a good looking and a pack of updated features.
It is worth noting that this new iPhone should clearly provide features new and radically different generations of iPhone that it has known so far.

New specifications are as follows:
  • Frontal camera.
  • The camera lens is clearly superior to the iPhone 3GS.
  • The camera equipped with a flash.
  • Micro-Sim link of current SIM cards (as in iPad).
  • Improvement of iPhone 3GS higher display resolution, 960 x 460 pixels figures are advanced.
  • The presence of a second microphone that would negate outside noise communication.
  • The volume keys are in two parts in the form of metal buttons.
  • The back of the prototype is entirely flat in a matter as glass.
There is no doubt that it is of an iPhone because is recognized by iTunes XCode and profile system but it seems to work on a slightly different system firmware 4.0. In addition, it has a different product from that of the iPhone 3 G and 3GS ID and legal notices located on the rear hull seem correct.

In all likelihood, Apple would have disabled remotely this lost iPhone 4 G prototype. Nevertheless, nevertheless that a large number of changes are visible to the naked eye on this prototype.

Firstly, this iPhone seems lighter than iPhone 3GS with smaller internal components and a larger battery (16% wider). Then, a front camera is indeed this while the camera has a flash and a better lens on iPhone 3GS.

It seems that the screen has a higher resolution on previous iPhone models. Gizmodo indicates the screen indicating connect iPhone to iTunes seems much better quality (perhaps is it a screen resolution of 960 x 460 pixels).

Volume control buttons have been split and are metal. Just as the button for the silencer as well as for the button is turned.

A second microphone is present, presumably for reduced the ambient noise of a telephone call.
The back seems ceramic, as rumours it left open or perhaps glass. Finally, the slot for the SIM also changed because it is suitable for micro-SIM cards like the iPad. In addition, this slot is located on the right side of the smartphone.

The person who found this iPhone before entrusted it to Gizmodo, ensures that it worked under firmware 4.0 before Apple disables it remotely.

Furthermore, this prototype was in a cover as we can find for the iPhone 3 G and 3GS dozens.
Finally, the internal components are hit brand Apple, which is no doubt about its origin.

Price and availability

The Phone 4 is available in black or white since June 24, and will cost $199 and $299 for 16 and 32GB if you are a new user or you are eligible for an upgrade.

If you are an existing iPhone user, the early upgrade will cost you $399 and $499. Without contract, the iPhone 4 is $599 and $699. In India, expected for Rs. 32,000-40,000.





Simple Ways to Speed Up Your Computer

Over time, the speed of computers with Microsoft Windows can decrease. This appears as the system taking more time to respond to a user’s actions like opening files, folders, surfing the Internet and other tasks. However, there are things you can do to speed up your computer.

The following is a list of ways you can improve your computer's performance. These steps are intended to be used in order. The key is to do the simplest and least invasive thing first until your system starts responding better.

Golden Rule: Do No Harm

If you want to improve the speed of your computer, that’s great. However, above all, do no harm and beyond the scope of this Windows forum, ask for help from those you know if you get in over your head. Remember: you have time. You can stop most processes I discuss without causing harm. Caution and common sense go a long way when working with computers; problems are often much easier to fix than they appear.

Steps to Speed Up Your Computer’s Performance

1. Make Sure Your Hardware is Sufficient

Above and beyond everything you can do with software to optimize the function of your computer, making sure you have the proper hardware to support Windows is critical.

2. Clean Your Desktop

Is your Windows Desktop dotted with files? Have you noticed that your computer has been running slower and slower? Do you see the hard drive light often flashing while you wait for the computer to respond to an action? There are steps you can take to fix it. Read this article.

3. Scan Your Windows System for Errors

An operating system is a collection of files that perform different functions. It is possible, over time, that one or more of these system files has changed or become corrupted. If this happens, the speed of your system may decrease. By using a utility called “System File Checking”, it will inspect these files and correct any problem it finds.

4. Scan for Viruses, Spyware and Adware

Every Windows computer is vulnerable to viruses. Viruses are nasty little programs that cause both major and minor problems for users.
Spyware and Adware are programs created by companies to find out more information about customers, so they can better market products to them. Usually these programs are not created for malicious purposes. Spyware and Adware can load into computer memory and slow it down.
Periodically scanning and removal of Viruses, Spyware and Adware is a great way to improve computer performance.

5. Uninstall Unused Programs

Over time, you may have accumulated programs on your computer that you do not use. When a program is installed, it creates connections between the program and the operating system. Even if you don’t use these programs, they can slow down your system. If you have the original program’s installation disk or file, removing programs will free up space on your computer and may speed up your system's performance.

6. Adjust Visual Effects for Better Performance

Windows provides a number of interesting visual effects including animated windows and fading menus. If you do not have enough operating memory (see above number 1), these effects can slow down your computer. Adjusting or reducing visual effects can make a difference.
To speed up Vista computers in particular you can disable features and function that are not used.

7. Don’t Automatically Start Programs

Programs use operating memory (RAM, also called system resources). Unless you always use these programs, you can keep them from loading at Windows startup and speed both the booting of your computer and its performance.

8. Defragment Your Hard Drive (After you have tried everything else)

The more information and programs you have on your computer, the more it is likely that Windows has placed parts of the same file in different locations on your hard drive. It may do this for hundreds of files and programs, depending on how much space is available. Defragmenting the hard drive places all information for each file in one place. The result can be a faster computer experience.

Important Note: Before you even try this, backup all your work onto a different computer, hard drive, CD or disk. Also, you should only do this if you have a reliable source of power for your computer. Doing this when there is a brown out or power problem in the neighborhood, is not a good idea. If a computer turns off while it is defragmenting a drive, it will create more problems than not defragmenting it in the first place.

9. Reinstall the Operating System and Programs

If you have done all the above steps and your computer does not become more responsive, you might consider reinstalling the operating system and programs. This is a scorched earth option - basically you backup all your data and user settings, wipe your hard drive clean and re-install the operating system with your original disks. Next, install all your favorite programs and restore all your data and user settings.

The nice thing about doing this is that you essentially have a new computer, free of years worth of software and registry changes, additions and errors that can turn a fast rabbit of a Windows computer into a slow turtle. The bad thing about this choice is that it takes time and planning to do it correctly. If your PC is 3 to 4 years old and continues to run slower than it did when you purchased it, this might be the only action that will make a significant difference.