Monday, June 30, 2008

Dual Boot Vista and XP with Vista already installed


Well, this is specially for people who recently invested thousand of bucks on branded laptops and desktops with VISTA preinstalled and now cant' run many of their older softwares (like Oracle and many more...).

So here is the way to dual boot Windows VISTA and Windows XP on a PC with VISTA preinstalled.

Step 1 - Partition the Drive:
Vista comes with a nice partitioning tool, so i'll be using it instead of partition magic this time around.
-right-click computer under the start menu and choose "manage"




-right-click the drive you want to partition, and select "Shrink Partition"
-The amount you shrink the partition is the amount of space used for the XP partition, so i would suggest making it at least 3-4GB in size, as a full XP installation will take 1.5GB on it's own.

-now right-click the unallocated memory and select new basic partition.



-Choose NTFS file system, this will save formatting before installation.
-name the drive anything you like, i chose "XP"
-click next on the rest of the screens and finish.

once the formatting is finished you will have something like this:



*this new partition is where your XP installation will go, so take note of it's location, in case there are multiple partitions on the drive (there will now be atleast 2).


Step 2 - Install XP:




wait while XP installs (I won't go into detail, there are many tutorials on this, and it is reasonably straight forward)



Now that XP has installed, it attempts to boot for the first time... all goes fine, video settings, networking, then the lovely welcome screen as usual.

You restart, expecting a boot loader screen... followed the tutorial this far, and now you seem to only have XP... well not quite, I wouldn't leave you hanging without giving you a proper dual boot.



here lies the only real issue with installing XP after Vista, but it's a quick fix if you have your Vista CDs/DVD handy.

The problem is that Vista and XP use different boot loader utilities in the MBR (Master Boot Record) of your hard drive. XP does not recognize Vista, but Vista will recognize XP, so we need to remove the boot loader that XP just put in with the old Vista boot loader. So restart once more, but this time with your Vista disc in the drive.

Step 3 - Fix Boot Loader:


Vista will load the GUI files, and then display the loading splash screen.

-Click "Next" on the first screen
-Once the "Install Now" menu (do not click Install Now) choose "Repair Your Computer":



-You will be prompted to choose the OS to repair. Don't worry if Vista is the only OS that shows up, even after a search.


click "Next"

-I realize there is a "Fix Startup" option, but it's been my experience that it doesn't work, and this method will.
-choose to open a "Command Prompt":



type in the command prompt the following 2 lines (separatly):
Bootrec.exe /fixMBR
Bootrec.exe /fixBoot



-close the prompt and restart
-now that Vista controls your boot loader, the process is mostly finished, now we need to inform Vista that XP is installed, as to enable the boot loader selection screen.
*There are programs such as VistaBootPRO that will do this for you, but it requires .NET framework, etc, so I did it the manual way.


Step 4 - Edit boot.ini:
In Vista, the boot.ini is not editable directly, as the file itself is hard to locate, so we will be modifying it through "Boot

Configuration Data Store Editor" bcdedit.exe:
(Just as an explanation, the loader type for XP is an NT Loader, hence the use of ntldr)

-first open a command prompt with administrative privilages (right-click and choose "run as administrator")
*Note the following 2 answers from bcdedit for each item are acceptable:
"The Operation Completed Successfully"
"The Specified Entry Already Exists"
Be sure to type each line carefully (replace C in the first line with the drive containing your Vista installation):
bcdedit –set {ntldr} device partition=C:
bcdedit –set {ntldr} path \ntldr
bcdedit –displayorder {ntldr} –addlast
bcdedit -set {ntldr} description "Microsoft Windows XP"

The completed bcdedit file should resemble this:



-This will correctly add XP to your boot sequence, and even name it properly instead of "Earlier Version of Windows"
-the displayorder line also allows the entry to be visible under the advanced settings of your computer properties.



Vista is the default boot, if you wish to change this to XP it can be done by setting {current} to addlast, or under the computer

-> properties -> advanced settings.

If all done properly, XP and Vista will dual boot properly!


Regards,

Tarun.Reflex

jaiswal.tarun@gmail.com


Sunday, June 29, 2008

Install Windows XP on SATA without a Floppy (F6)


SATA hard drives have become more and more appreciated tending to substitute the IDE drives due to the increasing speed they offer. Motherboard manufacturers started to implement the new standard years ago, when the technology was young and expensive. Now, as the SATA HDD prices have lowered to a level where anybody can afford to choose a SATA enabled HDD instead of an IDE one, a great migration has been observed among the common computer users.

They choose to install Windows and applications on SATA drives because they provide more speed which determines the system to run smoother. Thus, for those owning older mainboards with SATA support an extra step is required while attempting to install Windows XP. Windows XP does not provide drivers for all the SATA controllers, therefore, during the installation procedure, the user must insert a floppy with the drivers that came in the package along with the motherboard.

Not a big deal, not much effort, but the funny thing is that a great number of people passed on their floppy drives. Under these circumstances, no floppy means the impossibility to install Windows XP on SATA (on some mainboards). The result? The installation guide simply won’t detect the SATA HDD.

People that were happy they got rid of the old removable drive have now motives to worry. Some may reconsider buying new floppy drives for their computers. Even if I wrote in a precedent article about the utility of the floppy drive, I do not encourage spending your money buying back an obsolete piece of hardware. I will present you a method to avoid this inconvenient by doing a software trick.

Let’s take it slow. Where is the problem? We have a driver problem strictly because the SATA driver we need does not come embedded in the Windows XP installation package. What if we add the driver by ourselves before installing Windows?

What ingredients are involved in this operation? The original Windows XP Installation CD, a freeware application named NLite and a blank CD. Moreover, we need the drivers for the SATA controller provided by the manufacturer. In case you did not find any floppy inside the motherboard package or you cannot locate them on the mainboard installation CD, you can consult the manufacturer’s website to download the latest versions. To do the trick I have been talking about, it is assumed that you already have a Windows installed on an IDE drive. In case you don’t, pay a visit to a friend and ask him to let you use his computer. It won’t take too much time, I guarantee.

So, download the drivers and unzip them (in case they come archived) in a desired location. Then download and install the Nlite application. When you start the Nlite application, you will be asked to provide the location for the Windows installation package. Insert the genuine Windows Installation CD into the CD drive and, inside the application, select the CD drive letter.

To insert the SATA drivers within the installation package, you need to have it saved on the HDD. Hence, when the warning window appears click OK and select the destination folder for the files to be saved. Make sure that the destination partition / HDD has enough space to store the contents of the installation CD.

I tested a Windows XP Home Edition and it seems that it required about 566 MB. Immediately after you have chosen the destination folder, the application will start copying the Windows installation files. When finished, it will display some version information regarding the newly copied Windows Installation Package.

Now, click next twice until you get to a screen where you get options sorted in 4 categories: Integrate, Remove, Setup, Create. We are interested in the integration procedure, therefore select the Drivers button and click next. From the next menu window, click Import and select multiple drive folder option from the drop down menu. This option permits you to browse to the location where the downloaded drivers are found.

Select the containing directory and click next. You will get a list with the available drivers (in case there are more than one) or simply one driver. Select it (them) and click next. Now the application will ask for the permission to start the integration procedure. Choose Yes and wait for the drivers to be inserted into the installation package.

Review image Review image Review image Review image Review image
Review image Review image Review image Review image

With problematic driver being included in the installation package you can install Windows XP on your SATA HDD…but…the installation package is on the HDD. You need a bootable CD in order to start an installation. Don’t worry, once the installation package has been adorned with additional user selected drivers it can be transformed into a bootable disk image and later burned on a CD. To encapsulate the installation into a ISO image use the same Nlite application.

Open it, make sure the HDD installation folder is selected and click next. Select “Last session” preset and click next again. Now from the options menu choose Bootable ISO and click next. In the following window, make sure that the mode is set to “Create Image” and click Make ISO. A destination folder is required where the resulting ISO image will be saved. Once the image saving process finished you have the freedom to burn it on a blank CD with whatever you favorite CD burner software may be.

Review image Review image

The new CD will be the twin copy of the Windows Installation CD but with one difference, it includes the SATA driver.