Recovering Ubuntu/Linux After Installing Windows

Restore GRUB2 after installing Windows

How I Restored GRUB2 after a Windows 7 Install. GRUB2 (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.

Continue reading

Easily Flash, Mod and Backup Your Android Device from PC with UniFlash

Find yourself flashing ROMs to your Android phone or tablet frequently, but wish there were a way to do so from the comfort of your computer? Want to edit the ROMs you flash safely before installing them, to remove the apps you don’t need and add some additional ones that you do? Want to flash individual partitions to your phone directly from a PC using a GUI, without having to meddle with fastboot commands yourself? Want to edit your build.prop right from your PC? Want to modify the /system partition of your device to add or remove system apps from a GUI on your computer? You can do all this from one single application: UniFlash!

Brought to us by XDA Member MihailPro, UniFlash aims to be a Swiss Army knife for your Android device that lets you edit and flash ROMs and partitions, add or remove system apps, edit system files, and even perform and restore backups—all from an easy-to-use graphical interface on your PC. To learn more about the features of UniFlash or to get started using it, simply visit the forum thread. Do keep in mind though that it is a new tool and there may be some glitches, so always take a backup first.

Download link : UniFlash click here

What can it do:

Official and custom firmware
Updates / patches / zip files

Remove unnecessary system applications
Installation and removal of custom applications
Copying to the device and from the device (internal memory and memory card) with the ability to delete files
Wipe DATA / Factory Reset

Backup and Recovery
Phone Information

System requirements:

If you have the HTC Sync – it will not work!
For stable operations, leave only the driver, the program should be removed.

Windows XP and above
. NET Framework 4
Android-based device with debugging enabled
ROOT, BusyBox and desirable S-OFF (for HTC) / unlocked bootloader (for FastBoot)
ADB drivers installed for your device (especially check their availability)

Increase Available RAM in Android Using Swap


One of the worst things on certain budget-friendly smartphones is not having quite enough RAM. This normally isn’t a big deal for many users who use their phone for the practical purposes of calling people, sending texts, and checking email. However for people who do a lot more with their devices such as gaming and heavy app usage, the shortage of RAM may be a bit more limiting. Running out of RAM can cause a lot of problems such as app crashes and large-scale lag. While you would have a hard time physically soldering on more RAM, users of the Samsung Galaxy Y , Y duos , or lower end devices can enable a swap file and partition thanks to a method written up by XDA Senior Member CarlDeanCatabay. This is similar to the pagefile used in windows, and while it isn’t nearly as fast as RAM, it may help certain apps that require a bit more breathing room . The method is a little complicated, and requires you to repartition your SD Card. This method will also potentially lower the lifespan of your SD Card due to the higher number of write cycles. What is SWAP : Swap is, in short, virtual RAM. With swap, a small portion of the hard drive is set aside and used like RAM. The computer will attempt to keep as much information as possible in RAM until the RAM is full. At that point, the computer will begin moving inactive blocks of memory (called pages) to the hard disk, freeing up RAM for active processes. If one of the pages on the hard disk needs to be accessed again, it will be moved back into RAM, and a different inactive page in RAM will be moved onto the hard disk (‘swapped’). The trade off is disks and SD cards are considerably slower than physical RAM, so when something needs to be swapped, there is a noticeable performance hit. Unlike traditional swap, Android’s Memory Manager kills inactive processes to free up memory. Android signals to the process, then the process will usually write out a small bit of specific information about its state (for example, Google Maps may write out the map view coordinates; Browser might write the URL of the page being viewed) and then the process exits. When you next access that application, it is restarted: the application is loaded from storage, and retrieves the state information that it saved when it last closed. In some applications, this makes it seem as if the application never closed at all. This is not much different from traditional swap, except that Android apps are specially programed to write out very specific information, making Android’s Memory Manager more efficient that swap.

What you need:

  • MiniTool Partition Wizard for SD Card Partitioning
  • A MicroSD HC 4GB or higher class 6 or class 10
  • MicroSD HC Card Adapter
  • A card reader (if your pc doesn’t have card reader built in | USB Mount is not adviseable)
  • Swapper2 from Google Play Store [DOWNLOAD]
  • ADB Shell or terminal Emulator (to check if swap is activated)
  • Make sure you have BusyBox installed

How to create Swap Partition Using MiniTool Partition Wizard

  • Plug in you MicroSD HC Card to your computer using the card adapter. (Do not use USB Mount)
  • Open MiniTool Partition Wizard and look for the card
  • Right Click on it and select Delete Partition
  • Click on Apply to Delete the Partition
  • Right Click on it again and select Create Partition

Set the partitions as follows: 1st partition: Label: Android-SD Create as: Primary File System: Fat32 Partition size: as much as you want! 2nd partition: Label: Android-EXT3 (2nd partition is for EXT which you can use for A2SD or Link2SD) Create as: Primary File System: EXT3 (be it a custom kernel or ROM with EXT4 support, use EXT3 still -play safe! ) Partition size: MIN: 20MB MAX: 512MB 3rd partition: Label: (do not put anything) Create as: Primary File System: Linux Swap Partition size: MIN: 32MB MAX: 1024MB(1GB) RECOMMENDED: 256MB

  • After creating partitions, click Apply to apply changes.

Using ClockWorkMod

  • Reboot to Recovery
  • Go to Advanced and Debugging
  • Select partition SD card and select the partition size that delights you

How to use Swap

For ROM Supporting SWAP scripts like CyanogenMod ROMs and AOKP ROMs , no need for swapper application , just make partitions as mentioned above and swap script will do the rest work, just try to see if it is working ,if not then follow this.

For Costom ROMs and AOSP ROMs For us to be able to use swap file or swap partition, we need to use Swapper2 which you can get from Google Play.

  • Download and Install Swapper2 (of course)
  • After installing, open Swapper2 and navigate to Menu > Settings

Swapper preferences: (for kernels that doesn’t have swap partition support)

  • Run swapper at startup (put a check)
  • Swap place: /sd card/swapfile.swp (you can place it in a folder if you don’t like a messy sd card structure)
  • Swap size: MIN: 10 MB MAX: 256MB RECOMMENDED: 32MB (choose any)
  • Swapiness: RECOMMENDED: 10MB SYSTEM DEFAULT: 60MB MAX: 100MB (choose any)
  • Safe unmount (put a check)
  • Safe remount (put a check)

Advanced preferences: (for Kernels that supports swap partition only) Use swap partition (put a check) Swap partition: /dev/block/mmcblk1p2

  • After setting preferences, press back and tap on “ON” to turn on swap. Reboot afterwards


Thanks to mr.bitman for drawing attention to this part: For users with swap enabled kernel. When i tried swapper2 with three partitions (fat32/ext3/swap) and used your mountpoint (Swap partition: /dev/block/mmcblk1p2) swapper formatted on startup the ext3-partition (used by Link2SD or others) and I ended up with 2(!) swap-partitions and a crippeld system. Then i changed the mountpoint to: “/dev/block/mmcblk1p3″ (because it’s the third partition on the sd)..   How can I tell if swap is running? Go to the terminal emulator – or open adb shell – and run ‘free’. It looks like this (with anything other than zeros in the swap line), you do have swap: in treminal emultor: in adb shell :

Turbo C compilre on Android

Have you ever wandered of compiling and running C C++ codes on an android device? it is possible but it needs lots of tedious and long process.You can achieve this by downloading a c/c++ compiles app , but you’ll have to pay for it , in addition it requires 50mb additional download and disk space.

For this problem I’ve  a simple and unique solution.Here below is a simple yet un discovered procedure, required for running c/c++ compiler on any android device ,it includes use of a DOS emulator.Yes a DoS emulator will allow you to manipulate all standard DOS commands in an Android Device and it works like a charm.For this purpose you will require ” aDOSBOX ” application to be installed in your phone , you can download it from Google Play Store or i’ve also uploaded it , so now we can move further for the simple steps for making Turbo C compiler run.This DosBox works identically as that of PC ,which we use to run Turbo C on 64 bit system and to run old DOS games.

Require downloads : aDosBox , download from Google Play or click here.


1.Copy TC (Turbo C) folder in to root of sdcard.

2. install aDosBox and open it

3. In it you’ll find something like :

Z:\mount c /sdcard
Drive C  is mounted as local directory /sdcard

it indicate that now you sdcard will act as c drive for DosBox.

4.In DosBox ,click on options and open on screen keyboard.

5.In it type :

cd tc\bin

so now bin will become your working directory.

it’ll look like..

6.Now type:


and see the magic happens.Turbo c is working in your Android tab/phone .

It is recommended to have a Hdpi scene and better to have a tablet for convenience.  You can compile and run your c-c++ program as well you can write and edit it also,touch pad works as mouse , single tap indicate left click , double tap indicates right click , and ofcourse you can change those settings in DOSBOX anytime.Its handy stuff to carry c/c++ compiler in collages for your project work , else its fun ..

You can compile and run programs in similar fashion in which u do in pc , same options just change in interface.

Thanks for reading …

Lost Linux password ? Reset it !

Have you ever been in a situation where you have lost your password and need to reset it as you want your files badly,You can easily reset passwords, though you must be careful. If a user has an encrypted home directory, you must not change the password this way! This will make all encrypted files inaccessible. You can only use this method on user that doesn’t have an encrypted home directory.


1. Get the GRUB menu to show. It is shown by default if you have multiple OS installed, else please hold shift key down during booting to get the GRUB menu to show.

2. In the GRUB menu, highlight the OS you want to boot (if only one is installed, it is already highlighted). Then press the “e” key to edit the boot parameters.

3. Move your cursor to the end of the line similar to:

linux /boot/vmlinuz-3.2.0-23-generic root=UUID=b8080487-b557-4f55-b288-d7ef2c2b9cc1 ro   quiet splash $vt_handoff

and replace $vt_handoff with init=/bin/bash. So that it reads:

linux /boot/vmlinuz-3.2.0-23-generic root=UUID=b8080487-b557-4f55-b288-d7ef2c2b9cc1 ro   quiet splash init=/bin/bash

then press F10 to continue the boot.

4. After a little while, and some error messages you can ignore, you are now logged in on the root console without having had to enter a password. Next, run the following command to remount the / partition so you can write changes to it:

mount -o remount,rw /

5. Finally, run the following command for each user (without an encrypted home directory!) that you want to give a new password. Replace “username” with the name of the user.

passwd username

6. Then sync the file system so all changes are written to disk, and reboot:

reboot -f

And, to be clear, once you have rebooted you need to login as an admin user to make changes to the system (somebody member of the sudo group). And you confirm where need with the admin’s own personal password. A standard user (not a member of the sudo group) is not allowed to make changes to the system.