LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-09-2005, 02:27 PM   #1
crash_override_me
Member
 
Registered: Aug 2005
Location: India, New Delhi
Distribution: Debian Etch, Ubuntu
Posts: 342

Rep: Reputation: 30
Question How to Change Windows without affecting GRUB or Ubuntu??


HI GUYS,

I have been using a Dual boot Ubuntu/Win 2000 for a long time, & now want to change my Win 2000 to XP.

But i wanna do this without affecting my Ubuntu or the GRUB..
Can i do this??

I have a single Hard Disk(40 GB)

Please Help!!
 
Old 10-09-2005, 03:29 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

The bad news: Windows is the proverbial 600 pound gorilla who neither knows nor cares if there's anybody else in the room.

The good news:

a) When you install Windows, just don't lose and don't overwrite your Linux partition(s)
<= JUST PAY ATTENTION DURING THE "HARD DISK SETUP" EARLY IN THE WINDOWS INSTALL, AND YOU'LL BE FINE

b) After Windows is installed, you will only be able to boot to Windows (the grub boot will probably have been lost)

c) It's easy to fix, however. To restore dual-boot, just do something like this (my notes were for SuSE):
1. Boot from CD
2. Selected "Install" boot option.
Selected "Repair installed system" sub-option.
3. Logged on as "root" (no password)
4. Mounted my hard disk:
mkdir /oldroot
mount /dev/hda4 /oldroot
5. Ran the *hard disk's* version of grub-install, specifying the
hard-disk as "root dir":
cd /oldroot/usr/sbin
./grub-install --root-directory=/oldroot --force-lba /dev/hda4
<= GRUB-INSTALL SUCCESSFUL

'Hope that helps .. PSM
 
Old 10-11-2005, 03:05 PM   #3
crash_override_me
Member
 
Registered: Aug 2005
Location: India, New Delhi
Distribution: Debian Etch, Ubuntu
Posts: 342

Original Poster
Rep: Reputation: 30
Arrow Well it is a lil different on Ubuntu!!

hi Paul,

thanks for the help, but the procedure is somewhat different in Ubuntu.
I used the Ubuntu install cd, to go in Rescue Mode....

There i got a shell, into my ( / ), then i tried installing Grub back.... by...

grub-install /dev/hda6

where /dev/hda where hda is i donno what.
When i did this, all i was left with was the GRUB loader with no choices on it, neither Windows nor linux.......????

Well, where exactly is the GRUB boot loader installed. It shows in the /boot, but i think it is installed in the MBR of my Hard Disk.

How do i specify my MBR???

Is it done using /dev/hda0????


Please Help!!
 
Old 10-18-2005, 03:28 AM   #4
juby
Member
 
Registered: Dec 2002
Location: Bangalore, India
Distribution: Ubuntu 5.*
Posts: 241

Rep: Reputation: 30
hda1 must be ur c:
 
Old 10-18-2005, 04:52 AM   #5
BittaBrotha
Member
 
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800

Rep: Reputation: 31
The following command installs GRUB to the MBR of the master IDE device on the primary IDE bus:

It should be, /sbin/grub-install /dev/hda.

/dev/hda is the primary drive. It would install onto the MBR of your hard drive.

Last edited by BittaBrotha; 10-18-2005 at 04:56 AM.
 
Old 10-19-2005, 11:17 AM   #6
crash_override_me
Member
 
Registered: Aug 2005
Location: India, New Delhi
Distribution: Debian Etch, Ubuntu
Posts: 342

Original Poster
Rep: Reputation: 30
thanx Brotha!!

will this recover my GRUB Menu completely, or i'll have to again add Windows to it manually......?
 
  


Reply


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
In Ubuntu, change from Gnome to Fluxbox pppaaarrrkkk Linux - Newbie 6 09-02-2005 06:49 AM
GRUB can't load Windows XP... Ubuntu for AMD K8 can't boot up Navyblue Linux - Newbie 20 07-31-2005 10:19 AM
GRUB config for FC3/Ubuntu/Windows AndrewZorn Linux - General 3 04-06-2005 11:14 PM
Grub will not load Windows XP with Ubuntu dual boot Alex4R Linux - Software 1 03-26-2005 11:29 AM
reinstalling windows into a partition, without affecting linux urfrndvd Linux - General 4 08-16-2002 03:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:39 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