LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (http://www.linuxquestions.org/questions/ubuntu-63/)
-   -   How to Change Windows without affecting GRUB or Ubuntu?? (http://www.linuxquestions.org/questions/ubuntu-63/how-to-change-windows-without-affecting-grub-or-ubuntu-371271/)

crash_override_me 10-09-2005 02:27 PM

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!!

paulsm4 10-09-2005 03:29 PM

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

crash_override_me 10-11-2005 03:05 PM

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!!

juby 10-18-2005 03:28 AM

hda1 must be ur c:

BittaBrotha 10-18-2005 04:52 AM

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.

crash_override_me 10-19-2005 11:17 AM

thanx Brotha!!

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


All times are GMT -5. The time now is 01:55 PM.