LinuxQuestions.org
Register a domain and help support LQ
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 06-15-2007, 09:42 PM   #1
SpartacusJones
LQ Newbie
 
Registered: Sep 2004
Distribution: Mandrake 10
Posts: 27

Rep: Reputation: 15
Grub.conf to add a windows partition


Hey everyone-

I tried to install Ubuntu on an external on my mom's computer because I didn't want to disturb her Windows partition, but it didn't work (apparently her BIOS can't load from an external). Now it won't boot into either OS.

I tried to repair the MBR with an XP disk, but no one knows the admin password, so I can't do FIXMBR.

Plan B is to alter the Grub.conf file to default to Windows. Here is the text of the file:

grub_kernel_partition=""
grub_root_partition="(hd0,3)"
kernel_boot_options="root=/dev/hda2"
grub_menu_lst="/boot/grub/menu.lst"

I've seen lots of pages which explain how to change things for Linux, but have not seen a way to change it for Windows.

Anyone know how I can fix it?
 
Old 06-15-2007, 10:30 PM   #2
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
To restore Windows XP MBR

1: Boot with Windows XP CD in the drive
2: Hit any key to boot from the CD
3: Wait for installer to load drivers in memory
4: When asked to press enter to install, type: r
5: When asked which Windows installation would you like to log onto,
if there is only one, type: 1 (and hit enter)
6: When asked to type the Administrator password, I hit enter without
typing anything which will be the administrator password for most OEM
Windows installations, (No password). If you installed Windows XP
yourself and added an administrator password, type this password.
7: At the prompt type: fixmbr (and hit enter)
-**CAUTION** and a warning appear
8: When asked "Are you sure you want to write a new MBR?:" type: y
-The new master boot record has been successfully written.
9: When the prompt returns, type: exit
-The computer re-boots and Windows kernel is loaded.
 
Old 06-15-2007, 11:08 PM   #3
SpartacusJones
LQ Newbie
 
Registered: Sep 2004
Distribution: Mandrake 10
Posts: 27

Original Poster
Rep: Reputation: 15
Yeah, it was a Gateway OEM instalation, but the password isn't blank- I tried that.

I do have a disk at home that will reset the password to 12345 by 'installing' a 3rd party SCSI driver. If worse comes to worse I can do that.
 
Old 06-15-2007, 11:24 PM   #4
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
I use the Helix live CD to clear passwords, you can also find the actual application here.
 
Old 06-16-2007, 12:01 AM   #5
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
Here is the grub manual, the thing with grub is that the configuration files for grub are in the 1st sector of the /boot partition, or / if you don't have a separate /boot partition. So if grub cannot access it's configuration files in the external, you're hooped. Because even if it could, you should have been able to boot Windows off the internal.
 
  


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
Need help configuring GRUB to add the correct windows partition (Ubuntu) gnanda66541 Linux - Newbie 15 04-11-2007 11:03 PM
manually edit FC4 grub.conf to add Ubuntu alar Linux - General 2 09-19-2006 04:45 PM
add linux booting partition / option to grub.conf powah Linux - General 2 04-04-2006 05:07 PM
Moving grub.conf to another partition oO0agentcow0Oo Linux - Newbie 5 07-27-2005 02:05 PM
syntax for grub.conf to add win98 to bootloader menu 7689mich Linux - Newbie 3 08-26-2004 12:13 AM


All times are GMT -5. The time now is 10:04 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration