HOME Forums Albums POLLS FAQ Calendar Arcade
Go Back   > LC Youth Talk > Info Zone > Tech Stuff

Notices

LOGIN ABOVE & IF YOU HAVEN'T REGISTERED? DO IT IN 10 SECONDS:

Username: Password: Confirm Password: E-Mail: Confirm E-Mail:
Birthday:      
Random Question
  I agree to forum rules 

Convert a Windows system to dual-boot Linux on a second drive

This is a discussion on Convert a Windows system to dual-boot Linux on a second drive within the Tech Stuff forums, part of the Info Zone category; I recently completed the task of converting my system running Windows XP to dual-boot Windows and Linux. I needed to ...


Reply

 

LinkBack Thread Tools Display Modes
Old 13-05-2005, 08:10 AM   #1 (permalink)
Senior Member
 

Join Date: Mar 2005
Location: surrey
Age: 22
Posts: 820
Thanks: 10
Thanked 17 Times in 15 Posts
Rep Power: 152 Viper_Jatt is on a distinguished road
Send a message via Yahoo to Viper_Jatt
Convert a Windows system to dual-boot Linux on a second drive

I recently completed the task of converting my system running Windows XP to dual-boot Windows and Linux.

I needed to run Windows most of the time, but occasionally needed to boot Linux to run special applications.

The one overriding requirement was to change the existing Windows setup as little as possible.

In this case, that meant adding a second hard drive.

Easy enough, right? Well, not so fast.

The computer in question is a standard white-box PC with Windows XP installed on its one hard drive.

One option was to shrink the exiting Windows partition with [Only Registered Users Can See Links. Click Here to Register, Or Login in the login box above.] and install Linux in the resulting free space.

However, this was too intrusive.

I did not have a backup of the data on the Windows machine, and didn't want to take the time to make one, so I was loath to do anything that could wipe it out.

So I installed and set up a new second drive, then installed Fedora Core 3 in the standard manner.

When the installer asked what drive to use, I chose the second IDE drive, hdb.

The other key step was to make sure the installer did not install a Linux boot loader on the primary hard drive.

While having the installed do this is generally the recommended method of installing a dual-boot Linux/Windows system, I didn't want to do it because of my goal of minimizing changes to the Windows disk.

The Windows bootloader (NTLDR) can be configured to boot Linux partitions, so I decided to use it as the primary bootloader.

The default boot option would remain Windows, so if i took no action on boot, the system would go to Windows as it always had.

However, if i selected Linux in the NTLDR boot menu, it would hand off to the Linux bootloader (GRUB) on the second drive.

The Fedora installer gives you the option of placing GRUB in the master partition of the primary IDE drive (hda) or in the boot partition of the secondary IDE drive (hdb1).

I instructed the installer to take the second option.

Note that without extra configuration later, this setup will not boot to Linux, because whatever bootloader is on the primary drive -- in this case Windows -- will always be run.

Another option I considered was removing the primary Windows drive and placing the Linux drive in the system as the primary drive.

I could then install GRUB on the Linux drive (the primary now) and configure it to also boot Windows on the secondary drive.

One caveat here is you must configure GRUB to [Only Registered Users Can See Links. Click Here to Register, Or Login in the login box above.].

Otherwise, Windows gets confused.

I elected not do this type of install because it seemed more complicated than installing Linux on the second drive.

Boot sector transplant

The next step in the process is to save a copy of the Linux boot partition.


This can be done either with dd in Linux or with the free [Only Registered Users Can See Links. Click Here to Register, Or Login in the login box above.] utility under Windows.


Either program simply takes the first 512 bytes on the disk and puts them into a file.


The dd command to do this is dd if=/dev/hdb1 of=bootsect.lnx size=512 count=1.


Once you have this file, copy it to a diskette or some other removable media so you can then copy it to the Windows drive for NTLDR.

I happened to use Bootpart because I forgot to use dd before I booted the system back to Windows.


If you use Bootpart you don't have to copy the boot sector to a diskette, as you are already in Windows.


To complete the transplant, place the file you created with dd or Bootpart on the Windows drive as C:\bootsect.lnx.

Now it's time to tell Windows about Linux.


Again, there are two ways to go about this.


If you are doing everything manually, fire up a text editor in Windows and edit the file c:\boot.ini.


Add the line c:\bootsect.lnx="Linux" to the end of the file.

The Bootpart way to do this is simpler: run Bootpart with the command bootpart Linux c:\bootsect.lnx "Linux".


Bootpart will take care of adding the proper entry to boot.ini for you.


Testing and final thoughts

Your system should now be correctly configured.


To test it, reboot the machine.


After the BIOS screen, the first thing you will see is the NTLDR menu asking which OS you wish to boot.


If you do nothing you will go to Windows.


If you choose Linux on this screen, NTLDR will use bootsect.lnx to hand off the boot process to Linux, and start booting from your second hard drive.


The next screen you will see will be your Linux bootloader screen.


From this point on, your system boots the same as any other Linux machine.

And there you have it: a Windows machine that boots Linux as well.


The advantages of this setup are:

  • The Windows configuration remains essentially untouched.
  • No changes to the Windows hard drive boot sector are necessary.
  • Removing Linux from the machine is simple: physically remove the Linux disk and remove the Linux entry from boot.ini under Windows.
  • Windows users have a tendency to reinstall the OS from time to time. If that occurs on this system, the Linux disk would be untouched (although you might not be able to boot to it until you copy the boot sector again and fix boot.ini).
While this configuration isn't ideal for everyone, it is a great way to add Linux to an Windows machine with minimal disruption of an existing Windows installation.
Viper_Jatt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumbleupon this post!Bookmark this post on Google!Share this post on Facebook!Spurl this Post!Reddit!
Reply With Quote
Advertisements
Advertisement
 
Old 13-05-2005, 02:40 PM   #2 (permalink)
Senior Member
 

Join Date: Jun 2004
Location: Glasgow
Posts: 896
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 181 Dhillon is on a distinguished road
Re: Convert a Windows system to dual-boot Linux on a second drive

I have Linux as a virtual OS using VMware workstation.

More Info @ [Only Registered Users Can See Links. Click Here to Register, Or Login in the login box above.]
Dhillon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumbleupon this post!Bookmark this post on Google!Share this post on Facebook!Spurl this Post!Reddit!
Reply With Quote
Old 13-05-2005, 03:23 PM   #3 (permalink)
Senior Member
 

Join Date: Mar 2005
Location: surrey
Age: 22
Posts: 820
Thanks: 10
Thanked 17 Times in 15 Posts
Rep Power: 152 Viper_Jatt is on a distinguished road
Send a message via Yahoo to Viper_Jatt
Re: Convert a Windows system to dual-boot Linux on a second drive

I am downloading it right now...to see what difference it would make...

i understand that its install into the current os...and gives a virtual environment of LINUX...

my question to you is: is it as powerful as having a proper LINUX installed like on the seperate HDD? or does it not matter and it will provide me with the same ability as any other LINUX...?
Viper_Jatt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumbleupon this post!Bookmark this post on Google!Share this post on Facebook!Spurl this Post!Reddit!
Reply With Quote
Old 13-05-2005, 03:29 PM   #4 (permalink)
Senior Member
 

Join Date: Mar 2005
Location: surrey
Age: 22
Posts: 820
Thanks: 10
Thanked 17 Times in 15 Posts
Rep Power: 152 Viper_Jatt is on a distinguished road
Send a message via Yahoo to Viper_Jatt
Re: Convert a Windows system to dual-boot Linux on a second drive

I have got another problem that I have been trying to work out for sometime now.

I have got a Laptop and it fell out of my hands down 1 full story and it went SMASH...so its all covered with ducktapes and all (it kind of looks real cool though). The amazing thing is the only real damage was done to the HDD and sometimes the computer fails to read the HDD and just does not boot until I POUND IT WITH SOME JOHN CENA ELBOWS...

Well its all under warranty and will be replaced but I had some work to complete on it...and What I am looking for is to be ABLE TO BOOT MY LAPTOP USING MY DESKTOP VIA A NETWORK CABLE...

Dhillon veer could you help me out with this?

i know very little about pxe rom and stuff ...

Please give a step by step instructions...appreciate your help...
Viper_Jatt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumbleupon this post!Bookmark this post on Google!Share this post on Facebook!Spurl this Post!Reddit!
Reply With Quote
Old 13-05-2005, 03:51 PM   #5 (permalink)
Senior Member
 

Join Date: Jun 2004
Location: Glasgow
Posts: 896
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 181 Dhillon is on a distinguished road
Re: Convert a Windows system to dual-boot Linux on a second drive

Originally Posted by viper_jatt
my question to you is: is it as powerful as having a proper LINUX installed like on the seperate HDD? or does it not matter and it will provide me with the same ability as any other LINUX...?
Two operating systems will be running at the same time, sharing the resources so don’t expect the same performance like you may be getting right now.

However Linux doesn’t require much hardware so it should work fine.
Dhillon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumbleupon this post!Bookmark this post on Google!Share this post on Facebook!Spurl this Post!Reddit!
Reply With Quote
Old 13-05-2005, 03:57 PM   #6 (permalink)
Senior Member
 

Join Date: Jun 2004
Location: Glasgow
Posts: 896
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 181 Dhillon is on a distinguished road
Re: Convert a Windows system to dual-boot Linux on a second drive

You can boot your laptop via a floppy or a cd drive but even for that HDD drive should be readable.


I think your HDD may just have a loose connection, check it.
Dhillon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumbleupon this post!Bookmark this post on Google!Share this post on Facebook!Spurl this Post!Reddit!
Reply With Quote
Old 13-05-2005, 04:00 PM   #7 (permalink)
Senior Member
 

Join Date: Oct 2004
Posts: 3,266
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 216 !~TOP_GUNNER~! will become famous soon enough!~TOP_GUNNER~! will become famous soon enough
Re: Convert a Windows system to dual-boot Linux on a second drive

aa ki gal ho rhi aa...menu ta kush palle hi nhi pe reya
!~TOP_GUNNER~! is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumbleupon this post!Bookmark this post on Google!Share this post on Facebook!Spurl this Post!Reddit!
Reply With Quote
Old 13-05-2005, 04:04 PM   #8 (permalink)
Senior Member
 

Join Date: Mar 2005
Location: surrey
Age: 22
Posts: 820
Thanks: 10
Thanked 17 Times in 15 Posts
Rep Power: 152 Viper_Jatt is on a distinguished road
Send a message via Yahoo to Viper_Jatt
Re: Convert a Windows system to dual-boot Linux on a second drive

i have already tried booting via cdrom...but like you have mentioned...it wont work without hdd detection...

now the thing is i have already checked out the connections for hdd in the laptop...there is only one big connection really...its fine...the inpage kernel error that i am gettin when suddenly the computer reboots is apparently due to a bad hdd...and since i got to use the laptop i need a way to boot it using winxp on the other system in case of failure...is there no way that this is possible?
Viper_Jatt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumbleupon this post!Bookmark this post on Google!Share this post on Facebook!Spurl this Post!Reddit!
Reply With Quote
Old 13-05-2005, 04:17 PM   #9 (permalink)
Senior Member
 

Join Date: Mar 2005
Location: surrey
Age: 22
Posts: 820
Thanks: 10
Thanked 17 Times in 15 Posts
Rep Power: 152 Viper_Jatt is on a distinguished road
Send a message via Yahoo to Viper_Jatt
Re: Convert a Windows system to dual-boot Linux on a second drive

ok just to be sure; i carried out the following tasks on my lt.

1. removed the hdd and placed it back in safely and mounted the dvd-rw on as was.

so even if there was/is a loose connection its taken care of.

2. i have replaced the ram with the new same make ram of 1 gb
and there are no problems because its from the vendor

3. cleaned out the fan unit and applied the thermo-paste to the cpu just to make sure that overheating is not the cause...which indeed it is not!

4. started the computer and it worked fine until suddenly it said again...kernel inpage error...and rebooted

now the thing is multi tasking works fine...everything is working fine but when it reboots it wont boot at all...it brings up the PXE screen where its trying to look for instructions over the network that i have established with my desktop...

now if i, as i said before, hit it hard where the hdd is for a few time...it starts working sometimes for a whole day sometimes for 2 mins...

and i getting seriously frustrated and need a way to boot via...network so in that case i can use my network card in the laptop at the university...
Viper_Jatt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumbleupon this post!Bookmark this post on Google!Share this post on Facebook!Spurl this Post!Reddit!
Reply With Quote
Advertisements
Advertisement
 
Reply

Tags
convert, drive, dualboot, linux, second, system, windows


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Play PUNJABI Radio: Radio not available
All times are GMT +5.5. The time now is 02:49 AM.

LoveChandigarh.Com © 2008, S J Edutech P Limited. Powered by vBulletin® Version 3.8.0 Beta 1, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
vBulletin | Car Loan | Magazine Subscription | Home Loan | Electricity Suppliers
Laptop | Film School | ANTIReservation.Com | 7UY.COM
DISCLAIMER: This is a public forum, we take no responsibility for the information presented or exchanged by users.