tech


‘Oops, my Ooosp drive is not working’

My USB (pronounced Oooospb by the Finns) drive had some problem with it recently. I went through some hell and back, trying to fix the problem. Since I’ve been there, done that, I thought I would compile all the important information so that if someone ever faces a problem like this, they can benefit from it.

My drive wasn’t getting detected in the IBM thinkpad provided to me by my client. ‘Getting detected’ needs to be understood clearly. It could be that the drive is detected but not displayed. It could also be that the drive didn’t get detected at all in the hardware sense. My drive wasn’t getting detected in the hardware sense of the word. I had already checked all alarms, and event logs. There was no mention of any USB device detection at all. That was rather strange considering that just a few hours before that I had copied data into it from my office desktop. However I didn’t panic yet because there was a very apparent difference between my desktop and the laptop. The laptop had WinXP pro whereas the desktop had Win2K as the OS, even though USB drivers are a part of Win XP (no special installations required) and ideally Win XP shouldnt be giving me any problems. The next day, I tried my drive again at the desktop. It didnt get detected, whereas I had just connected my Sony Handycam to it and downloaded pictures. (That rules out a faulty port). Since it could be a port reuse problem, I tried it again at a colleague’s desktop, one who hadn’t plugged in any USB device so far. The drive didnt get detected again. This time I got into panic mode. The USB drive is only 2 months old, just bought especially to store all my personal data. I felt foolish, having removed all my personal data whatsoever from my office desktop in Gurgaon. I didnt have any CD’s of it or any other copies of it anywhere on the net. The thought of being without my precious data left me with a sinking feeling.

I started with searching on the net for forums where similar problems had been discussed. I found a lot of things but not what was helpful in my situation. I also learnt that WinXP has a lot of problems with USB devices. These bugs are reported at the Microsoft site, but there is no solution to them.

There could be various reasons why your USB drive doesnt get detected or rather not displayed.

1. It’s detected but not displayed. One can confirm that by going to device manager and clicking on USB drives or Disk drives. There’s bound to be an entry for your USB device. If it’s there and the drive letter is not being shown so that you can actually access it, then it’s a drive letter problem. It could be that something else is mapped there already. Ideally USB devices should not get stuck to a drive letter and should take any empty slot, however that doesn’t happen at times. For that you could change your drive letter settings through powertoys TweakUI (if that drive letter is disabled eg, A:, B:) or simply disconnect whatever is taking up that drive letter where usually your USB device attaches itself. You could restart your PC too. The next time the device should get detected.

2. The USB port could be faulty. Try another USB port and you could see the contents of your drive again.

3. You could try configuring everything to run USB 1.1 (disable USB 2.0) and it might work. The USB 2.0 drivers don’t seem to be stable.

4. Try a different USB casing. At times, that stops working and is the only thing needed to change and not the HDD.

5. Look in Device Manager, locate the drive – under Disk Drives/ Other Devices or USB controllers. It there is a question mark or exclamation mark, reinstall the driver or uninstall the device and then reinstall it using add new hardware.

6. The USB cable might be faulty and not everything else attached with it.

7. Power supply may not be adequate if you have a USB device that has separate power supply.

8. As a last resort (software) reinstall your OS (with all released updates) and reinstall drivers freshly.

None of these however were a solution in my case. Since the drive was new. I was pretty sure that the casing, wire etc were all ok. Either it was a minor software problem or a rather big hardware problem (HDD gone bad). The USB ports were ok since my handycam worked with it. The OS (at least the desktop – Win2K) shouldn’t have had any problems because I had already used my USB HDD on it earlier. It was only later that the same PC stopped recognising my HDD.

I decided to study the computer management (administrative tools->computer management) more clearly. Though it indicated event logs for my handycam, there were none for my USB HDD, not even of failure to recognise anything. The ‘device manager’ only showed the HDD of the PC itself. The ‘logical drives’ didnt show anything. ‘Removable storage’ showed several heads one of which was ‘Physical locations’. It showed a number of devices attached to the system out of which only one of them was attached to it in reality and all others were ghost entries and had a red ‘X’ mark on them as shown in the picture. That included 2 entries for my Sony handycam, which was no longer connected to the PC. It also had some other devices which I had never ever connected to it, but perhaps the users before me might have. Seeing this, everything fell into place and I deleted these entries (right click->delete). Just to be safe, I rebooted once more and then plugged in my USB HDD. Voila! this time my USB HDD showed without a hitch with all my precious data intact!

So it seems that not only WinXP but Win2K also has this dangling file handle problem. This apparently doesn’t even go away when the PC has been restarted. One has to manually delete these entries. Hope this helps those who are in similar situations. Here’s a good link which has most of the stuff that you can try in this case. If nothing else works, there do exist services that try to recover data lost from hard drives gone bad and dont charge anything if they arent able to recover any data.


Access denied

Ever come across this all-pervasive message on your computer screen? Well I have, coz I access the net mostly from office and of course Big Brother always has eyes on my activities. Gone are the days, when barring porno sites nothing else was ‘access denied’. Gone are the days when Yahoo, MSN, ICQ all used to be ‘accessible’ all the time to everyone. Gone are the days when all greeting card sites were a quick means for anyone to wish someone. It was perfectly fine to be downloading MP3’s, checking your web mail and surfing the net for whatever you can imagine (ok, don’t imagine too much now). It was perfectly fine to be receiving and forwarding huge attachments (at times MP3’s and MPEGs too) and everyone had infinite space in their mail account. The bandwidth of the company network was able to take all this load and still survive.

But then comes a day, in every organization’s network-congested-life, when it grows larger and as that happens, the top mgmt, finally realises that “Khulee Chhooot”..umm err.. i dont know how to spell it now..this gives it a very ‘access denied’ meaning.. ok “Full freedom” for its employees is certainly not beneficial for the organization. Moreover in this era of the post-IT-boom-gone-bust-days, one needs to cut down all kinds of unnecessary costs. Obviously all these things classify as luxury for a normal employee.. so the ‘normal’ employee is imposed with certain restrictions whereas the top mgmt, still has Khullee..ok Full freedom.

The new rules are defined in such a way, so that the employee is able to take in the shocks bit by bit.
Round 1 – the chat clients are blocked..but wait, all is not lost, only for certain hours..the working hours. Then greeting card sites are blocked, but again, they are accessible after working hours. Then MP3’s are blocked and of course the same time limitations. (How can they block them totally, after all they also listen to the same music that we download, on the intranet!). Then size limitations are put in for mail accounts. All popular sites like cricket sites, joke of the day sites are blocked.
Round 2 – Restrict the kind of attachments one can receive or send. All mp3’s, mpegs, exes, jpgs, gifs are blocked. Non office hours? Does that mean all hours out of the 24 except the working hours? No, from now on they mean only 6-9 in the evening.
Chat? Cards? oh everything is ok only from 6-9 and no not even on sunday is this timing changed.
Round 3 – No chat at all. New proxy mechanisms make sure that URLs are blocked on basis of the words entered. Now almost the whole internet gets blocked, except for good old google of course. Size of mail box reduced to an iota.
Round 4 – Impose policies of all kinds, which bar the employees from any recreation on the net. Did I mention that the top mgmt has different policies and even different internet links?

These are some of the strategies that organizations follow. Some of it is definitely needed but not to the dictatorial extent of every site being blocked without reason! Of course it’s not as drastic as having no internet connection at all at your desktop, so that the cause itself is done away with. I find it difficult to imagine how ppl in Infosys or ST Microelectronics survive! I mean block all you want, but you do need the net for official work also.

Anyhow, in situations like these, it’s always the employees vs the Big Brother. The BigB forgets that the employees are after all in the IT field and come what may, would find out alternate ways and means to access the ‘access denied’ stuff. So after some time, it really is no real saving of bandwidth or manhours coz those who have to, will do. And those who don’t, anyway won’t. But you know that the restrictions are way too wrong, when almost all employees are finding out new ways and means to access the denied.

So for all you bandwidth starved ppl out there, here are some tricks of the trade. Of course try them at your own risk coz Big B is *always* watching.
Anonymous proxies: you surf the net using these proxies. They act as a buffer between your proxy and the final site. There are various kinds. Ones which encrypt the URL, ones which dont, ones over SSL etc. Depending on the type, you can access sites without anyone (not even BigB) knowing which sites you visited. Of course you need to keep your database updated coz someday BigB is gonna realise that almost all employees seem to be visiting anonymizer.com for some reason.
Use software which sends your data over socks proxy or SSL – You can visit http-tunnel.com or htthost.com for more details. All you have to do is install the software, make some settings and voila! you can say bye to BigB’s ‘access denied’ web page. And did I mention that you can chat, download (music too) through this? But again, BigB is listening to all ports that you are using and before you know it, the ports for these softwares would be blocked.
There are a few sites which take the URL of the download you want, change its extension and give it back to you with a decent extension that the firewall won’t block. Or they offer you ways to access ftp via http, if your firewall blocks ftp.

Wonder why the corporate networks, still can’t control spam the way they impose these restrictions!


My dreams (rather nightmares)

im_snmp_cli.c:1348: warning: passing arg 2 of `im_retrieve_array_index_from_ip’ from incompatible pointer type
im_snmp_cli.c:1370: warning: passing arg 3 of `im_pack_snmp_param_tlv’ from incompatible pointer type
im_snmp_cli.c:1370: void value not ignored as it ought to be
im_snmp_cli.c: In function `im_cm_get_struct_ref’:
im_snmp_cli.c:2443: warning: integer overflow in expression
im_snmp_cli.c:2630: `INDEX_TBD’ undeclared (first use in this function)

Compilation errors are what I dream of nowadays.. I am a goner.. :-(.