LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 02-01-2009, 07:04 PM   #1
shadows72
LQ Newbie
 
Registered: Feb 2009
Posts: 21

Rep: Reputation: 15
Can't boot XP with Grub


hey everyone,
i have installed fedora and xp on my computer
i have 2 partitions on my harddrive, 1st partition XP 2nd partition fedora10

this is my grub.conf

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,1)
# kernel /boot/vmlinuz-version ro root=/dev/sda2
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=1
timeout=15
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.27.9-159.fc10.i686)
root (hd0,1)
kernel /boot/vmlinuz-2.6.27.9-159.fc10.i686 ro root=UUID=592ccd22-e277-4fb2-be22-59930f820f34 rhgb quiet
initrd /boot/initrd-2.6.27.9-159.fc10.i686.img
title Fedora (2.6.27.5-117.fc10.i686)
root (hd0,1)
kernel /boot/vmlinuz-2.6.27.5-117.fc10.i686 ro root=UUID=592ccd22-e277-4fb2-be22-59930f820f34 rhgb quiet
initrd /boot/initrd-2.6.27.5-117.fc10.i686.img
title Other
rootnoverify (hd0,0)
chainloader +1


this is my fdisk

[root@localhost Andrew]# fdisk -l

Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x18387c7d

Device Boot Start End Blocks Id System
/dev/sda1 * 1 16519 132688836 7 HPFS/NTFS
/dev/sda2 16520 23046 52428127+ 83 Linux
/dev/sda3 23047 24321 10241437+ f W95 Ext'd (LBA)
/dev/sda5 23047 24321 10241406 b W95 FAT32


i tried booting using other, but xp does not load. ive searched around for about an hour trying various things to edit my grub.conf, but it did not work. any help would be greatly appreciated
 
Old 02-01-2009, 07:12 PM   #2
sirlancealot
Member
 
Registered: Mar 2008
Location: Washington State, US
Distribution: OPENSuse 11.1
Posts: 35

Rep: Reputation: 17
Quote:
title Other
rootnoverify (hd0,0)
chainloader +1
I might try these varieties for Other:

Code:
title Other
rootnoverify(hd0,1)
chainloader(hd0,1)+1
Code:
title Other
rootnoverify(hd0,1)
chainloader +1
Code:
title Other
rootnoverify(hd0,0)
chainloader(hd0,0)+1
That's all I can offer, good luck!
 
Old 02-01-2009, 07:32 PM   #3
shadows72
LQ Newbie
 
Registered: Feb 2009
Posts: 21

Original Poster
Rep: Reputation: 15
=/ none of those have worked, thanks for the effort though
 
Old 02-01-2009, 07:39 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 16,001

Rep: Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219
Quote:
Originally Posted by shadows72 View Post
i tried booting using other, but xp does not load.
Meaning what ?.
Does it start to load then fail, or does it just redisplay the grub menu, or a blank screen, or does it do nothing at all ... ???.
 
Old 02-01-2009, 08:09 PM   #5
shadows72
LQ Newbie
 
Registered: Feb 2009
Posts: 21

Original Poster
Rep: Reputation: 15
using the grub config from the original post, the screen would go black with a blinking underscore, hang for a bit then reboot
 
Old 02-01-2009, 09:46 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 16,001

Rep: Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219
That sounds like the boot sector of your Windows partition may have been walked on (just the bit that handles the boot, not your data).
Try booting your XP CD and go into recovery console when you see the message. Run fixboot and see it it will load (from grub) after that.

This shouldn't have happened BTW - did you happen to re-start (re-do) the F10 install ?.
 
Old 02-02-2009, 12:48 AM   #7
shadows72
LQ Newbie
 
Registered: Feb 2009
Posts: 21

Original Poster
Rep: Reputation: 15
no i havent tried to redo the f10 install, i think that extra fedora boot option appeared i let it update. however, ill try to xp cd. thank you
 
Old 02-02-2009, 01:00 AM   #8
shadows72
LQ Newbie
 
Registered: Feb 2009
Posts: 21

Original Poster
Rep: Reputation: 15
i put my XP cd into the comp and let it start. when it got to the install page, there was no option for the recovery console. i think is happening because the XP i have installed is XP home but i ionly have a XP pro disk. i exited and now i cant boot anything. my computer boots into a loop, it shows my viao screen, then the screen turns black, hangs and reboots. any help?=[
 
Old 02-02-2009, 07:47 AM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 16,001

Rep: Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219
Erk - that might be ugly.
You went too far with the CD - it offers "resource centre" prior to the install stage. I don't know where you are at now as regards Windoze.
Try a (Linux) liveCD and see what it can see - might be a good idea to ensure you have a decent backup of your data.
 
Old 02-02-2009, 10:07 AM   #10
shadows72
LQ Newbie
 
Registered: Feb 2009
Posts: 21

Original Poster
Rep: Reputation: 15
I'v fixed the mbr with super grub disk so i can boot into fedora, however if i use super grub disk and try to boot windows my computer reboots=[ but other than that i DO have the grub bootloader now
 
Old 02-02-2009, 10:33 AM   #11
CJS
Member
 
Registered: May 2008
Location: California, USA
Distribution: Ubuntu 8.10
Posts: 247

Rep: Reputation: 49
Shadows72, if your Windows boot sector is the problem, often you can use "testdisk" to repair it without having to use a Windows CD. And actually, testdisk can repair some specific problems with an NTFS boot sector that even Windows own "fixboot" can't. But before you try that, it would be good to see if your Windows boot sector is actually the problem, so how about downloading the Boot Info Script to your desktop, and then do the following as root user, but replace <username> with your username:
Code:
bash /home/<username>/Desktop/boot_info_script*.sh
That will create a "RESULTS.txt" file in the same directory from where the script is run, namely your desktop; please copy/paste the contents of that file to your next post. That will help clarify your setup and hopefully what it will take to get Windows booting again.
 
Old 02-03-2009, 12:31 AM   #12
shadows72
LQ Newbie
 
Registered: Feb 2009
Posts: 21

Original Poster
Rep: Reputation: 15
thanks for the help, this is the result.txt

============================= Boot Info Summary: ==============================

=> Grub0.97 is installed in the MBR of /dev/sda and looks on the same drive
in partition #2 for /boot/grub/stage2 and /boot/grub/menu.lst.

sda1: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows Vista
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /bootmgr /Boot/BCD /ntldr /NTDETECT.COM

sda2: _________________________________________________________________________

File system: ext3
Boot sector type: -
Boot sector info:
Operating System: Fedora release 10 (Cambridge)
Kernel on an ()
Boot files/dirs: /boot/grub/menu.lst /boot/grub/grub.conf /etc/fstab

sda3: _________________________________________________________________________

File system: Extended Partition
Boot sector type: -
Boot sector info:

sda5: _________________________________________________________________________

File system: vfat
Boot sector type: Windows XP: Fat32
Boot sector info: According to the info in the boot sector, sda5 starts
at sector 63.
Operating System:
Boot files/dirs:

=========================== Drive/Partition Info: =============================

Drive sda: _____________________________________________________________________

Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders, total 390721968 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x18387c7d

Partition Boot Start End Size Id System

/dev/sda1 * 63 265,377,734 265,377,672 7 HPFS/NTFS
/dev/sda2 265,377,735 370,233,989 104,856,255 83 Linux
/dev/sda3 370,233,990 390,716,864 20,482,875 f W95 Ext d (LBA)
/dev/sda5 370,234,053 390,716,864 20,482,812 b W95 FAT32


blkid -c /dev/null: ____________________________________________________________

/dev/sda1: UUID="68647A6F647A403C" TYPE="ntfs"
/dev/sda2: LABEL="/" UUID="592ccd22-e277-4fb2-be22-59930f820f34" TYPE="ext3"
/dev/sda5: LABEL="NDS" UUID="4869-0F1F" TYPE="vfat"

=============================== "mount" output: ===============================

/dev/sda2 on / type ext3 (rw)
/proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
gvfs-fuse-daemon on /home/Andrew/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=Andrew)

================================ sda1/boot.ini: ================================

;

;Warning: Boot.ini is used on Windows XP and earlier operating systems.

;Warning: Use BCDEDIT.exe to modify Windows Vista boot options.

;

[boot loader]

timeout=30

default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS

[operating systems]

multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /FASTDETECT


========================== sda2/boot/grub/grub.conf: ==========================

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,1)
# kernel /boot/vmlinuz-version ro root=/dev/sda2
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=15
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.27.12-170.2.5.fc10.i686)
root (hd0,1)
kernel /boot/vmlinuz-2.6.27.12-170.2.5.fc10.i686 ro root=UUID=592ccd22-e277-4fb2-be22-59930f820f34 rhgb quiet
initrd /boot/initrd-2.6.27.12-170.2.5.fc10.i686.img
title Fedora (2.6.27.9-159.fc10.i686)
root (hd0,1)
kernel /boot/vmlinuz-2.6.27.9-159.fc10.i686 ro root=UUID=592ccd22-e277-4fb2-be22-59930f820f34 rhgb quiet
initrd /boot/initrd-2.6.27.9-159.fc10.i686.img
title Fedora (2.6.27.5-117.fc10.i686)
root (hd0,1)
kernel /boot/vmlinuz-2.6.27.5-117.fc10.i686 ro root=UUID=592ccd22-e277-4fb2-be22-59930f820f34 rhgb quiet
initrd /boot/initrd-2.6.27.5-117.fc10.i686.img
title Other
rootnoverify (hd0,1)
chainloader +1


=============================== sda2/etc/fstab: ===============================


#
# /etc/fstab
# Created by anaconda on Sun Jan 25 14:47:39 2009
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or vol_id(8) for more info
#
UUID=592ccd22-e277-4fb2-be22-59930f820f34 / ext3 defaults 1 1
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0

=================== sda2: Location of files loaded by Grub: ===================


136.1GB: boot/grub/grub.conf
136.1GB: boot/grub/menu.lst
136.1GB: boot/grub/stage2
136.2GB: boot/initrd-2.6.27.12-170.2.5.fc10.i686.img
136.2GB: boot/initrd-2.6.27.5-117.fc10.i686.img
136.2GB: boot/initrd-2.6.27.9-159.fc10.i686.img
136.1GB: boot/vmlinuz-2.6.27.12-170.2.5.fc10.i686
136.2GB: boot/vmlinuz-2.6.27.5-117.fc10.i686
136.1GB: boot/vmlinuz-2.6.27.9-159.fc10.i686

=======Devices which don't seem to have a corresponding hard drive==============

sdb .
sdc .
sdd .
sde .
 
Old 02-03-2009, 02:09 AM   #13
CJS
Member
 
Registered: May 2008
Location: California, USA
Distribution: Ubuntu 8.10
Posts: 247

Rep: Reputation: 49
It looks like you had Vista installed at some point, because Vista's boot files are in your XP sda1 partition, and also your sda1 partition has a Vista boot sector rather than an XP boot sector. So to try and fix the boot sector with testdisk, how about downloading the testdisk-6.10.linux26.tar.bz2 package to your desktop, and then run it as root user:
Code:
tar xvf testdisk-6.10.linux26.tar.bz2
testdisk-6.10/linux/testdisk_static
After starting testdisk, choose "No log", choose the correct HDD and "Proceed", choose "Intel", choose "Advanced", select the Windows partition, choose "Boot", then choose "Backup BS"; if testdisk gives you a warning that the "Extrapolated boot sector and current boot sector are different", then choose "Write". After you are done doing the "Backup BS" in testdisk, reboot and let me know exactly what happens when you boot Windows XP from the Grub menu. Or if testdisk doesn't give you the option to choose "Backup BS", let me know. Also, make sure you use the (hd0,0) entry you had in your original menu.lst to boot Windows. We can work from there.
 
Old 02-03-2009, 11:37 PM   #14
shadows72
LQ Newbie
 
Registered: Feb 2009
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by CJS View Post
Or if testdisk doesn't give you the option to choose "Backup BS", let me know. Also, make sure you use the (hd0,0) entry you had in your original menu.lst to boot Windows. We can work from there.
I don't have the "Backup BS" option

this is the text in the terminal
Disk /dev/sda - 200 GB / 186 GiB - CHS 24321 255 63
Partition Start End Size in sectors
1 * HPFS - NTFS 0 1 1 16518 254 63 265377672

Boot sector
Status: OK

Backup boot sector
Status: Bad

Sectors are not identical.

A valid NTFS Boot sector must be present in order to access
any data; even if the partition is not bootable.





[ Quit ] [ List ] [Org. BS ] [Rebuild BS] [ Dump ]
Copy boot sector over backup sector

Last edited by shadows72; 02-03-2009 at 11:40 PM.
 
Old 02-04-2009, 09:14 AM   #15
CJS
Member
 
Registered: May 2008
Location: California, USA
Distribution: Ubuntu 8.10
Posts: 247

Rep: Reputation: 49
OK, since testdisk won't let you use the "Backup BS" option, how about instead downloading this XP Recovery CD, boot that, go to the recovery console and do:
Code:
fixboot
If that completes successfully, I think you should be all set. Let me know how it goes or if you run into problems.
 
  


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
Why /boot/grub/grub.conf is symlinked to /boot/grub/menu.lst raj_hcl1986@rediffma Linux - Newbie 2 10-19-2008 03:19 AM
gentoo : grub: The file /boot/boot/grub/stage1 not read correctly Boudewijn Linux - Software 3 05-21-2008 04:13 AM
How to set Grub not to auto boot any OS without Grub Boot menu shown ussr_1991 Linux - Software 2 09-01-2007 09:36 AM
GRUB dual boot problem: Boot "other" (windows) just restarts GRUB! stevod333 Linux - Software 13 04-06-2006 06:26 AM
need to access /boot/grub/menu.lst and /boot/grub/device.map neouto Linux - Newbie 8 09-04-2005 12:45 PM

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

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