Sunday, 1 June 2008

Create Config.sys & Autoexec.bat


This is a simple but most forgotton command to create
files like config.sys and autoexec.bat files, well heres it...
Even if u dont have a dos boot disk u can work ur way
to some extent.

********************************************
At c:\ prompt
type
copy con config.sys
devicehigh=c:\dos\himem.sys
device=c:\dos\setver.exe
devicehigh=c:\dos\emm386.exe ram
dos=high,umb
last drive=z
then press CTRL + z
press enter
Config.sys file will be created.

********************************************
Similarly u can create autoexec.bat
@echo off
prompt=$P$G
path=c:\dos;c:\
lh mouse
lh doskey
Press CTRL + Z

Thursday, 1 May 2008

Auto End Tasks to Enable a Proper Shutdown



Tuesday, 1 April 2008

Change The Default Location For Programe Files

As the size of hard drives increase, more people are using partitions to separate and store groups of files.

XP uses the C:\Program Files directory as the default base directory into which new programs are installed. However, you can change the default installation drive and/ or directory by using a Registry hack.

Go to :-

- Start > Run
- Type “regedit” (without “” NOOBS!)
- Go to this directory…
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion

- Look for the value named ProgramFilesDir. by default,this value will be C:\Program Files
Edit the value to any valid drive or folder and XP will use that new location as the default installation directory for new programs.

Monday, 31 March 2008

How to recover damaged Superblock in Linux

If a filesystem check fails and returns the error message “Damaged Superblock”
Solution:

There are backups of the superblock located on several positions and we can restore them with a simple command. 

Backup locations are: 8193, 32768, 98304, 163840, 229376 and 294912. 
( 8193 in many cases only on older systems, 32768 is the most current position for the first backup )

Now, suppose you get a ¨Damaged Superblock¨ error message at filesystem check ( after a power failure ) and you get a root-prompt in a recovery console,
then you give the command:
# e2fsck -b 32768 /dev/hda5

System will then check the filesystem with the information stored in that backup superblock and if the check was successful it will restore the backup to position 0.

If this is not working try using the other copy of Superblock located at the above mention location in your HD.

Tuesday, 18 March 2008

How to crash Linux?

As root, you can do whatever you want.
Try this command, as root (reconsider if you really want to crash):
# cp /dev/zero /dev/men
As root, you can even erase all the files on your system with a similarly innocuously looking one-liner (don’t do it):
# rm -rf /

This is not to say that Linux is easy to crash, but that the system administrator (”root”) has the complete power over the system so think before when working on Linux as “root” user.
Next previous home