LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-09-2005, 03:02 PM   #1
Geminias
Member
 
Registered: Sep 2005
Posts: 201

Rep: Reputation: 30
need help setting windows xp as default boot


hello linux community.

i had to delete linux off of my other computer for my mom because she is not intellectually capable of scrolling down to dos in the grub menu.

windows xp was preinstalled and then linux red hat 9 was installed using disk druid's default disk partitioning settings.

i deleted the linux partion using partition magic and the problem is that it now only boots to a grub command line. (not the grub menu, its like the grub program command line) and none of the commands work because it says kernal must be loaded before booting.

I then decided to go back into partition magic and merged the unallocated partion (that used to be linux but i deleted it) into the ntfs partion. The same problem still exists though.

can somebody help me set windows xp as the default boot, and get it booting to windows xp.

( and please note that despite my use of computer jargon i am surprisingly new to linux and computers. If you choose to help me please be specific and thorough, otherwise you would probably be wasting your time.)

thank you very much.
 
Old 10-09-2005, 03:21 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
get an XP boot disk with fdisk on it. boot and run "fdisk /MBR".
 
Old 10-09-2005, 03:35 PM   #3
Geminias
Member
 
Registered: Sep 2005
Posts: 201

Original Poster
Rep: Reputation: 30
thanks but i dont know how to create a boot disk with fdisk on it.

will anyone tell me?
 
Old 10-09-2005, 03:36 PM   #4
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
As acid_kewpie said, running a "fdisk /MBR" will overwrite the grub boot loader and complete your Linux de-installation (a tragic thing, to be sure... ;-))

On the other hand, if you were KEEPING Linux and simply wanted to make Windows the default (instead of the ONLY) boot, you'd do this instead:

su - root
vi /etc/grub.conf
<= CHANGE THE DEFAULT FROM "0" TO "1" (OR WHATEVER YOUR WINDOWS BOOT # IS)
 
Old 10-09-2005, 03:43 PM   #5
Geminias
Member
 
Registered: Sep 2005
Posts: 201

Original Poster
Rep: Reputation: 30
lol, i had a brain fart i guess. i should definitely have asked how to change the default before i went ahead and deleted the partition.
 
Old 10-09-2005, 03:49 PM   #6
Geminias
Member
 
Registered: Sep 2005
Posts: 201

Original Poster
Rep: Reputation: 30
okay. i made the windows xp ms dos bootable disk. i type fdisk /MBR and it says bad command or file name.

please help me.

Last edited by Geminias; 10-09-2005 at 03:57 PM.
 
Old 10-09-2005, 03:59 PM   #7
felixc
Member
 
Registered: Jul 2005
Distribution: Debian
Posts: 94

Rep: Reputation: Disabled
Try fdisk /mbr
 
Old 10-09-2005, 04:01 PM   #8
Geminias
Member
 
Registered: Sep 2005
Posts: 201

Original Poster
Rep: Reputation: 30
no go.
 
Old 10-09-2005, 04:03 PM   #9
Geminias
Member
 
Registered: Sep 2005
Posts: 201

Original Poster
Rep: Reputation: 30
the xp boot disk doesnt have fdisk on it, so it doesn't recognize it as a command. how can i get a boot disk with fdisk on it?
 
Old 10-09-2005, 04:08 PM   #10
felixc
Member
 
Registered: Jul 2005
Distribution: Debian
Posts: 94

Rep: Reputation: Disabled
Try making a boot floppy. If that doesn't have it either, see if you can't get a friend with an older system to make you one that does. Or look around for "rescue CDs" or whatnot, many of those (even if they are Linux ones) include things to restore the MBR (even the Mandriva install CD has it). Good luck.
 
Old 10-09-2005, 04:09 PM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
this is basic windows stuff... we're linux geeks... i'm sure you can work it out.
 
Old 10-09-2005, 04:46 PM   #12
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
OK - don't worry about fdisk. It falls in the category of "If you have to ask, you don't need it."

Do this instead:
1. If you want dual-boot Linux and Windows, install Windows and leave a free partition.
Do a full install of Windows (on everything except your 2nd, free partition).
Follow this with a full install of Linux (it will auto-detect and use the free partiition)

2. Otherwise, if you just want Windows:
Do a full install of Windows. Use the whole disk. You're done.

Sound like a plan?
 
Old 10-09-2005, 04:51 PM   #13
thort
Member
 
Registered: Nov 2003
Location: Sweden
Distribution: Linux Mint Cinnamon 17.3
Posts: 192

Rep: Reputation: 31
Hi !

If you have a Windows XP installation cd, boot your computer whith the cd.

Now, Windows XP installation program starts. After some time the program stops, and you can type R. Now you get into the Recovery Concole. Follow the instructions and you will get a dos-prompt. Here write: fixmbr. Now a new Master Boot Record is created which overwrite the old one, and your computer will start into Windows XP from now on.

I will add: You will get into the Recovery Console before the xp installation program have done any installation. So, it will not touch your old Wndows xp installation.

Last edited by thort; 10-09-2005 at 05:02 PM.
 
Old 10-09-2005, 08:46 PM   #14
Geminias
Member
 
Registered: Sep 2005
Posts: 201

Original Poster
Rep: Reputation: 30
thank you very much thort. seriously i will prey the lord watch over you!

(i will add: i know that the installation doesn't begin until you tell it to install lol)
 
Old 10-09-2005, 11:23 PM   #15
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
And if, for whatever reason, you *did* want to make a boot disk (with "format", "fdisk", and similar Pop Favorites from the dark past of MS-DOS), there are any number of sites you can go to. For example:

http://www.bootdisk.com/bootdisk.htm
 
  


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
How to make Windows default boot Rhadryn Linux - Newbie 4 08-02-2005 04:31 PM
setting default samba server to on caused boot hang (suse 9) memphisSuseUser Linux - Software 1 02-15-2004 11:35 AM
How do I boot with Windows as default? FutureEX Linux - General 9 10-15-2003 07:31 PM
Default boot to Windows hangs murray Linux - General 9 07-06-2002 10:33 PM
setting default boot image djhipflask Linux - General 1 04-24-2002 05:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration