Saturday, June 1, 2013

How to Recover/Fix USB flash drives

I was trying to hack a USB flash drive encrypted and protected by --- when I learnt a number of things about USB flash drives:
  1. All USB flash drives have few main components
    1. The flash memory chips that store the data
    2. The controller that:
      1. Allows access to the data
      2. Lets any OS understand the kind of device being used
  2. Certain controllers can be manipulated to:
    1. Create partitions
    2. Hide partitions
    3. Decided Disk encoding (EXT3FS, FATX, FAT32, HFS, ZFS, ....you name it...)
    4. Encrypt content
    5. Masquerade (across OSes) as different type of storage devices (e.g. a CD-ROM)
Now all this sounds quite terribly dreary but really helps understand the steps that I followed:


  1. Unplugged all other devices from USB ports
  2. Plugged in the dead device...

    and made sure that it was detected and that the OS had loaded at least the mass storage device drivers.
    At this stage, if I tried to access the device or even format it, all I got was an error that told me that the OS could not read the memory on the device ...
    OS Access error

  3. To figure out the:

    1. The exact controller chip used
    2. The memory chips used
    3. State of the controller and the memory chips
      I downloaded and ran Chip Genius
      (You could download this software from:
      http://www.onlinedown.net/soft/67367.htm
      or
      http://en.kbdown.com/237488.html

      I told me that this device had a Silicon Motion SM3255AB controller
      Chip Genius to identify the controller

  4. Next, I downloaded the  SMI 3255AB controller tool from http://dl.mydigit.net/special/up/smi.html
    (If you have a different controller you'll have to search and get the relevant controller)
  5. Running the tool I could see that the memory was accessible and so I could now try flashing the controller back to a default state.
    SMI Controller Tool - Initial Interface
  6.  
  7. Next I clicked the space bar to run the tool and it ran a pretest and formatted the drive thus...
    SMI Controller Tool - Flashing
    SMI Controller Tool - Flashing Complete

    OS has remounted the device and shows it empty and functional
  8. Now, I wanted to make a few low level changes so I clicked Settings (Password in most SMI controller tools is 320) and here is what you would see... (Click Ok once you are done tweaking and then run the flashing process again. Be careful and aware of what you do since it can do nasty things to the device :) )
References:
This solution would not have been possible without the painstaking recording of procedures and facts by a number of sites. Here are some that made my life easier and got more than one USB driver working:

Offline or Standalone Installers

All the software providers conveniently assume that all of us are always connected to awesomely quick internet connections. When installing or updating machines it is horribly ineffective to download the small installers and then have them download the (usually much larger) actual installers. 

Here is a list of links from where you can download the offline or standalone installers of a number of commonly used software and plugins:


Tuesday, March 12, 2013

NTFS - Writing and Reading natively in Mac

I've always been a Windows person and all my external HDDs are NTFS formatted.

Working with people people using Macs posed the standard challenge of not being able to write to NTFS disks when I took my HDDs over. 

Once I got a MacBook for myself, the problem of writing and reading to and from NTFS drives natively in a Mac became real for me as well. 

Installing a 'driver' or an app seems to be the way to solve this problem. Here are ones that promise to do the job:



An aside... In case you are wondering... FUSE is derived from File-system in USEr space. :)


Friday, August 5, 2011

Google Plus Icons

I was looking for Google Plus icons that I could use for a corporate website that I'm in the process of creating. A quick Google search gave produced some very interesting variations of the Google Plus icon, some along with source files. I am sure there a quite a few more but these were good for what I needed.


Here is a site that has collected an impressive collection of variations. Very nice if you are trying to create something new or just looking for some style references.


http://garinkilpatrick.com/awesome-google-plus-buttons/

http://garinkilpatrick.com/awesome-google-plus-buttons/
Here are a couple of links where you can download (and use) the buttons in different styles:


Friday, May 6, 2011

Installing Tata Photo on Ubuntu



I installed Ubuntu (Maverick and then Natty) years later after having done my last Linux distro install. 


I was gearing up to do a pile of modprob, insmod and such like at the CLI when to my surprise mobile internet using BOTH Tata and Reliance USB dongles were a breeze!


All I has to do was plugin the USB dongle (this example uses the Tata Photon on Natty aka Ubuntu 11.04) and the do the following...


Click on the network icon on the top right and click New Mobile Broadband Connection


This opens up a very simple dialogue box


I chose my location


This the lets me select Tata Photon Plus (and most of the other major providers). You do have the option of manually entering the details in case your operator is not mentioned here.






Next I need to enable mobile broadband after clicking the networking icon




After that if I just click on the installed internet connection, I am online...





I was suitably impressed since in Windows I'd have to install an app and use it to connect, that triggers popup browser windows that are a real pain. In Ubuntu all this was taken care of so hat even a relative newbie would be able to get up and running in a very short while.

Making Acrobat Reader Faster

If you search on the internet, you will find something called Adobe Reader Lite. This is nothing but a standard installation that has a number of features disabled to make the reader faster.


 However, I prefer to install a standard Adobe package and then disabling things according to requirements. This way I am sure I am not downloading a trojan while retaining control over what I switch off.


Here is a good link that explains a couple of ways of doing this using freeware applications.


You can either download PDF Speedup from acropdf.com or use Adobe Reader SpeedUp from bootblock.co.uk. 


PDF Speedup works for Adobe Acrobat 5, 6, 7, 8, 9, Adobe Reader 5, 6, 7, 8, 9 and help you tweak the following:



Enable or disable the plug-ins as needed
Turn off all Updates featuresDisable the splash screen during program startupRemove the My eBooks folder created in My DocumentsTurn off the advertisements for Adobe products in the upper-right corner of the toolbarRemove PrintMe and Adobe Reader iconsDisable Browser IntegrationDisable confirmation dialog when closing Adobe ReaderBetter speed for LAN and Cable connectionClear Adobe Reader Recent Files HistoryRestore to original settings at any time


Thursday, March 31, 2011

How to get April Fooled by Google :P

This only works if you are using Gmail on Chrome...
Click on the Gmail Motion link ... and then see the pics and follow...