LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-10-2006, 08:09 PM   #1
The MJ
Member
 
Registered: Dec 2005
Posts: 41

Rep: Reputation: 15
Post Going back to a dual-boot environment: can I do it without reformatting?


I have begun to realize that, while it works perfectly for some things, linux is just not good enough alone. I find myself unable to do many things I wish I could. Cedega just doesn't cut it for gaming, flash 7 just doesn't cut it for games/movies online.

But since I can't stand the idea of using Windows exclusively, I want to go back to dual-booting. Unfortunately, windows overwrites that one part of the hard drive that says to boot linux (I think its called the MBR, but that may be something else).

Backing up to another hard drive and reinstalling later is too expensive to justify. I need something along the lines of:
1. copy my mbr? onto a floppy or something
2. install windows on a new partition
3. put the mbr? back
4. install grub to switch between the two
I do not even know where to begin though, or if its even possible.

How can I keep my linux installation working after installing Windows?

Last edited by The MJ; 07-10-2006 at 08:12 PM.
 
Old 07-11-2006, 03:26 AM   #2
infestator
LQ Newbie
 
Registered: Jul 2006
Distribution: Gentoo
Posts: 18

Rep: Reputation: 0
if you have any kind of linux livecd you can fix the problem manualy:
1. install win
2. boot from livecd
3. mount your root partition, proc partition and boot partition in place of mounted root partition, then simply say 'chroot <place_where_you_mounted_root>'
4. use your favourite console editor (vi, nano, etc...) to edit grub.conf (menu.lst) in /boot/grub (or in place your boot partition generaly mounted) and add there two sections for windows:
Code:
title windows
rootnoverify (hd0,0)
makeactive
chainloader  +1
and for linux:
Code:
title  linux
kernel (hd0,1)/<kernel_name-version> root=/dev/hda6
5. enter command:
Code:
# grub-install /dev/hda
6. reboot

(hd0,0) means /dev/hda1, (hd0,1) - /dev/hda2, also (hd1,0) and (hd1,1) mean /dev/hdb1 and hdb2 accordingly. so you should choise right names for (hdx,y) and /dev/hd. if in doubt - you can use fdisk (or cfdisk) to see partition table (and mount them).
if all done right, then two new entries ('linux' and 'windows') should appear in grub menu.
 
Old 07-12-2006, 12:19 AM   #3
The MJ
Member
 
Registered: Dec 2005
Posts: 41

Original Poster
Rep: Reputation: 15
Perfect, thanks a lot. I will try that out as soon as I get back to my computer.

Thanks
-Max
 
Old 07-13-2006, 01:58 AM   #4
infestator
LQ Newbie
 
Registered: Jul 2006
Distribution: Gentoo
Posts: 18

Rep: Reputation: 0
when you chroot you'll may be need to make 'cp /proc/mounts /etc/mtab' (don't forget to mount proc )
 
  


Reply

Tags
dual boot, windows


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Dual boot AIX and Linux in a Clustering Environment LXer Syndicated Linux News 0 06-20-2006 08:54 AM
Dual Boot Back Ups???? raffytaffy Linux - Software 1 03-15-2006 10:08 AM
I want my dual boot back but can't reinstall XP LinuxPadawan General 0 05-18-2005 08:11 PM
dual boot system, reformatting winxp zippo85 Linux - Newbie 6 12-03-2004 12:42 AM
Reformatting entire dual-boot system worries skewer Linux - General 4 07-30-2003 02:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration