LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 04-23-2006, 08:42 AM   #1
gdeshazo
LQ Newbie
 
Registered: Apr 2006
Posts: 3

Rep: Reputation: 0
Lost XP in Grub


After installing Debian I had 2 xp lines on mbr. I tried to delete second entry and nothing happened. I tried to delete first entry and lost both. How do I get XP back?
 
Old 04-23-2006, 08:57 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
My XP setting in /boot/grub/menu.lst is as follows:

Code:
title           Microsoft Windows XP Home Edition
root            (hd0,1)
makeactive
chainloader     +1
add that to the bottom, it ought to do it. Just remember to change the (hd0,1) to respond the correct partition where your XP is at.
 
Old 04-23-2006, 01:08 PM   #3
gdeshazo
LQ Newbie
 
Registered: Apr 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Lost XP in Grub

Thanks for your help. I can select Windows XP, but I get a screen that shows:
root (hd0,1)
Filesystem type unknown, partition type 0x7
makeactive
chainloader +1


NTLDR is missing
 
Old 04-23-2006, 01:17 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Is your XP partition on hd0,1 (second partition of the first hard drive)? GRUB number drives/partitions for zero and you need to make sure you tell it the correct partition to boot off of, as b0uncer said. If you can't figure it out, post an "fdisk -l /dev/hda" for your hard drive ("fdisk -l /dev/sda" if your drive is SCSI or SATA).
 
Old 04-23-2006, 01:57 PM   #5
gdeshazo
LQ Newbie
 
Registered: Apr 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you! Problem solved.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub lost - FC3 / XP ssrini Fedora - Installation 2 06-21-2005 11:41 PM
lost grub password ? juan_de_margo Linux - Newbie 1 01-11-2005 02:22 AM
lost new kernel in grub jeempc Fedora 7 06-27-2004 12:00 AM
Lost Grub Linux_Moose Linux - Newbie 2 08-10-2002 05:12 PM
Lost GRUB lhoff Linux - Newbie 2 08-03-2001 09:21 AM

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

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