PDA

View Full Version : [SOLVED] trouble with dual booting 10.04 and xp home



bg.roberts@cox.net
August 2nd, 2010, 02:44 PM
just installed 10.04 with xp home. after re boot got error: out of disk and grub rescue> .got windows xp to boot by running fixmbr from xp disk.the only way i can get into linux is with live disk. here is the boot info script. Thanks for any help


Boot Info Script 0.55 dated February 15th, 2010

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

=> Windows is installed in the MBR of /dev/sda

sda1: __________________________________________________ _______________________

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

sda2: __________________________________________________ _______________________

File system: ext4
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda2 and
looks at sector 360898854 of the same hard drive for
core.img, but core.img can not be found at this
location.
Operating System: Ubuntu 10.04 LTS
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda3: __________________________________________________ _______________________

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

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sda1 * 63 234,773,909 234,773,847 7 HPFS/NTFS
/dev/sda2 234,773,910 455,426,684 220,652,775 83 Linux
/dev/sda3 455,426,685 488,392,064 32,965,380 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/ramzswap0 swap
/dev/sda1 01CB275A6548C980 ntfs
/dev/sda2 68bc1db7-0465-4005-8361-622f6c98eb12 ext4
/dev/sda3 ec48830a-ca74-4bc8-9d43-ae1db0335c7c swap
/dev/sda: PTTYPE="dos"

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

aufs / aufs (rw)
/dev/sr0 /cdrom iso9660 (ro,noatime)
/dev/loop0 /rofs squashfs (ro,noatime)


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

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOW S
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /fastdetect /NoExecute=OptIn

=========================== sda2/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/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
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
}
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 68bc1db7-0465-4005-8361-622f6c98eb12
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 68bc1db7-0465-4005-8361-622f6c98eb12
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=15
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 ###
menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 68bc1db7-0465-4005-8361-622f6c98eb12
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=68bc1db7-0465-4005-8361-622f6c98eb12 ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 68bc1db7-0465-4005-8361-622f6c98eb12
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=68bc1db7-0465-4005-8361-622f6c98eb12 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 68bc1db7-0465-4005-8361-622f6c98eb12
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 68bc1db7-0465-4005-8361-622f6c98eb12
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Home Edition (on /dev/sda1)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 01cb275a6548c980
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 ###

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

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' 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/sda2 during installation
UUID=68bc1db7-0465-4005-8361-622f6c98eb12 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda3 during installation
UUID=ec48830a-ca74-4bc8-9d43-ae1db0335c7c none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

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


184.7GB: boot/grub/core.img
171.9GB: boot/grub/grub.cfg
184.7GB: boot/initrd.img-2.6.32-21-generic
120.7GB: boot/vmlinuz-2.6.32-21-generic
184.7GB: initrd.img
120.7GB: vmlinuzfile:///tmp/moz-screenshot.png

oldfred
August 3rd, 2010, 08:09 PM
You have it posted as solved.

To reinstall grub2

How to restore the Ubuntu/XP/Vista/7 bootloader (Updated for Ubuntu 9.10)
http://ubuntuforums.org/showthread.php?t=1014708

Install from LiveCD install on sda2 and want grub2 in drive sda's MBR:
Find linux partition, change sda2 if not correct, and/or even sda if sdb wanted:
sudo fdisk -l
# should be sda2 from your boot info script
sudo mount /dev/sda2 /mnt
sudo grub-install --root-directory=/mnt /dev/sda
If that returns any errors run:
sudo grub-install --recheck --root-directory=/mnt /dev/sda

Once in Ubuntu, ou may want to run:

sudo update-grub

bg.roberts@cox.net
August 4th, 2010, 06:11 AM
still does not work.
On reboot get error: no such partition and grub rescue>

jtarin
August 4th, 2010, 08:39 AM
I use this method and it has worked for me.Scroll down to "Reinstalling from LiveCD" (https://help.ubuntu.com/community/Grub2) . I use "METHOD 3 - CHROOT" . I have mine at a different location than MBR (on /dev/sda5) and I have to force reinstall, but this method works excellent for restoring GRUB2 to the MBR.If your needing to restore the MBR to dual boot Windows and Linux using the Windows loader let me know. I personally don't like GRUB installed to my MBR.

bg.roberts@cox.net
August 4th, 2010, 05:53 PM
I use this method and it has worked for me.Scroll down to "Reinstalling from LiveCD" (https://help.ubuntu.com/community/Grub2) . I use "METHOD 3 - CHROOT" . I have mine at a different location than MBR (on /dev/sda5) and I have to force reinstall, but this method works excellent for restoring GRUB2 to the MBR.If your needing to restore the MBR to dual boot Windows and Linux using the Windows loader let me know. I personally don't like GRUB installed to my MBR.
Has any one got Ubuntu 10.04 to work as a dual boot with xp home ? I have tried all 3 methods advised and it will not work w/Ubuntu 10.04. I have tried to do default install from live cd,also tried to do manual install. i had dual boot with ubuntu 9.10 and below and they all worked great. I just can't 10.04 to work. I found this remark on a site for EasyBCD "There is a bug in Ubuntu 10.04 that does not allow you to manually install GRUB to another partition." I am beging to believe their is a problem with the 10.04 release. If you got it to work please let me know how . Thank you . Bob

oldfred
August 4th, 2010, 08:18 PM
I dual boot but have two drives. We have had many people with working dual boots, all versions of windows and Ubuntu.

You already have grub2 installed to the Ubuntu partition. The EasyBCD comment is not quite right. It is not a bug. Grub2 does not recommend install to partitions as it may not be reliable or it may inexplicably break. But you can force it and it lets you on initial install as it assumes you know what you are doing.

Rerun the boot info script and post the new results, so we can see if you installed grub2 correctly. Please post within code tags. Highlight & use # on edit panel above where you paste.

bg.roberts@cox.net
August 4th, 2010, 09:32 PM
Oldfred:
as noted in my previous post above i have been able to do a dual boot with Ubuntu 9.10 and other older Ubuntu releases. It's just with Ubuntu 10.04 that i can't get to work. I notice that you are running on Ubuntu 9.10 and that was what i had before trying to go to Ubuntu 10.04. I have gone as far as completely wiping out my hard drive and completely re-installing xp and Ubuntu 10.04. At any rate here is my latest boot info script. Hopefully you will see something that i have over looked. Sorry for all this trouble and I want you people to know I really appetite all of your help. :)


Boot Info Script 0.55 dated February 15th, 2010

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

=> Windows is installed in the MBR of /dev/sda

sda1: __________________________________________________ _______________________

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

sda2: __________________________________________________ _______________________

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

sda5: __________________________________________________ _______________________

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

sda6: __________________________________________________ _______________________

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

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sda1 * 63 291,305,267 291,305,205 7 HPFS/NTFS
/dev/sda2 291,305,470 488,396,799 197,091,330 5 Extended
/dev/sda5 291,305,472 485,414,911 194,109,440 83 Linux
/dev/sda6 485,416,960 488,396,799 2,979,840 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/ramzswap0 swap
/dev/sda1 01CB275A6548C980 ntfs
/dev/sda2: PTTYPE="dos"
/dev/sda5 0dddc4de-f820-4e3b-ac59-fb3cd088e83b ext4
/dev/sda6 2e223665-a5dd-42fd-9fa2-6e7916a7026c swap
/dev/sda: PTTYPE="dos"

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

aufs / aufs (rw)
/dev/sr0 /cdrom iso9660 (ro,noatime)
/dev/loop0 /rofs squashfs (ro,noatime)


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

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOW S
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /fastdetect /NoExecute=OptIn

=========================== sda5/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/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
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
}
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 0dddc4de-f820-4e3b-ac59-fb3cd088e83b
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 0dddc4de-f820-4e3b-ac59-fb3cd088e83b
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
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 ###
menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 0dddc4de-f820-4e3b-ac59-fb3cd088e83b
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=0dddc4de-f820-4e3b-ac59-fb3cd088e83b ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 0dddc4de-f820-4e3b-ac59-fb3cd088e83b
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=0dddc4de-f820-4e3b-ac59-fb3cd088e83b ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 0dddc4de-f820-4e3b-ac59-fb3cd088e83b
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 0dddc4de-f820-4e3b-ac59-fb3cd088e83b
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Home Edition (on /dev/sda1)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 01cb275a6548c980
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 ###

=============================== sda5/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' 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/sda5 during installation
UUID=0dddc4de-f820-4e3b-ac59-fb3cd088e83b / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=2e223665-a5dd-42fd-9fa2-6e7916a7026c none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

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


192.2GB: boot/grub/core.img
200.8GB: boot/grub/grub.cfg
192.2GB: boot/grub/stage2
192.2GB: boot/initrd.img-2.6.32-21-generic
192.2GB: boot/vmlinuz-2.6.32-21-generic
192.2GB: initrd.img
192.2GB: vmlinuz

oldfred
August 4th, 2010, 09:58 PM
Windows is installed in the MBR of /dev/sda

Windows will only boot windows, you need to install grub2 to the MBR of sda.

How to restore the Ubuntu/XP/Vista/7 bootloader (Updated for Ubuntu 9.10)
http://ubuntuforums.org/showthread.php?t=1014708

Install MBR from LiveCD, Ubuntu install on sda5 and want grub2 in drive sda's MBR:
Find linux partition, change sda5 if not correct, and/or even sda if sdb wanted:
sudo fdisk -l
sudo mount /dev/sda5 /mnt
sudo grub-install --root-directory=/mnt /dev/sda
If that returns any errors run:
sudo grub-install --recheck --root-directory=/mnt /dev/sda

jtarin
August 4th, 2010, 10:52 PM
Solved using Grub on its own partition and XP boot.ini (http://ubuntuforums.org/showthread.php?t=1498910)