Saturday, June 09, 2012

Force mounting Mac OS Extended (Journaled) HFS drives on Linux

You can use the following command to force mount a HFS formatted drive on Linux machines

mount -t hfsplus -o rw,force /dev/sdx1 dst

Tuesday, December 27, 2011

On a new centos 5 install must things to do first

Before you start using the linux box, install system updates.

If you are a engineer working on software development you must run both these commands, this will save you a lot of time later

yum groupinstall 'Development Tools'
yum groupinstall 'Development Libraries'

Monday, October 18, 2010

cvs update failed to create lock #cvs.lock

Though there are lot of options available if you google for the same that says change ownership permission for cvs directory etc., but if your problem is not solved even after trying all the other methods do this, it may save your day.

chmod -R 777 <cvs path>/<project directory>

e.g., chmod -R 777 /cvs/myproject

Thursday, August 12, 2010

macro `AM_PATH_CPPUNIT' not found in library

If you happen to get this error just install the following programs

cppunit
cppunit-devel

rerun your program and it should run without any problems.

Friday, May 07, 2010

Catastrophic: event fd doesn't match conn fd!

Install libevent greater than 1.4.x
Compile memcached and use --with-libevent=[ place where libevent is insalled ]
before you start memcached create link in /usr/lib for all the libevent library files.
You are good to go.

Saturday, April 10, 2010

Command to list directories/folders in linux

To list directories under current path use the following command

[root@192.168.1.1]$ ls -l | grep ^d

This lists all the directories under the current directory.

Tuesday, December 15, 2009

How to fix SVCHOST.EXE REGSVR32.EXE Application Error Memory Could not be written / read

I have been seeing a window pop up with this error message every time I start my system "Generic Host Process: Application error - [ Memory Address ] referenced memory at [ Memory Address ]. The memory could not be 'written.'" even after I removed a trojan W32.Spybot.ATEW. Regular scans by Symantec AV and also Trojan Remover didn't report any malware. I searched for SVCHOST.EXE and I found this prefetch in %SystemRoot%\Prefetch

SVCHOST.EXE-3530F672.pf

I deleted it and rebooted my system. The error has disappeared.

For all kind of memory related problems for any of windows OS applications like svchost.exe, regsvr32.exe, etc., you can follow this article to resolve it. Say, if you have cleaned your system of Trojans and Viruses, you must also check the prefetch folder under WINDOWS directory for the file names that have similar file names as the application name displayed in error window. If you find any, its recommended to delete these files and reboot the system.