Fedora Linux Support Community & Resources Center
  #1  
Old 27th November 2011, 03:01 PM
Fedawkins Offline
Registered User
 
Join Date: Nov 2011
Posts: 51
linuxfirefox
Grub not loading XP after Fedora 16 install

Hi,

New user alert! I've just installed fedora 16 alongside XP. Loading from grub into fedora works fine, but choosing XP just goes to a blank screen and no activity. I gather there are config files for grub but I can't find them. Please can someone assist

---------- Post added at 03:01 PM ---------- Previous post was at 06:42 AM ----------

I found grub.cfg, but it says not to edit it as it's the result of some template files.
Reply With Quote
  #2  
Old 27th November 2011, 03:35 PM
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,628
linuxfirefox
Re: Grub not loading XP after Fedora 16 install

Try running grub2-mkconfig -o /boot/grub2/grub.cfg as root from the command line. Reboot and see if you can now successfully boot into Windows. Maybe something went wrong when the Windows menu option was initially added to the boot menu.

If that doesn't work then someone will have to come up with "plan b".
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #3  
Old 27th November 2011, 08:06 PM
clariceoshea Offline
Registered User
 
Join Date: Jun 2010
Posts: 279
linuxfirefox
Re: Grub not loading XP after Fedora 16 install

exactly the same problem here

never again will I upgrade Fedora or Windows with any flash or external drive plugged in

All I can think of is to
(1) reload MBR...fixmbr
(2) see if win xp still there

I have posted result.txt and grub.cfg
Reply With Quote
  #4  
Old 28th November 2011, 09:39 AM
Fedawkins Offline
Registered User
 
Join Date: Nov 2011
Posts: 51
windows_xp_2003firefox
Re: Grub not loading XP after Fedora 16 install

Thanks, will try that grub2 command when I get home.

If that doesn't work, will re-installing XP help or change anything?
Reply With Quote
  #5  
Old 28th November 2011, 09:48 AM
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,628
linuxfirefox
Re: Grub not loading XP after Fedora 16 install

Quote:
Originally Posted by Fedawkins View Post
Thanks, will try that grub2 command when I get home.

If that doesn't work, will re-installing XP help or change anything?
Reinstalling XP will overwrite the grub bootloader. You will no longer be able to boot into Fedora so you will then have to reinstall grub.

With grub legacy it was not uncommon for grub to add Windows to the boot menu only to have Windows fail to boot. This was often times caused by the bootloader pointing to the wrong partition when trying to boot Windows. I'm wondering if the same is true in your case. The problem for me is that I don't have enough experience with grub2 to tell you how to remedy that possible scenario.

My limited experience with grub2 and past experience with legacy grub lead me to reason that running the above command may correctly identify Windows and the partition that it resides on. If not, no harm done.
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #6  
Old 28th November 2011, 06:12 PM
clariceoshea Offline
Registered User
 
Join Date: Jun 2010
Posts: 279
linuxfirefox
Re: Grub not loading XP after Fedora 16 install

grub.cfg and the grub menu shows that XP is being detected

problem is that choosing it at boot time results only in a blinking cursor

in the upper left screen corner

---------- Post added at 10:12 AM ---------- Previous post was at 10:08 AM ----------

scientific Linux ...sounds great!

BTW I have a Fourier 2d transform (FK) written in

FORTRAN. I wrote it in 1986

maps lines into points velocity = f/k

I can email striking results...image files are large
Reply With Quote
  #7  
Old 29th November 2011, 09:54 AM
Fedawkins Offline
Registered User
 
Join Date: Nov 2011
Posts: 51
windows_xp_2003firefox
Re: Grub not loading XP after Fedora 16 install

That update command didn't work - it showed XP detected on dev/sda1 but just goes to the cursor when attempting to boot. I've been reading how-tos and whatnot and saw about the fdisk command - when I run fdisk -l it doesn't look like what it's meant to... I think maybe I buggered up the partitions?

I had trouble with anaconda during fedora install, and ended up using gparted to partition manually. It was a 160gb drive, and I split it 60gb Windows, the rest for linux.

This is the fdisk -l output:

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd42ad42a

Device Boot Start End Blocks Id System
/dev/sda1 * 63 122882047 61440992+ 7 HPFS/NTFS/exFAT
/dev/sda2 122882048 123906047 512000 83 Linux
/dev/sda3 123906048 312580095 94337024 8e Linux LVM

Disk /dev/mapper/vg_local-lv_swap: 2113 MB, 2113929216 bytes
255 heads, 63 sectors/track, 257 cylinders, total 4128768 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/vg_local-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders, total 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/sdb: 2000.4 GB, 2000398843904 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907028992 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x4f3e4998

Device Boot Start End Blocks Id System
/dev/sdb1 * 64 3907024064 1953512000+ 7 HPFS/NTFS/exFAT

Disk /dev/mapper/vg_local-lv_home: 40.8 GB, 40768634880 bytes
255 heads, 63 sectors/track, 4956 cylinders, total 79626240 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/vg_local-lv_swap doesn't contain a valid partition table
Disk /dev/mapper/vg_local-lv_root doesn't contain a valid partition table
Disk /dev/mapper/vg_local-lv_home doesn't contain a valid partition table
Reply With Quote
  #8  
Old 29th November 2011, 12:22 PM
JEO Offline
Registered User
 
Join Date: Jan 2006
Posts: 2,787
linuxfirefox
Re: Grub not loading XP after Fedora 16 install

After you resized your XP NTFS partition, you were supposed to use the chkdsk command (from booting to the XP recovery console cdrom) on the filesystem. Did you do that?
Reply With Quote
  #9  
Old 29th November 2011, 01:29 PM
Fedawkins Offline
Registered User
 
Join Date: Nov 2011
Posts: 51
windows_xp_2003firefox
Re: Grub not loading XP after Fedora 16 install

I did not, didn't know about that step
Reply With Quote
  #10  
Old 29th November 2011, 01:54 PM
JEO Offline
Registered User
 
Join Date: Jan 2006
Posts: 2,787
linuxfirefox
Re: Grub not loading XP after Fedora 16 install

Give it a try. Also, posting your grub.cfg file here might be helpful.
Reply With Quote
  #11  
Old 29th November 2011, 03:26 PM
sea Offline
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Confoederatio Helvetica (Swissh)
Age: 34
Posts: 3,278
linuxfirefox
Re: Grub not loading XP after Fedora 16 install

Whats the output of
Code:
lsblk
?
__________________
Laptop: Toshiba satellite p50-a-11 CPU: Intel i7 8*2400 MHz GPU: GeForce GT 745M RAM: 8192 MB Distro: Fedora (Rawhide) DE: Awesome
Text User Interface (TUI) // Windows 8+ & Fedora 20+ Dualboot
Reply With Quote
  #12  
Old 30th November 2011, 07:04 PM
Fedawkins Offline
Registered User
 
Join Date: Nov 2011
Posts: 51
linuxfirefox
Re: Grub not loading XP after Fedora 16 install

The lsblk output:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 149.1G 0 disk
├─sda1 8:1 0 58.6G 0 part
├─sda2 8:2 0 500M 0 part /boot
└─sda3 8:3 0 90G 0 part
├─vg_local-lv_swap (dm-0) 253:0 0 2G 0 lvm [SWAP]
├─vg_local-lv_root (dm-1) 253:1 0 50G 0 lvm /
└─vg_local-lv_home (dm-2) 253:2 0 38G 0 lvm /home
sr0 11:0 1 1024M 0 rom


grub2.cfg contents:
Code:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="${saved_entry}"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Fedora Linux, with Linux 3.1.2-1.fc16.i686' --class fedora --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos2)'
	search --no-floppy --fs-uuid --set=root 15ef4484-62fc-49fb-82ca-6111b81c793c
	echo	'Loading Linux 3.1.2-1.fc16.i686 ...'
	linux	/vmlinuz-3.1.2-1.fc16.i686 root=/dev/mapper/vg_local-lv_root ro rd.md=0 rd.dm=0  KEYTABLE=us quiet SYSFONT=latarcyrheb-sun16 rd.lvm.lv=vg_local/lv_swap rhgb rd.luks=0 rd.lvm.lv=vg_local/lv_root LANG=en_US.UTF-8 
	echo	'Loading initial ramdisk ...'
	initrd	/initramfs-3.1.2-1.fc16.i686.img
}
menuentry 'Fedora Linux, with Linux 3.1.2-1.fc16.i686 (recovery mode)' --class fedora --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos2)'
	search --no-floppy --fs-uuid --set=root 15ef4484-62fc-49fb-82ca-6111b81c793c
	echo	'Loading Linux 3.1.2-1.fc16.i686 ...'
	linux	/vmlinuz-3.1.2-1.fc16.i686 root=/dev/mapper/vg_local-lv_root ro single rd.md=0 rd.dm=0  KEYTABLE=us quiet SYSFONT=latarcyrheb-sun16 rd.lvm.lv=vg_local/lv_swap rhgb rd.luks=0 rd.lvm.lv=vg_local/lv_root LANG=en_US.UTF-8
	echo	'Loading initial ramdisk ...'
	initrd	/initramfs-3.1.2-1.fc16.i686.img
}
menuentry 'Fedora Linux, with Linux 3.1.0-7.fc16.i686' --class fedora --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos2)'
	search --no-floppy --fs-uuid --set=root 15ef4484-62fc-49fb-82ca-6111b81c793c
	echo	'Loading Linux 3.1.0-7.fc16.i686 ...'
	linux	/vmlinuz-3.1.0-7.fc16.i686 root=/dev/mapper/vg_local-lv_root ro rd.md=0 rd.dm=0  KEYTABLE=us quiet SYSFONT=latarcyrheb-sun16 rd.lvm.lv=vg_local/lv_swap rhgb rd.luks=0 rd.lvm.lv=vg_local/lv_root LANG=en_US.UTF-8 
	echo	'Loading initial ramdisk ...'
	initrd	/initramfs-3.1.0-7.fc16.i686.img
}
menuentry 'Fedora Linux, with Linux 3.1.0-7.fc16.i686 (recovery mode)' --class fedora --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos2)'
	search --no-floppy --fs-uuid --set=root 15ef4484-62fc-49fb-82ca-6111b81c793c
	echo	'Loading Linux 3.1.0-7.fc16.i686 ...'
	linux	/vmlinuz-3.1.0-7.fc16.i686 root=/dev/mapper/vg_local-lv_root ro single rd.md=0 rd.dm=0  KEYTABLE=us quiet SYSFONT=latarcyrheb-sun16 rd.lvm.lv=vg_local/lv_swap rhgb rd.luks=0 rd.lvm.lv=vg_local/lv_root LANG=en_US.UTF-8
	echo	'Loading initial ramdisk ...'
	initrd	/initramfs-3.1.0-7.fc16.i686.img
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" --class windows --class os {
	insmod part_msdos
	insmod ntfs
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set=root 6CE4FA5FE4FA2B4A
	drivemap -s (hd0) ${root}
	chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

### BEGIN /etc/grub.d/90_persistent ###
### END /etc/grub.d/90_persistent ###
Reply With Quote
  #13  
Old 1st December 2011, 04:50 AM
JEO Offline
Registered User
 
Join Date: Jan 2006
Posts: 2,787
linuxfirefox
Re: Grub not loading XP after Fedora 16 install

The only thing I can suggest is that you try to use the XP CD to repair XP. After that you will need to reinstall grub2 but I can't talk you through that since I don't have much experience with grub2. If you get XP working you could also reinstall Fedora and that would redo grub2.
Reply With Quote
  #14  
Old 1st December 2011, 08:45 AM
Fedawkins Offline
Registered User
 
Join Date: Nov 2011
Posts: 51
windows_xp_2003firefox
Re: Grub not loading XP after Fedora 16 install

no I'm not re-installing XP AND Fedora just to have XP work. Perhaps someone would like to advise me - I don't need XP installed on a partition, so I'm considering installing it as a a virtual machine. Good idea, bad idea?
Reply With Quote
  #15  
Old 1st December 2011, 09:34 AM
Mariusz W Offline
Registered User
 
Join Date: Nov 2007
Location: Berkeley, California
Posts: 690
unknownunknown
Re: Grub not loading XP after Fedora 16 install

Quote:
Originally Posted by Fedawkins View Post
I had trouble with anaconda during fedora install, and ended up using gparted to partition manually. It was a 160gb drive, and I split it 60gb Windows, the rest for linux.
This may be at the root of the problem: my advice is not to use gparted to resize Windows partition, I had enough problems with Windows not being able to boot as the result. Since Vista, Windows comes with its own disk management GUI, and I suggest to always use it instead of gparted to prepare the disk for installing Linux (shrinkingand moving partitions, creating raw partitions for /, , [B]/home] (don't let Windows assign any drive letters), c).

If you do, however, use gparted, then you absolutely must check before installing Linux, that you still can boot Windows. If not -- there is a tried and reliable solution: boot the Windows reinstallation DVD (if you have one), if not -- get from the internet (there are many free sources), the so called Recovery Console and burn it to a CD.

Whichever you use, the Windows reinstallation disk or the Recovery Console -- get to the command prompt *you may need to navigate through some menus, selecting "Repair mode", and then selecting the Command Prompt. At the command prompt issue

Code:
fixmbr
(this is for Windows XP; for Vista the command is different).

In my long experience I never had to do anything beyond that. Restart the computer to check whether you can boot Windows XP.

Now you can proceed to installing Linux. If you have already installed it, then you will have to boot the installer in the rescue mode and reinstall GRUB. There are penty instructions about how to do that for legacy GRUB. You will be looing for those for GRUB2.
Reply With Quote
Reply

Tags
fedora, grub, install, loading

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora Hangs While loading (After Grub) hoseinit Using Fedora 2 24th June 2011 11:43 AM
Fedora 13 after install Grub not loading. Cheesethief Installation, Upgrades and Live Media 3 13th June 2010 10:59 AM
GRUB not loading after updating Fedora 9 paulmm Hardware & Laptops 4 29th October 2008 02:43 PM
Grub Not Loading, Windows XP Loading Directly After Installing Fedora Core 4 mitsotos Installation, Upgrades and Live Media 3 21st September 2005 03:41 AM
GRUB not loading after fedora Core 1 Install hallucinatingfa Installation, Upgrades and Live Media 1 29th October 2004 03:53 PM


Current GMT-time: 05:01 (Wednesday, 30-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat