LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 07-19-2012, 07:02 AM   #1
dhruvats
LQ Newbie
 
Registered: Jun 2012
Location: Bangalore,India
Distribution: Linux Mint 13 XFCE,Windows XP
Posts: 29

Rep: Reputation: Disabled
Grub2 won't load Windows XP


I have installed Xubuntu 12.04 along with Windows XP. The GRUB2 is installed to /dev/sda as per the default recommendation in installation.
My hard disk layout:
/dev/sda1 - C:Windows XP (NTFS)
/dev/sda2 - D: NTFS
/dev/sda3 - E: NTFS
/dev/sda4 - / (Ubuntu 12.04)
/dev/sda5 - Swap
/dev/sda6 - /home

After installing, very frequently, the Windows XP is not booting, all I can see is the starting splash screen and reboot again.

I have read in forums about Grub2 problems related to dual boot with Windows.

What I tried is removed the Grub2 and installed Grub legacy using the steps given in Ubuntu community documentation for grub2.

Grub legacy is installed successfully, but Windows XP entry is not there. Also, when booting to Ubuntu, the splash screen displaying Xubuntu is not displayed.

Any ideas about the Windows XP menu entry and the Xubuntu splash screen?
 
Old 07-19-2012, 07:11 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,821

Rep: Reputation: 924Reputation: 924Reputation: 924Reputation: 924Reputation: 924Reputation: 924Reputation: 924Reputation: 924
There are several inconsistencies in that - go here, do as it says so we can see what the real situation is.
 
Old 07-19-2012, 09:50 AM   #3
dhruvats
LQ Newbie
 
Registered: Jun 2012
Location: Bangalore,India
Distribution: Linux Mint 13 XFCE,Windows XP
Posts: 29

Original Poster
Rep: Reputation: Disabled
This is the output of bootinfo script:

Quote:
Boot Info Script 0.61 [1 April 2012]


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

=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (,msdos7)/boot/grub on this drive.

sda1: __________________________________________________________________________

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

sda2: __________________________________________________________________________

File system: Extended Partition
Boot sector type: Grub Legacy
Boot sector info: Grub Legacy (v) is installed in the boot sector of
sda2 and looks at sector 248463872 of the same hard
drive for the stage2 file, but no stage2 files can be
found at this location.

sda5: __________________________________________________________________________

File system: ntfs
Boot sector type: Windows XP: NTFS
Boot sector info: According to the info in the boot sector, sda5 starts
at sector 63.
Operating System:
Boot files:

sda6: __________________________________________________________________________

File system: ntfs
Boot sector type: Windows XP: NTFS
Boot sector info: According to the info in the boot sector, sda6 starts
at sector 63.
Operating System:
Boot files:

sda7: __________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 12.04 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda8: __________________________________________________________________________

File system: swap
Boot sector type: -
Boot sector info:

sda9: __________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:

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

Drive: sda _____________________________________________________________________

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

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 63 47,102,579 47,102,517 7 NTFS / exFAT / HPFS
/dev/sda2 * 47,102,641 312,580,095 265,477,455 f W95 Extended (LBA)
/dev/sda5 47,102,643 133,114,589 86,011,947 7 NTFS / exFAT / HPFS
/dev/sda6 133,114,653 235,512,899 102,398,247 7 NTFS / exFAT / HPFS
/dev/sda7 235,513,856 256,997,375 21,483,520 83 Linux
/dev/sda8 256,999,424 258,998,271 1,998,848 82 Linux swap / Solaris
/dev/sda9 259,000,320 312,580,095 53,579,776 83 Linux


"blkid" output: ________________________________________________________________

Device UUID TYPE LABEL

/dev/sda1 18A486DBA486BB30 ntfs
/dev/sda5 42780BFA780BEB8B ntfs WinD
/dev/sda6 B8A813A0A8135C66 ntfs WinE
/dev/sda7 edfe8feb-49de-4045-9d6c-9cd844007937 ext4
/dev/sda8 79938e60-d789-4e28-815d-5f7037d44cee swap
/dev/sda9 b4888fb8-f887-45d8-bbcd-65d4c9c5b70b ext4

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/sda5 /media/WinD fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
/dev/sda6 /media/WinE fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
/dev/sda7 / ext4 (rw,errors=remount-ro)
/dev/sda9 /home ext4 (rw)


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

--------------------------------------------------------------------------------
[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 Professional" /noexecute=optin /fastdetect /usepmtimer
--------------------------------------------------------------------------------

=========================== sda7/boot/grub/grub.cfg: ===========================

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

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
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 recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

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

insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root edfe8feb-49de-4045-9d6c-9cd844007937
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root edfe8feb-49de-4045-9d6c-9cd844007937
set locale_dir=($root)/boot/grub/locale
set lang=en_IN
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="$1"
if [ "$1" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 3.2.0-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root edfe8feb-49de-4045-9d6c-9cd844007937
linux /boot/vmlinuz-3.2.0-24-generic root=UUID=edfe8feb-49de-4045-9d6c-9cd844007937 ro quiet splash nomodeset $vt_handoff
initrd /boot/initrd.img-3.2.0-24-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root edfe8feb-49de-4045-9d6c-9cd844007937
echo 'Loading Linux 3.2.0-24-generic ...'
linux /boot/vmlinuz-3.2.0-24-generic root=UUID=edfe8feb-49de-4045-9d6c-9cd844007937 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-24-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 3.2.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root edfe8feb-49de-4045-9d6c-9cd844007937
linux /boot/vmlinuz-3.2.0-23-generic root=UUID=edfe8feb-49de-4045-9d6c-9cd844007937 ro quiet splash nomodeset $vt_handoff
initrd /boot/initrd.img-3.2.0-23-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root edfe8feb-49de-4045-9d6c-9cd844007937
echo 'Loading Linux 3.2.0-23-generic ...'
linux /boot/vmlinuz-3.2.0-23-generic root=UUID=edfe8feb-49de-4045-9d6c-9cd844007937 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-23-generic
}
}
### END /etc/grub.d/10_linux ###

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

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root edfe8feb-49de-4045-9d6c-9cd844007937
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root edfe8feb-49de-4045-9d6c-9cd844007937
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### 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 18A486DBA486BB30
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 ###
--------------------------------------------------------------------------------

=============================== sda7/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda7 during installation
UUID=edfe8feb-49de-4045-9d6c-9cd844007937 / ext4 errors=remount-ro 0 1
# /home was on /dev/sda9 during installation
UUID=b4888fb8-f887-45d8-bbcd-65d4c9c5b70b /home ext4 defaults 0 2
# swap was on /dev/sda8 during installation
UUID=79938e60-d789-4e28-815d-5f7037d44cee none swap sw 0 0
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

= boot/grub/core.img 1
= boot/grub/grub.cfg 1
= boot/initrd.img-3.2.0-23-generic 2
= boot/initrd.img-3.2.0-24-generic 3
= boot/vmlinuz-3.2.0-23-generic 1
= boot/vmlinuz-3.2.0-24-generic 1
= initrd.img 3
= initrd.img.old 2
= vmlinuz 1
= vmlinuz.old 1

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

sdb

=============================== StdErr Messages: ===============================

xz: (stdin): Compressed data is corrupt
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in

This is the output of fdisk -l:
Quote:
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: 0x0004f33a

Device Boot Start End Blocks Id System
/dev/sda1 63 47102579 23551258+ 7 HPFS/NTFS/exFAT
/dev/sda2 * 47102641 312580095 132738727+ f W95 Ext'd (LBA)
/dev/sda5 47102643 133114589 43005973+ 7 HPFS/NTFS/exFAT
/dev/sda6 133114653 235512899 51199123+ 7 HPFS/NTFS/exFAT
/dev/sda7 235513856 256997375 10741760 83 Linux
/dev/sda8 256999424 258998271 999424 82 Linux swap / Solaris
/dev/sda9 259000320 312580095 26789888 83 Linux
I read through various posts in google. None of them were conclusive.
Please help me. I don't know what else to try.

Last edited by dhruvats; 07-19-2012 at 09:54 AM.
 
Old 07-19-2012, 01:08 PM   #4
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,066

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
I may be full of it as I do not run MS on my box.

I believe that MS needs a boot flag on the partition it has its boot loader on. This can't be your sda2 partition. That is your extended partition.

Fire up your Live CD and use gparted to remove the boot flag from sda2. Then put a boot flag on the correct partition for booting your MS install (sda1?).

Reboot. Try the bugger. If MS will still not boot, boot to your Linux install that is handling grub and run,as root;
Code:
update-grub
And try it again.

I believe this may do the trick for you.
 
Old 07-20-2012, 02:36 AM   #5
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,222

Rep: Reputation: 285Reputation: 285Reputation: 285
Quote:
Originally Posted by dhruvats View Post
What I tried is removed the Grub2 and installed Grub legacy using the steps given in Ubuntu community documentation for grub2.
You should have stuck with grub2. Your Windows XP could have been added to the grub2 boot menu. There is no advantage to using grub legacy to boot XP.
Now you have made a bit of a mess.
Try using the Boot Repair CD to fix your boot loader so you can boot XP:
https://help.ubuntu.com/community/Boot-Repair
 
Old 07-20-2012, 03:16 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,821

Rep: Reputation: 924Reputation: 924Reputation: 924Reputation: 924Reputation: 924Reputation: 924Reputation: 924Reputation: 924
Still not making a whole lot of sense.
According to that, grub2 is still installed, and it has a valid entry for XP (the boot flag is irrelevant - only needed if NTLDR is in the MBR, but we have grub2 here).

I missed this the first time around
Quote:
After installing, very frequently, the Windows XP is not booting, all I can see is the starting splash screen and reboot again.
That indicates XP is being booted (chainloaded) o.k., but is failing. If it doesn't happen every time, I'd say the XP filesystem has a problem.
 
Old 07-20-2012, 05:55 AM   #7
dhruvats
LQ Newbie
 
Registered: Jun 2012
Location: Bangalore,India
Distribution: Linux Mint 13 XFCE,Windows XP
Posts: 29

Original Poster
Rep: Reputation: Disabled
I tried the following:
Quote:
1. Booted into installed Xubuntu, removed grub2, installed grub-legacy. Grub legacy installed properly. But there was no menu entry for Windows XP. Also, the Xubuntu splash screen was missing, however Xubuntu booted fine.
2. Removed grub-legacy. Re-installed grub2 using the Xubuntu live cd. Ran update-grub, os-prober commands. This time I got the menu entry for Windows XP and Xubuntu splash screen came back.
So, the system currently has grub2 installed into /dev/sda. (I have re-installed grub2 again).

Also, just to make sure that, Windows XP file system is fine, I installed OpenSuse 11.4 which installs grub-legacy. With this I was always able to boot Windows XP without any issues. Since this is my friend's system who is insisting on using Ubuntu, I have no choice but to use Ubuntu in this case.

I am yet to try setting the boot flag to /dev/sda1 where the Windows XP is currently installed.

Suspect that Grub2 is creating some issues with Windows MBR.

I am thinking of using grub4dos or grub24dos to chainload Xubuntu's grub2.
 
Old 07-22-2012, 09:52 AM   #8
dhruvats
LQ Newbie
 
Registered: Jun 2012
Location: Bangalore,India
Distribution: Linux Mint 13 XFCE,Windows XP
Posts: 29

Original Poster
Rep: Reputation: Disabled
Thanks for all the help.
I finally got a working solution.
Use the GRUB Legacy instead of this GRUB2 crap. With GRUB Legacy, my dual boot is working perfectly.
May be GRUB2 should be used once it is stabilised,I mean if it doesnt work properly in a dual boot environment, the what is the point of using it.
This is one thing I like Linux compared to Windows, in Linux we have choice to use whatever we are happier with it. I am grateful to the opensource community for giving us choices which may be subjective at times and confusing as well.
 
Old 05-20-2013, 11:14 PM   #9
souliaq
LQ Newbie
 
Registered: May 2013
Posts: 3

Rep: Reputation: Disabled
Unhappy Grub2 Problems!

Hi!, "grub4dos" included in last PuppyLinux release (Slacko 5.5) can boot my Windows XP, then I overwrited puppy with Xubuntu 12.04.2, and was Unable to boot Windows XP (no error triggered, just return to GRUB menu), then I run from LiveCD and try grub-repair with no luck, then I overwrited Xubuntu with BodhiLinux 2.3.0 release, same result. Windows XP don't boot with no error. The problem is "legacy grub" that comes with PuppyLinux, can't launch BodhiLinux because for some reason kernel panic is triggered.
 
Old 05-21-2013, 09:38 AM   #10
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,153

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Boot either the Xubuntu or Bodhi Live CD. Open a terminal and run the command: sudo fdisk -l(Lower Case Letter L in the command) and post the output here. Actually, it would probably be more helpful if you ran the bootinfoscript and posted its output, get the link from the second post in this thread as it will provide drive/partition and boot file information.
 
Old 05-27-2013, 07:48 PM   #11
souliaq
LQ Newbie
 
Registered: May 2013
Posts: 3

Rep: Reputation: Disabled
yancek this is the output:

Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 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: 0x000aa7ce

Device Boot Start End Blocks Id System
/dev/sda1 * 63 16064 8001 7 HPFS/NTFS/exFAT
/dev/sda2 16126 3907028991 1953506433 5 Extended
/dev/sda5 16128 65175704 32579788+ 7 HPFS/NTFS/exFAT
/dev/sda6 65175711 3579351039 1757087664+ 7 HPFS/NTFS/exFAT
/dev/sda7 3579353088 3628179259 24413086 83 Linux
/dev/sda8 3628181504 3632084991 1951744 82 Linux swap / Solaris
/dev/sda9 3632087040 3907028991 137470976 83 Linux
 
Old 05-27-2013, 11:11 PM   #12
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,153

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
In your previous post, you mention that you think the problem may be because the Puppy Grub Legacy can't boot Xubuntu or Bodhi but you previously stated that you had overwritten Puppy first with Xubuntu then with Bodhi. Can't have it both ways? Which bootloader did you install and where did you install to, the mbr or the partition. Your last post indicates 2 Linux partitions, 3 windows partitions and swap.

What exactly is the problem? Do you now have Bodhi installed having overwritten Puppy and Xubuntu? Can you boot Bodhi? xp?

You will probably need to google 'bootinfoscript', read the instructions, download and run it from a Live CD if you can't boot your Linux install. It will provide more detailed information for someone to assist you with its output, a results.txt file which you can post here.
 
Old 05-28-2013, 07:21 AM   #13
souliaq
LQ Newbie
 
Registered: May 2013
Posts: 3

Rep: Reputation: Disabled
This is what happened: First I installed Slacko Puppy, and all went right (WinXP boots), but Puppy is a "small" distribution, and I have a lot of problems installing Eclipse IDE, Qt Creator, SDL libraries, etc. So I tried "big" distributions (big repositories in fact) Xubuntu and Bodhi, GRUB2 was unable to Boot WinXP, so what I did is take the Puppy CD, run live and install "grub4dos" without install puppy (is my fast way to install what I call "legacy grub"). WinXP boots, but not the "Ubuntu based", I resolved this problem modifying the kernel parameters, now all is working well with "legacy grub" (grub4dos is installed in /dev/sda1, which is a FAT16 partition and is the boot of XP). The only problem now, is when I apply updates because the "Ubuntu based" re-installs GRUB2. But I can live with it. But is strange that GRUB2 have this kind of problem.
 
Old 05-28-2013, 11:42 AM   #14
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,153

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
I have no idea why your installation with Grub2 would not boot xp but that is rarely a problem.
When you do updates which include a new kernel you will probably get a grub-update but I don't know why that would cause a problem. I boot my machine with Grub Legacy and have several distributions installed which use Grub2, including Mint, Ubuntu and Bodhi. If I run update-grub from any of them, it updates grub on that system partition only and doesn't affect Grub Legacy on the mbr.

I use the entry below in my menu.lst file to boot any Ubuntu derivative using Grub2 and do not have to make any changes when installing a new distribution. You could also use a chainloader entry to do the same:

Quote:
title Linux-Grub2
root (hd0,4)
kernel /boot/grub/core.img
#savedefault
##boot
The above is for a system on sda5 and the last two lines are usually not needed which is why they are commented out.
Glad you got it working.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Grub2 won't load some OS's after expanding partitions slacker_et Linux - Virtualization and Cloud 12 04-04-2011 07:08 AM
Installed 6.10 from CD and Windows xp won't load wcole@optaros.com Linux - Laptop and Netbook 2 06-12-2007 05:13 PM
Bootloader won't load Windows GothicSheep Linux - General 8 02-14-2006 11:10 PM
GRUB won't load Windows Norab Linux - Hardware 1 08-19-2005 01:33 PM
uh oh windows won't load Lrr Linux - Newbie 16 03-02-2005 10:01 PM


All times are GMT -5. The time now is 01:31 AM.

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