Wednesday, May 27, 2009

How to Reinstall Windows XP Without Formatting Your Hard Drive ?

Some times XP become corrupt or other reason of mistakes XP become unusual.
so what is a solution,you should format your system drive that is where you install XP.
But we loss all of your datas and software installed in that system drive....
So there is a way to reinstall Windows XP without formatting your entire hard drive....
Now see how is it..

While simply installing OVER an old installation may help, folders such as \Windows and \Program Files will become cluttered. This guide explains how to simply delete these folders.

  • Get an XP CD, preferably the one you wish to reinstall.
  • Reboot and configure your computer to boot from the CD, then enter Windows Setup.
  • When all the drivers (including any you might need to specify yourself) have loaded, you should be at the main Windows Setup screen. Note that if you are using a Trial Copy CD, there will be a screen explaining that the copy is a trial, BEFORE the main Setup screen.
  • Press "R" to start the Windows Recovery Console.
  • Select the partition and Windows installation you wish to modify.
  • The Recovery Console will then prompt you for your Administrator password. If you don't have one, or don't know what it is, see the related wikiHows.
  • You should now be at a command line. Just like in DOS or the Command Line in Windows, you can use commands to modify, delete, move, etc. files and folders.
If you wish to completely start from scratch, delete the following (with Windows XP). To delete, type -del "path"-, without the dashes.
  • \WINDOWS
  • \Program Files
  • \Documents and Settings\username\Application Data
  • \Documents and Settings\username\Local Settings
  • \Documents and Settings\username\NTUSER.DAT
  • \Documents and Settings\username\ntuser.ini
  • \Documents and Settings\username\ntuser.dat.LOG
When this is done, reboot the computer and install a fresh copy of Windows!
You can do much more with the Recovery Console than described here, so look into it. Using the Recovery Console in some situations might be a better alternative to reinstalling Windows completely.

Note:Do not delete anything other than what is told, or anything in the root drive.



What is Boot Sector ?

A boot sector is a sector of a hard disk, floppy disk, or similar data storage device that contains code for booting programs (usually, but not necessarily, operating systems) stored in other parts of the disk.

On a IBM PC compatible machine the BIOS selects a boot device, then it copies the first sector from the device (which may be an MBR, VBR or any executable code), to address location 0x7C00.

Kinds of boot sectors:
There are several major kinds of boot sectors could be encountered on IBM PC compatible hard disks, floppy disks and similar storage devices:

  • A master boot record (MBR) is the first sector of a data storage device that has been partitioned. The MBR sector may contain code to locate the active partition and invoke its Volume Boot Record.
  • A volume boot record is the first sector of a data storage device that has not been partitioned, or the first sector of an individual partition on a data storage device that has been partitioned. It may contain code to load and invoke an operating system (or other standalone program) installed on that device or within that partition.
  • To be a valid boot sector, the two-byte hex word 0xAA55, called the boot sector signature, must exist at the end of the sector; otherwise, either the BIOS or MBR code will report an error message and halt any OS bootstrapping process.
  • CD-ROMs usually have their own structure of boot sectors, for IBM PC compatible systems this is subject to El Torito specifications.
  • Non IBM PC compatible systems may have different boot sector formats on their disk devices.
Boot sector viruses :
Since code in the boot sector is executed automatically, boot sectors have historically been a common attack vector for computer viruses. To combat this behavior, the BIOS often includes an option to prevent writing to the boot sectors of attached hard drives.


From Wikipedia, the free encyclopedia...


Tuesday, May 26, 2009

10 Expert Tricks for Ubuntu & Linux

These tips aren't Ubuntu-specific, but they've been tested on Ubuntu, and I can't guarantee they'll work on other distros. You might already know about some or all of them them, but resist the temptation to gloat about this in the comments. You're just extra clever, OK?

With that said, let's start!

1. Open a Superuser Run Programs Dialog

You probably already know that hitting Alt+F2 will cause a "Run Programs" dialog box to appear. Here you can type any program name to run it -- I often use it to run gconf-editor, which hasn't got a menu entry, for example. However, if you type gksu into a terminal window (with nothing following), a similar dialog box appears, but this time it will let you run the program as root (or any other user on the system). You can bind the gksu command to a keyboard shortcut (perhaps Shift+Alt+F2) using System, Preferences, Keyboard Shortcuts, to effectively produce a "superuser" Run Programs dialog.

2. Install Packages Quickly With GDebi

I spent a long time ignoring the GDebi program. To remind you, this is a GUI application that allows the installation of packages you've manually downloaded. It attempts to resolve dependencies using the repositories, which is a very useful feature. However, I've always preferred the good old-fashioned dpkg command. Then one day I tried GDebi at the command line and was shocked to find it also runs in a fuss-free non-GUI mode (i.e. sudo gdebi package.deb ), yet still has the ability to resolve dependencies. Give it a try. Once you do, you may never want to use dpkg -i again.

3. CD Tricks

I'm sure that even bash experts occasionally slap themselves on the forehead and say, "Wow! I never knew you could do that!". Recently I learned two tricks for the cd (change directory) command that had passed me by until now. Typing cd on its own will switch you back to your /home directory (i.e. the equivalent of cd ~). Typingcd - will switch you to the last directory you were browsing before you switched to the current one.

4. Add Directories To the Directory Stack With PUSHD

While we're on the subject of directories, let's talk about the directory stack. Quite simply, this is a list of directories stored by bash. The currently-browsed directory always tops the list, but the list is otherwise empty until you add a new directory, which you can do using the pushd command. For example, pushd /usr/bin will add /usr/bin. It will also switch you to that directory, so you could use it instead of cd to navigate (the -ncommand option will let you add a directory but stay where you are). The dirs command will show the directory list (remember that the currently-browsed directory will always be at the top). popd deletes the topmost entry in the list, and switches you to the next in the list. Give the directory list a try. It can be very useful if you're administering a system and have to leap from directory to directory, and are inclined to forget where important things are.

5. Kill Processes Quickly With PKILL

To kill a process I've always either used top, or the kill or killall commands along with ps| aux to discover process numbers/names. However, the pkill command removes a lot of work -- pkill firefox, for example, will search the list of processes for anything matching firefox, and then kill it (i.e. send a SIGTERM). pstree is also a pretty cool command, and will show all the processes in a family-tree arrangement, organized by who owns them.

6. Customize Gnome With Gnome Control Center

For those who have trouble giving up their Windows cravings, and who want a nice organized Control Panel-like experience, consider using gnome-control-center for your system configuration needs. Adding a desktop shortcut to this program can help newbies get to grips with Ubuntu, giving them a familiar Windows-like experience, and avoid forcing them to explore the scary System menu.

7. Launch OpenOffice.org Faster

If you use OpenOffice.org a lot, you might be frustrated at how long it takes to start each time. To get around this, open the Sessions program (called Startup Manager in Jaunty; whatever the case, click System, Preferences, Startup Applications to find it) and add a new entry. In the Command field, type openoffice -nodefault -nologo. Then reboot. This will cause OpenOffice.org to be cached when the Gnome desktop starts up, so starting any OO.org application in the future will happen in a split second. Effectively, you're moving the OpenOffice.org startup delay to initial boot-up, but you'll hardly notice it.

8. Clear Up Disk Clutter In a Jiffy

Running short of disk space? Try typing sudo apt-get autoremove and then sudo apt-get clean into a terminal window. The first command removes any unused (redundant) dependencies from the system. The second removes all cached package files. Both are harmless. On a well-used system that's been updated a couple of times, you could free-up as much as a gigabyte using these methods. (Compare before and after using the df -h command.)

9. Figure Out Missing File Extensions

Been sent a file without an extension by e-mail? No idea what type of file it is? (Mac users are particularly guilty of the sin of considering file extensions optional.) Try the file command. Just specify the filename straight afterwards. Also, give the strings command a try. This will show any "printable strings" within a binary file (i.e. anything that isn't unprintable, which usually indicates data). The type of file is usually listed right at the top, so it's a good idea to pipe the output of strings into head (i.e. strings filename|head).

10. Don't Forget Your Man Pages

Check out these interesting but not-widely-read man pages: intro -- a beginner's guide to the command-line;hier -- a rundown of the filesystem hierarchy; builtins -- mini man pages for miscellaneous commands that don't have man pages of their own (including pushd, popd and dirs, as discussed above).

Win Key Shortcuts

There are many useful shortcuts in the world of PCs. One of my favorite ways of saving a trip from my keyboard to the mouse is to use the Windows Run dialog box. The quickest way to open it up is by pressing Windows key + R. With Run you can open up most anything, below is a list of some regularly used applications. If you know the file name for the program you want to open, just try typing it in and hitting enter.



calc - Windows Calculator
notepad - Text Editor
cmd - Command Prompt (use command for Win95-WinME)
msconfig - Configure Various System settings like startup
msinfo32 - Displays Windows XP System Information
regedit - Windows Registry Editor
winipcfg - IP Configuration for Win95-WinME

iexplore - Internet Explorer
msimn - Outlook Express
outlook - MS Outlook
winword - Microsoft Word

dvdplay (uses Windows Media Player for DVD playback)
sol - Solitaire
freecell - FreeCell
mshearts - MS Hearts

I might also mention some of the Windows key's other great uses:
Windows key + d - Takes you to the desktop and back
Windows key + e - Opens Windows Explorer
Windows key + f - Run a search
Windows key + l - Logout or Lock your Windows Session (WinXP)
Windows key + Pause/Break - Opens System Properties

Basic Linux Tips and Tricks


As a relative Linux Newbie I have a lot yet to learn about our favorite open-source OS. I can however share a few of the tips and tricks I have found so far while working/playing with Linux.

While in a console window:
The Tab key - you can use the Tab key to autocomplete a command. For example if you have a file "thisisareallylongfilename.txt" and in the command line you type "pico thisis" and press tab it will complete the command to "pico thisisareallylongfilename.txt" for you.
Up Arrow - scrolls through previously entered commands
top - similar to Windows Task Manager, makes it easy to see and kill process.
pstree - prints the system tree of processes
cal - Displays a calendar, other options to try: cal -3, cal 7 1776
use echo and python as a scientific calculator: echo 'print (148+25)/(100E6)' | python
wget - a good quick downloader: wget http://...../file.ext
Use a stack to hold directory locations:
pushd . - pushes current directory to top of a stack
popd
- pops and switches to the directory at the top of the stack
time cat
- Start a stopwatch type Ctrl-D to stop and display time, to time how long a process takes just place time in front of the command.
man "command" - If you are unsure of how to use a command, man (manual) will display the documentation for that command. For example you could type man man to get the manual's manual.

These are just a few of the many many commands that can make using Linux easier, for more information on basic Linux, check outLinux.com and Unix Guide.
Take care...

Monday, May 25, 2009

Change Drive icons as u like

To change the icons used for specific drives in explorer:

  • Open regedit by typing regedit into start->run..
  • Then navigate to HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Explorer
  • Now create a key(KEY not VALUE!!) called DriveIcons under Explorer...
  • Now within DriveIcons, create another key with the drive letter you want to change (e.g.,HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons\K)...
  • Create another key within the drive letter key called DefaultIcon...
  • Now set the default String value equal to the icon you want to use.
  • If you have a file that has more than one icon in it, such as a DLL file, use the standard C:\full_path\icon_file.dll,n ) where n is the number of the icon within the file icon_file.dll...

Take care...