Tuesday, 22 December 2015

Solving Linux Dual Boot Problems With Windows 10

if you just upgraded to Windows 10 from Windows 8.1 or Windows 7 and also have a partition with Ubuntu installed, then Grub will no longer appear on the boot menu. So, here is the solution to solve this problem
There are two methods to repair the GRUB. One is by using Windows and another is by Ubuntu.
Method 1: Repairing it from Windows
You can either repair it from Windows 10 or run boot-repair from an Ubuntu live USB. These methods are also valid for Windows 8 or 8.1. Repairing from Windows 10
STEP 1:
After dual booting or upgrading, login into Windows and go to Command Prompt. Right click on it to run it as administrator.
windows-grub
STEP 2:
Type the command given below:
bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi
STEP 3:
Restart and you will get your Grub menu screen.
Method 2: Repairing it from Ubuntu
After following the above method if you still don’t get the grub menu, then you need a live Linux distribution either on a CD/DVD or on a USB stick.
STEP 1:
Use Boot-Repair to reinstall grub with all the options you need or boot into your live Linux distro and open GParted or any other partition manager it has. Look for your Ubuntu system partition which is in the form dev/sdxn, in our case /dev/sda7.
STEP2:
Login as root into your system to execute the actions needed to fix the issue. Open the terminal, log in as root and mount Ubuntu partition. Replace /dev/sda7, and ext4 filesystem with your partition and file system.
sudo su
cd /
mount -t ext4 /dev/sda7 /mnt
mount -t proc proc /mnt/proc
mount -t sysfs sys /mnt/sys
mount -o bind /dev /mnt/dev
STEP3:
If your /boot directory is on a different partition from your /, you’ll also need to mount that partition with the following command:
mount -t ext4 /dev/sda2 /mnt/boot
STEP 4:
Now it’s time to move into the mounted system, which is your Ubuntu installation:
chroot /mnt /bin/bash
STEP 5:
If it returns the error chroot: cannot run command ‘/bin/bash’: Exec format error, this usually indicates that you booted with one architecture (e.g. 32bit) and are trying to chroot into another (e.g. x86_64), so you need to use a Live that has the same architecture.
At this point it is useful to add a remainder to the prompt:
source /etc/profile
export PS1=”(chroot) $PS1”
And make sure /etc/mtab is up to date:
grep -v rootfs /proc/mounts > /etc/mtab
STEP 6:
Change UEFI boot order. Here the point is to change the order in which UEFI boots the system. First of all, have a look at the current order:
efibootmgr -v
This will output something like this:
BootCurrent: 0005
Timeout: 0 seconds
BootOrder: 2002,0004,0000,0001,2003,2001
Boot0000* ubuntu HD(2,e1800,82000,0a543b96-7861-11e2-8d38-d60b12dec0bc)File(EFIubuntushimx64.efi)
Boot0001* Ubuntu HD(2,e1800,82000,0a543b96-7861-11e2-8d38-d60b12dec0bc)File(EFIubuntugrubx64.efi)RC
Boot0002* EFI Network 0 for IPv6 (7C-05-07-9C-F6-18) ACPI(a0341d0,0)PCI(1c,2)PCI(0,0)MAC(7c05079cf618,0)030d3c000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000RC
Boot0003* EFI Network 0 for IPv4 (7C-05-07-9C-F6-18) ACPI(a0341d0,0)PCI(1c,2)PCI(0,0)MAC(7c05079cf618,0)IPv4(0.0.0.0:00.0.0.0:0,0, 0RC
Boot0004* Windows Boot Manager HD(2,e1800,82000,0a543b96-7861-11e2-8d38-d60b12dec0bc)File(EFIMicrosoftBootbootmgfw.efi)WINDOWS………x…B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}………………..
Here you can identify the names of the devices and operating systems that are recognized by UEFI. You can find the signed bootloader for Ubuntu, the component responsible for loading grub.
How can we achieve this? By simply typing the following command into our terminal:
efibootmgr -o 0000

Tuesday, 1 December 2015

7 Best Apps to Root your Android Smartphone

Greenify
Greenify help you identify and put the misbehaving apps into hibernation when you are not using them, to stop them from lagging your device and leeching the battery, in a unique way! They can do nothing without explicit launch by you or other apps while still preserving full functionality when running in the foreground.
Quick Boot (Reboot)
Quick Reboot, can use to reboot into bootloader, recovery, or download mode. It is easy to boot your device in recovery mode with this app rather than shutting down your device, holding the required buttons, and rebooting again.
 SDFix

SDFix is a system modifier tool that helps those running Kit Kat and Lollipop overcome the dreaded locked-down SD card problem. NextApp SDFix restores this ability by modifying a configuration file. As this app changes a system configuration file, it requires root access.
SuperSU

Most root methods have you installing this app anyway so most new root users already have it.  It’s simple to use and frequently updated to support new devices and changes in how root works.
Tasker
This powerful application can make your phone do pretty much anything whenever you need it to. You create a task or a scene, then you define what those tasks and scenes do.
Titanium Backup
By this application, you can uninstall bloatware, freeze apps, and backup your applications and application data.   This includes all protected apps & system apps, plus external data on your SD card. You can do 0-click batch & scheduled backups
Xposed Framework

Xposed Framework  can be replaced your current ROM to enhance your default root experience. You can  do various things like theming, UI and performance tweaks, visual modification, button remapping, and much, much more.

Installing Windows 7 To a USB External Hard Drive

STEP 1: When you attempt to install Windows 7 on an external drive, you get “Windows cannot be installed to this disk” error. So to install Windows on an external hard drive, create two folders named Windows Files and WAIK Files on your desktop. For installation process, you need these three files: Bcdboot.exe, Bootsect.exe, and Imgex.exe. These files can only be obtained by installing Windows Automated Installation Kit for Windows 7 on your Windows PC. Once you installed the WAIK go to Windows installation directory and simply search for them. Copy these three files to WAIK Files folder that you have created on the desktop.
Step-1
STEP 2:
Now extract the Windows 7 Installation files from ISO file or copy all the contents of Windows 7 installation DVD to the Windows Files folder created at the desktop.
STEP 3:
The next step is to run Installer.cmd file as Administrator (Right-click on installer.cmd and select run as administrator).
STEP 4:
Now, press Enter key to browse to the install.wim file present in the Windows Files folder (Windows Files/ Sources/ install.wim).
Step-4
Step-4-2
STEP 5:
Now, you need to select the Windows 7 edition that you want to install on an external hard drive as shown in the screenshot.
step-5
STEP 6:
The next step is to enter your External drive’s drive letter which you can easily find out under My Computer. Enter the drive letter and press enter key.
step-6
STEP 7:
Now, it asks for ACTIVE partition drive letter. Generally “C” is the active partition. You can find the active partition by opening Windows Disk Management tool (to open it go-to run and type diskmgmt.mscin).
STEP 8:
Finally, it will ask you for the drive letter which you have entered to install Windows 7. As you are installing Windows 7 to an external hard drive simply type “Y” without quote and press Enter key.
STEP 9:
Finally click Enter key again to start extracting the Install.wim files. This might take a few minutes. Once done, you will be asked to reboot your PC to continue the normal Windows 7 installation procedure.
Step-9
STEP 10:
Once rebooted, follow the normal Windows 7 installation procedure to complete Windows 7 installation on an external hard drive. Your PC will be restarted twice or thrice during the installation. The installation might be slow as it installs files on the USB drive.
THE PRE-REQUISITES:
• NTFS formatted external hard drive with minimum 15 GB free space
• Windows 7 ISO file
• Windows Automated Installation Kit