Monday, March 30, 2015

USB Drive Size Reduced After Making it Bootable [SOLVED]

Yesterday I booted my 32GB pendrive to make Hacintosh. After making the pendrive bootable I've found that it's size has been reduced to 5.35GB from 32GB. The same problem occured when I made it bootable to install Ubuntu. Here's the solution for this problem. I forget everything and then I've to search the entire web. So I'm writng here.

Tuesday, March 3, 2015

How to update Firefox OS 2.0 to 3.0 (Nightly) with Windows

Last week I wrote about How to update Firefox OS 1.3 to 2.0 with Windows. Updating Firefox OS is much easier with Linux OS. If you're a linux user and feel comfortable with Linux then use it to update. This tutorial is for the Windows users.

I'm using Firefox OS Developer Preview device Flame. This process may not work with other Firefox OS devices. However, downloading base image of other developer preview phones from the manufacturers websites (eg. Geeksphone) & following this tutorial may work.

NOTE: If you brick your device I will not take any responsibility. Charge your device battery upto minimum 50% before updating. Disable screen lock before starting. Simply go to Settings > Screen Lock and tap to disable lock screen or passcode lock.

Please before proceed make sure that you've updated your device to the latest stable base image. Follow this tutorial HERE if your OS version is below 2.0. Go to Settings >> Device Information to check your current version.


1. Plug your device into your computer with a USB cable.



2. Enable USB Debugging:


To enable USB Debugging go to your phone's Settings > Device Information > More Information > Developer and then Tick "Enable USB Debugging".


3. Download Base Image:
Choose a build to install (found on http://ftp.mozilla.org/pub/mozilla.org/b2g/nightly/). You'll want one of the following:

I've chosen the first one. Nightly v3.0
Go to the directory and download
b2g-XX.XX.en-US.android-arm.tar.gz and gaia.zip both three files. Extract them in the same folder in your PC.

4. Download other tools:
Download the shallow flash script and save it in the same directory as the above two files: follow the link, press the Raw button, then use your browser's save functionality (right click & select save page as...) to save the page directly as shallow_flash.sh.

Also download the shallow_flash.bat windows script and install Cygwin which provides a Linux-like command environment on Windows.

Make sure that all the tools - Shallow flash script, shallow flash.bat, cygwin & base image files are in the same folder.


5. Now double click the shallow.bat file. A command window will appear and ask your permission. Write "y" and hit Enter. ('y' for YES & 'n' for NO). Then the install will start. Your phone may restart couple of times during the process.
Have a cup of coffee. And then you'll find that you're device is updated with the latest nightly build.

OMG! I bricked my device:If you brick your device by doing the above methods, then relax. You can get back to your old OS version with recovery mode. Just scroll through this article (Sorry, I can't simplify that for you): https://developer.mozilla.org/en-US/Firefox_OS/Phone_guide/Flame/Updating_your_Flame
and start reading from "Fastboot Mode".

If you face any kind of problems during updating your device, please feel free to comment on this post. I'll try my best to solve them.



Hi ! I'm Raad. And this my personal blog. Welcome to my blog.