LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-15-2003, 09:58 AM   #1
TENEX
LQ Newbie
 
Registered: Nov 2003
Location: australia
Posts: 6

Rep: Reputation: 0
Please Help :(


ok i will make it as short as i can. on my pc i have 2 separate hard drives C:\ and E:\

on C (master) i have windows XP and up untill this afternoon on E drive which was slave i had nothing. then i decided to install redhat linux on E drive and while installing, there was an option which asked about the boot loader and location of boot loader. i chose GRUB and since i wanted C drive to stay master i chose to locate the boot loader on C drive.

the installation was succesful but once i reboot the pc it only gave me one option which was redhat linux. i went inside linux hoping to change the settings and add windows XP to the boot loader too but i couldnt find anything.

Then i installed a fresh copy of windows XP on E drive instead of linux. then i changed the connection to make the E drive master and with new windows XP on E drive i could browse all my old windows files on C drive. i even tried to find "GRUB" on my old windows files to remove it but i couldnt find it. NOW if i make the C drive master to boot my old windows XP it says GRUB Error or something like that and doesnt boot my old XP.

i really need to boot my old windows XP as many of my assignements depend on the installed programs in there. please tell me how can i remove this boot loader "GRUB" from C drive without damaging my old windows operating system which is on C drive so that i will be able to boot it again? any sort of help is appreciated and i really need to get it done fast so that i can get my assignments done. Thanks in advance
 
Old 11-15-2003, 10:13 AM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
You just need to install NTFS support, then you can add WindowsXP to your /boot/grub/grub.conf file. Here is mine for a sample:
Code:
# Duron 950 Red Hat 7.3 /boot/grub/grub.conf file
default=0
timeout=10
splashimage=(hd0,2)/boot/grub/splash.xpm.gz
title Red Hat Linux 7.3
    root (hd0,2)
    kernel /vmlinuz-2.4.20-18.7 ro root=/dev/hda7 hdd=ide-scsi mem=nopentium
    initrd /initrd-2.4.20-18.7.img
title Mandrake 9.0 Linux
    kernel (hd0,7)/boot/vmlinuz root=/dev/hda8 quiet devfs=mount hdd=ide-scsi vga=788 mem=nopentium
    initrd (hd0,7)/boot/initrd.img
title Gentoo Linux
    root (hd0,2)
    kernel (hd0,2)/boot/bzImage root=/dev/hda6 hdd=ide-scsi mem=nopentium
title Windows
    rootnoverify (hd0,0)
    chainloader +1
You can remove grub from the mbr by booting with a Windows 98 boot floppy (at the prompt, type fdisk /mbr), or by using the Windows XP Recovery Console or the Windows 2000 Recovery Console

# Red Hat links
Red Hat Linux Manuals
Get your mp3 support here
Maximum RPM
rpmfind
Easier software management: apt4rpm - Red Carpet
Red Hat 8.0 Tips & Tricks

# Red Hat 7.3 down configuration commands
setup leads to several configuration tools

# Red Hat 7.3 up configuration commands
Configure soundcard:
redhat-config-soundcard
Configure X server:
redhat-config-xfree86
Configure network:
redhat-config-network
Manage software:
redhat-config-packages
Red Hat 9.0 Package Management Tool
Manage users
redhat-config-users

# Handling NTFS
New Technology FileSystem (NTFS) HOWTOs
Linux NTFS project
 
Old 11-15-2003, 10:24 AM   #3
TENEX
LQ Newbie
 
Registered: Nov 2003
Location: australia
Posts: 6

Original Poster
Rep: Reputation: 0
Dude it was so nice of you to answere me but i should tell you that redhat linux does not exist anymore and instead of that there is a fresh copy of windows xp. so i cannot change anything regarding the linux.

i tried to boot my old windows using an xp boot floppy but that didnt work.

i even tried to repair my old XP on C drive by putting the XP Cd and choosing repair but when it repairs and reboots the same problem happens. GRUB Error.

if i put windows XP Cd in and try to see the partitions on MY C drive it only shows one which is C:\windows..... and if i delete that one its over all my data is gone! which i dont want to happen

it was really nice of you to show me different options but please tell me right at this stage that i dont have linux anymore and there is a GRUB boot loader sitting on C drive which avoids the windows to boot how can i remove this GRUB without damaging my windows files. God bless you for any help that you give.
 
Old 11-15-2003, 10:30 AM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
# How do I uninstall Linux completely and keep/use Windows only?
You can remove grub or lilo from the mbr by booting with a Windows 98 boot floppy (at the prompt, type fdisk /mbr), or by using the Windows XP Recovery Console or the Windows 2000 Recovery Console
How to Remove Linux and Install Windows 2000
How to Remove Linux and Install Windows XP

Last edited by fancypiper; 11-15-2003 at 10:31 AM.
 
Old 11-15-2003, 10:35 AM   #5
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
I think the command you need in the recovery console is fixmbr.
 
Old 11-15-2003, 11:03 AM   #6
TENEX
LQ Newbie
 
Registered: Nov 2003
Location: australia
Posts: 6

Original Poster
Rep: Reputation: 0
i just tried the windows 98 boot disk but once it tries to boot from floppy it says Disk error. i think windows 98 boot disk is not compatible with windows XP operating system.


and as for console recovery. i did use the windows XP Cd to repair the oldwindows operating system but it doesnt give you any option to type any command or anything. it just asks if you want to repair the operating system and if you say yes it copies some files and reboots. but in my case when it reboots the same problem exists. im not aware of any other way of console recovery which enables you to enter commands so if you know any please tell me. and please note that i cannot boot the old windows to do anything. all i can do is browsing the old windows files using the new windows operating system which is on E drive.

once again Thanks for your help.
 
Old 11-15-2003, 11:15 AM   #7
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Try actually reading this page. I do believe that it will help, just get to the command prompt and you should have these commands available:

attrib del fixboot more set batch delete fixmbr mkdir systemroot bootcfg dir format more type cd disable help net chdir diskpart listsvc rd chkdsk enable logon ren cls exit map rename copy expand md rmdir


http://support.microsoft.com/default...b;EN-US;314058
 
Old 11-15-2003, 11:44 AM   #8
TENEX
LQ Newbie
 
Registered: Nov 2003
Location: australia
Posts: 6

Original Poster
Rep: Reputation: 0
OK
i could go into command prompt via the repair option. i typed fixboot and it said a new bootsector has been written then i rebooted my pc and the same problem existed. then again i went to command prompt via repair and this time i typed "fixmbr" and it asked if im sure and i said yes then it wrote a new boot sector. this time around when i booted the pc it actualy went to windows XP but asked me to insert the Cd to complete the setup or something. i hesitated since i thought it might reformat the C drive which i have valuable data on. should i go ahead and put the Cd rom inside or is it going to reformat the drive? please tell me as its very critical...
 
Old 11-15-2003, 11:51 AM   #9
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
I haven't used XP, so I don't really know. Windows 98 wanted the CD inserted anytime you wanted to do almost anything to the computer.

I would put the CD in but if it asks about reformatting something, don't let it.

Darn those wizzards.
 
Old 11-15-2003, 11:59 AM   #10
TENEX
LQ Newbie
 
Registered: Nov 2003
Location: australia
Posts: 6

Original Poster
Rep: Reputation: 0
it just says to complete the setup or something. i hope it doesnt format the harddrive. i will go ahead and will tell you what happens. cuz i dont think i have any other choice right now
 
Old 11-15-2003, 12:23 PM   #11
Edward78
Member
 
Registered: Jul 2002
Distribution: OpenSuSE 11
Posts: 441

Rep: Reputation: 30
Why did you do all that? All you needed to do is to add

title Windows XP
root (hd0,0)
makeactive
chainloader +1

to you grub.conf/menu.list file & make sure windows was first in list.
 
Old 11-15-2003, 12:29 PM   #12
Dark006
LQ Newbie
 
Registered: Nov 2003
Location: In the bus with the nuns and the guy was putting ketchup on them and the dogs were barking and the lady has the flashlights saying, "Don't land the plane here!" and the storms coming and then your balls are all over the garden party.
Distribution: Red Hat 9
Posts: 12

Rep: Reputation: 0
I just fixed the same problem. Go to /boot/grub/grub.conf and edit this w/ any editor. Type this, it should work.

title Windows XP
root (hd0,1)
chainloader (hd0,1)+1
 
Old 11-15-2003, 12:32 PM   #13
TENEX
LQ Newbie
 
Registered: Nov 2003
Location: australia
Posts: 6

Original Poster
Rep: Reputation: 0
Dude it was unbelievable.
once i inserted the CD it went through a whole brand new windows setup as if you are setting up windows for the first time on this drive and up untill the very last moments i thought that my data is gone 100%. then the miracle happened and it showed my name and asked for my password after that i knew my data is safe and it has only re-copied the application files.

Thanks for your help and time and support.

as for changing the linux setting to see windows. since im a kind of new to linux i wasnt sure that i could fix it up and plus that i had toomany assignments to do so i thought i better off get rid of linux for now.

i have stayed up allnight for this and its time to go to bed
once again Thanks
 
  


Reply



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



LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:56 PM.

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