Are you a spammer

Please note, that the first 3 posts you make, will need to be approved by a forum Administrator or Moderator before they are publicly viewable.
Each application to join this forum is checked at the Stop Forum Spam website. If the email or IP address appears there when checked, you will not be allowed to join this forum.
If you get past this check and post spam on this forum, your posts will be immediately deleted and your account inactivated.You will then be banned and your IP will be submitted to your ISP, notifying them of your spamming. So your spam links will only be seen for an hour or two at most. In other words, don't waste your time and ours.

This forum is for the use and enjoyment of the members and visitors looking to learn about and share information regarding the topics listed. It is not a free-for-all advertising venue. Your time would be better spent pursuing legitimate avenues of promoting your websites.

Windows Reinstall when dual-booting with Linux

Post your How to's here


Windows Reinstall when dual-booting with Linux

Postby yitzikv » Mon Feb 09, 2009 6:30 pm

Hello everybody <BREW>
I've got a request from one of our users to describe how to make a clean Windows reinstall when you're dual-booting or have Linux pre-installed, of course it shouldn't effect your previous stuff it in any way ;)

OK, there are 4 steps to do that in secure way.

Step 1: Back up your boot menu (GRUB loader)
Boot into Linux
Go to Applications > Accessories > Terminal
Then type:
Code: Select all
sudo gedit /boot/grub/menu.lst
and press Enter
:!: This file has all the information about boot options. Scroll down that you should see content between
## ## End Default Options ##
and
### END DEBIAN AUTOMATIC KERNELS LIST
:arrow: These are the Linux boot options you see when starting your PC.
:!: Make a backup of this file by going to File > Save As and select a different location (I recommend a jump drive). Optionally you can simply copy and paste full contents into a new text file.
:!: Remember: It is easy to mess up this file which will cause full re-installation of Linux unless you do know how to manually re-write it from scratch.

Step 2: Creating partition for Windows installation
This step applies only to folks with single partition or without previous Windows/OS2 installations.
Restart your system
Boot with Linux Live CD and start Live Session User (Try Ubuntu without any change to your computer)
Go to System > Administration > Partition Editor
Right-click on the main data partition (in most cases /dev/sda1 - your Linux space)
Select Resize/Move
Move the slider from the right side in order to shrink the partition and create free space on your hard drive for Windows
Then click Resize/Move to confirm and Apply changes.

Step 3: Windows installation
Restart your system
Boot with Windows installation CD
Install Windows
:!: The installation will detect Linux partition as Partition 1/2 [Unknown], however Unpartitioned space is where you need to install Windows. You will also get some message... Just ignore it and finish installing Windows, basically what it says is that you will not have dual boot options, but no worries we will fix it in the next step ;)

Step 4: Restore the GRUB loader (Final Step)
Restart system
Boot with Linux Live CD and start Live Session User (Try Ubuntu without any change to your computer)
Go to Applications > Accessories > Terminal
Then type:
Code: Select all
sudo grub
and press Enter
And a few more commands (press Enter after each one):
Code: Select all
root (hd0,0)

Code: Select all
setup (hd0)

Code: Select all
quit

Code: Select all
exit

Reboot the system
:arrow: Finally you'll get the GRUB loader without Windows Vista if that's what you've installed (has to be added manually)
Boot into Linux
Go to Applications > Accessories > Terminal
Type in:
Code: Select all
sudo gedit /boot/grub/menu.lst

Scroll down to the bottom and type in the following:
Code: Select all
title Windows XP
root (hd0,1)
makeactive
chainloader +1

Save & Reboot
When the GRUB loader launches hit ESC for the menu

:idea: Tip 1: If you want to make the GRUB menu always available, boot back into Linux and edit the MENU.LST file
Type in:
Code: Select all
sudo gedit /boot/grub/menu.lst

Find the "hiddenmenu" text line and change it to "#hiddenmenu"
:idea: Tip 2: To increase the menu timeout, change the default timeout 3 in the same MENU.LST to something you want.
<BREW> <BREW> <BREW> HAPPY INSTALLING <BREW> <BREW> <BREW>
HP Pavilion dv6500t CTO Notebook PC
CPU: Intel(R) Core 2 Duo Processor (2.0GHz)
Ram: 2GB DDR2 System Memory (2 Dimm)
Video: 512MB NVIDIA GeForce 9600M GT
Hard Disks: 120GB 5400RPM SATA Hard Drive
Media: 20X DVD Burner with LightScribe Support
User avatar
yitzikv
Moderator
 
Posts: 279
Joined: Mon Nov 17, 2008 2:37 pm
Location: New York. USA
Age: 38
Operating System: Ultimate Edition 3.2 64 BIT

Return to How To's (Do not post questions please)

Who is online

Users browsing this forum: No registered users and 5 guests