PDA

View Full Version : [SOLVED] Dual Boot 10.10 with WinXP



Thunderwave
October 22nd, 2010, 01:12 AM
Long story short:

I originally wanted to dual install 10.10 64 Ubuntu with Windows 7 64 RAID 1 HP PC, but RAID got corrupted and I could find no fix online except using fakeraid unsupported software. The whole thing blew my muind. I gave up after 4 or so reinstalls of windows 7 to fix RAID.

So I decided to install a dual boot 10.10 Ubuntu i86 with my old WinXP i86. I kept getting these errors at boot up: unknown filesystem, file not found, out of disk, no such partion and so on. I tried just about every grub reinstall I could find, including article here: "Recovering Ubuntu after Installing Windows."

I have read a number of install help sites and also dual install help.

After a number of tries my friend installed Ubuntu successfully, but then when I installed windows xp I am stuck here, again. I did do the Reload grub tutorials again as well.

I may just give up on WinXP and have my friend reinstall Ubuntu for me.

Thanks in advance for all your help.


Boot Info Script 0.55 dated February 15th, 2010

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

=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #1 for (,msdos1)/boot/grub.

sda1: __________________________________________________ _______________________

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

sda2: __________________________________________________ _______________________

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

sda3: __________________________________________________ _______________________

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

sda5: __________________________________________________ _______________________

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

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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 2,048 292,968,447 292,966,400 83 Linux
/dev/sda2 * 292,968,448 623,089,663 330,121,216 7 HPFS/NTFS
/dev/sda3 623,091,710 625,141,759 2,050,050 5 Extended
/dev/sda5 623,091,712 625,141,759 2,050,048 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 47ff0f43-34d3-424e-bee2-006992aa0f10 ext4
/dev/sda2 5AC8B3A412723CA7 ntfs windows
/dev/sda3: PTTYPE="dos"
/dev/sda5 1cc1e0df-b660-4aa7-9241-2d06c5b7a75e 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/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 part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 47ff0f43-34d3-424e-bee2-006992aa0f10
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 47ff0f43-34d3-424e-bee2-006992aa0f10
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.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 47ff0f43-34d3-424e-bee2-006992aa0f10
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=47ff0f43-34d3-424e-bee2-006992aa0f10 ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 47ff0f43-34d3-424e-bee2-006992aa0f10
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=47ff0f43-34d3-424e-bee2-006992aa0f10 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-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,msdos1)'
search --no-floppy --fs-uuid --set 47ff0f43-34d3-424e-bee2-006992aa0f10
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 47ff0f43-34d3-424e-bee2-006992aa0f10
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ "x${timeout}" != "x-1" ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 ###

=============================== sda1/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=47ff0f43-34d3-424e-bee2-006992aa0f10 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=1cc1e0df-b660-4aa7-9241-2d06c5b7a75e none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

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


124.6GB: boot/grub/core.img
124.7GB: boot/grub/grub.cfg
.6GB: boot/initrd.img-2.6.35-22-generic
124.6GB: boot/vmlinuz-2.6.35-22-generic
.6GB: initrd.img
124.6GB: vmlinuz

================================ sda2/boot.ini: ================================

[boot loader]
timeout=1
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOW S
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professional" /fastdetect

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


??GB: boot/grub/core.img

EDIT: I did the purge reinstall here: http://ubuntuforums.org/showthread.php?t=1581099
I am now reinstalling windows 98 to create a small partition in which I plan to ugrade to WinXP, since it's not a full copy, then I plan to reinstall Ubuntu. I noticed other issues like mine just popping up. I hope those give light to my issues.

tommcd
October 22nd, 2010, 03:26 AM
You should always install Windows first. Install XP, or any other Windows versions, to the first primary partition on your first hard drive. Then install Ubuntu to a primary or logical partition on the same, or a different hard drive. I like to keep all of my operating systems on my first hard drive for simplicity.
Let grub2 control the MBR of the first hard drive to boot both XP and Ubuntu.
This is really easy when you go about it in the right way.
See this site for dual booting Windows and Ubuntu:
http://members.iinet.net/~herman546/

Thunderwave
October 22nd, 2010, 05:34 AM
That is the way I went for the first three tries until the partition got messed up. Once that happened I lost my drives. I originally had Windows XP and all I did was follow the way that site showed me. Wasn't exactly that site but it was the same way.

Anyways, that no longer matters, for some reason any reinstall of windows is now corrupted. Either my CD no longer installs windows correctly or my disk drive has bad sectors. I need to run a disk check and try to resolve just trying to install Windows.

My friend installed Ubuntu first and then windows and had no problems. So that is how he was going to show me, but he had to leave before he could install windows.

oldfred
October 22nd, 2010, 05:38 AM
The osprober is confused on what sda2 is since you have both windows & grub. Not sure how you got grub installed to the windows partition??

Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM /boot/grub/core.img

Delete the /boot folder in your sda2 windows partition.

Try rerunning


sudo update-grub

Thunderwave
October 22nd, 2010, 05:43 AM
Deleted due to no longer meaningful.

Thunderwave
October 22nd, 2010, 05:46 AM
The osprober is confused on what sda2 is since you have both windows & grub. Not sure how you got grub installed to the windows partition??

Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM /boot/grub/core.img

Delete the /boot folder in your sda2 windows partition.

Try rerunning


sudo update-grub

I'm afraid I already removed the partitions. I tried to reinstall windows and it corrupted all partitions. I'm now reinstalling as we speak.

Thunderwave
October 22nd, 2010, 06:56 AM
Well it looks like a new crack is revealed in the foundation, "NTLDR is missing". From my search it is a Windows file not found by the bios and or Boot configuration. I will try to solve the issues using this: http://www.tinyempire.com/notes/ntldrismissing.htm tomorrow.

Thunderwave
October 23rd, 2010, 04:31 AM
Okay so I stopped trying to reinstall windows xp, because iI couldn't fix NTLDR.

I did install Ubuntu but I am not in a stable boot setup.

Here's the "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 part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 4a52bf9d-a7db-45ef-8c8a-a97efc72d052
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 4a52bf9d-a7db-45ef-8c8a-a97efc72d052
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.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 4a52bf9d-a7db-45ef-8c8a-a97efc72d052
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=4a52bf9d-a7db-45ef-8c8a-a97efc72d052 ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 4a52bf9d-a7db-45ef-8c8a-a97efc72d052
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=4a52bf9d-a7db-45ef-8c8a-a97efc72d052 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-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,msdos1)'
search --no-floppy --fs-uuid --set 4a52bf9d-a7db-45ef-8c8a-a97efc72d052
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 4a52bf9d-a7db-45ef-8c8a-a97efc72d052
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ "x${timeout}" != "x-1" ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 ###


It looks like I'm still in a windows partition. How do I get rid of that without repartitioning?

When I boot I get grub rescue, so I have to load with Live CD, then I do the 'Purge and Reinstall Grub 2" and then I have to write over both (hd0) and (hd01,msdos1).

It will boot into Ubuntu then but next time it wont.

oldfred
October 23rd, 2010, 03:38 PM
Once booted into Ubuntu from the rescue mode, have you run all updates and then tried reinstalling from there. Sometimes the dpkg-reconfigure command has worked.

#this updates everything
sudo apt-get update && sudo apt-get upgrade
#would upgrade you to the latest kernel in the repositories
sudo apt-get dist-upgrade


reinstall from working (not liveCD) system - first find Ubuntu drive:
sudo fdisk -l
if it's "/dev/sda" then just run:
sudo grub-install /dev/sda
If that returns any errors run:
sudo grub-install --recheck /dev/sda
Then:
sudo update-grub
to get grub to remember where to reinstall on updates:
sudo dpkg-reconfigure grub-pc
spacebar to choose/unchoose drive, enter to accept, do not choose partitions

Thunderwave
October 25th, 2010, 05:38 AM
Thanks oldfred but I no longer have a working Ubuntu.

I do now have a working Windows XP!
w00t!


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 424907592 of the same hard drive for
core.img, but core.img can not be found at this
location.
Operating System: Ubuntu 10.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda3: __________________________________________________ _______________________

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

sda5: __________________________________________________ _______________________

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

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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 307,194,929 307,194,867 7 HPFS/NTFS
/dev/sda2 307,195,904 621,647,871 314,451,968 83 Linux
/dev/sda3 621,649,918 625,141,759 3,491,842 5 Extended
/dev/sda5 621,649,920 625,141,759 3,491,840 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 7A2C28FF2C28B851 ntfs
/dev/sda2 ea01ec3a-5b69-4267-9e21-7b3d7358283e ext4
/dev/sda3: PTTYPE="dos"
/dev/sda5 573d4740-1f0e-4420-b6f7-14e722ef1ad1 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 Professional" /fastdetect

=========================== sda2/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 part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set ea01ec3a-5b69-4267-9e21-7b3d7358283e
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set ea01ec3a-5b69-4267-9e21-7b3d7358283e
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.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set ea01ec3a-5b69-4267-9e21-7b3d7358283e
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=ea01ec3a-5b69-4267-9e21-7b3d7358283e ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set ea01ec3a-5b69-4267-9e21-7b3d7358283e
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=ea01ec3a-5b69-4267-9e21-7b3d7358283e ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-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,msdos2)'
search --no-floppy --fs-uuid --set ea01ec3a-5b69-4267-9e21-7b3d7358283e
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set ea01ec3a-5b69-4267-9e21-7b3d7358283e
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ "x${timeout}" != "x-1" ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 ###

=============================== 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=ea01ec3a-5b69-4267-9e21-7b3d7358283e / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=573d4740-1f0e-4420-b6f7-14e722ef1ad1 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

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


217.5GB: boot/grub/core.img
241.2GB: boot/grub/grub.cfg
220.2GB: boot/initrd.img-2.6.35-22-generic
157.6GB: boot/vmlinuz-2.6.35-22-generic
220.2GB: initrd.img
157.6GB: vmlinuz

oldfred
October 25th, 2010, 05:56 AM
If you want to reinstall grub2 to the MBR.

How to restore the Ubuntu/XP/Vista/7 bootloader (Updated for Ubuntu 9.10)
http://ubuntuforums.org/showthread.php?t=1014708
https://help.ubuntu.com/community/Grub2#Reinstalling%20from%20LiveCD

Thunderwave
October 25th, 2010, 06:22 AM
That didn't work as I had suspected, since when i very first installed Ubuntu I followed those exact same instructions but there was one minor difference in Partitions. I had Ubuntu in a primary partition and swap in an extended partition, but that link has them both in an extended partition. I am not sure if that is what is causing the issue but I am reinstalling to look just as that example you gave me.

Thanks again!

Thunderwave
October 25th, 2010, 07:17 AM
That didn't work either. It was a shot in the dark.

New boot script info:



Boot Info Script 0.55 dated February 15th, 2010

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

=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #5 for (,msdos5)/boot/grub.

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.10
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: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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 307,194,929 307,194,867 7 HPFS/NTFS
/dev/sda2 307,195,902 625,141,759 317,945,858 5 Extended
/dev/sda5 307,195,904 621,647,871 314,451,968 83 Linux
/dev/sda6 621,649,920 625,141,759 3,491,840 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 7A2C28FF2C28B851 ntfs
/dev/sda2: PTTYPE="dos"
/dev/sda5 80dd8b1f-55cb-4f18-b7c1-2f6ec36c017d ext4
/dev/sda6 573d4740-1f0e-4420-b6f7-14e722ef1ad1 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 Professional" /fastdetect

=========================== sda5/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 part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 80dd8b1f-55cb-4f18-b7c1-2f6ec36c017d
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 80dd8b1f-55cb-4f18-b7c1-2f6ec36c017d
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.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 80dd8b1f-55cb-4f18-b7c1-2f6ec36c017d
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=80dd8b1f-55cb-4f18-b7c1-2f6ec36c017d ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 80dd8b1f-55cb-4f18-b7c1-2f6ec36c017d
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=80dd8b1f-55cb-4f18-b7c1-2f6ec36c017d ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-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,msdos5)'
search --no-floppy --fs-uuid --set 80dd8b1f-55cb-4f18-b7c1-2f6ec36c017d
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 80dd8b1f-55cb-4f18-b7c1-2f6ec36c017d
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)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 7a2c28ff2c28b851
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 ###

=============================== 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
/dev/sda5 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=573d4740-1f0e-4420-b6f7-14e722ef1ad1 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

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


176.7GB: boot/grub/core.img
170.3GB: boot/grub/grub.cfg
158.1GB: boot/initrd.img-2.6.35-22-generic
157.5GB: boot/vmlinuz-2.6.35-22-generic
158.1GB: initrd.img
157.5GB: vmlinuz

This leads me to believe that I must configure grub.cfg by myself, i guess... Unless anyone else knows how to connect me to both os's....

oldfred
October 25th, 2010, 05:36 PM
Boot script looks ok.

How old is this system? Some older BIOS have a 137GB limit on boot partitions. In those cases either the root partition has to be inside the 137GB limit (with /home later in the drive) or a separate /boot inside the limit.

Recent user with same issue on old computer
http://ubuntuforums.org/showthread.php?t=1599222

Thunderwave
October 25th, 2010, 09:56 PM
Thanks again, but I have not succeeded. I tried making a /boot 100Mb partition but I could not move the boot files over to it.

So my friend installed it the way he installed his yesterday and his worked fie. Plus his PC is just as old as mine. 2005.

Here's the new script.



Boot Info Script 0.55 dated February 15th, 2010

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

=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #2 for (,msdos2)/boot/grub.

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: reiserfs
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda3: __________________________________________________ _______________________

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

sda5: __________________________________________________ _______________________

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

sda6: __________________________________________________ _______________________

File system: reiserfs
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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 307,194,929 307,194,867 7 HPFS/NTFS
/dev/sda2 307,195,904 404,850,687 97,654,784 83 Linux
/dev/sda3 404,852,734 625,139,711 220,286,978 5 Extended
/dev/sda5 619,892,736 625,139,711 5,246,976 82 Linux swap / Solaris
/dev/sda6 404,852,736 619,890,687 215,037,952 83 Linux


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 7A2C28FF2C28B851 ntfs
/dev/sda2 2b5fa019-e186-4705-9467-4cf33a3d4afd reiserfs
/dev/sda3: PTTYPE="dos"
/dev/sda5 9363295b-3bf1-4127-9dba-a4f37768120b swap
/dev/sda6 a8206cb4-1b76-48d4-ae35-11635baace0b reiserfs
/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 Professional" /fastdetect

=========================== sda2/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 part_msdos
insmod reiserfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 2b5fa019-e186-4705-9467-4cf33a3d4afd
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod reiserfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 2b5fa019-e186-4705-9467-4cf33a3d4afd
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.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod reiserfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 2b5fa019-e186-4705-9467-4cf33a3d4afd
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=2b5fa019-e186-4705-9467-4cf33a3d4afd ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod reiserfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 2b5fa019-e186-4705-9467-4cf33a3d4afd
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=2b5fa019-e186-4705-9467-4cf33a3d4afd ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-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 reiserfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 2b5fa019-e186-4705-9467-4cf33a3d4afd
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod reiserfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 2b5fa019-e186-4705-9467-4cf33a3d4afd
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)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 7a2c28ff2c28b851
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 ###

=============================== 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
/dev/sda2 / reiserfs notail 0 1
/dev/sda6 /home reiserfs defaults 0 2
/dev/sda5 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

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


??GB: boot/grub/core.img
??GB: boot/grub/grub.cfg
??GB: boot/initrd.img-2.6.35-22-generic
??GB: boot/vmlinuz-2.6.35-22-generic
??GB: initrd.img
??GB: vmlinuz

oldfred
October 25th, 2010, 10:55 PM
It now looks like you install is inside the 137GB limit, but the script does not parse reiserFS partitions to show exactly were on the drive the boot files are.

Glad you resolved the issue.

Thunderwave
October 25th, 2010, 11:18 PM
No the issue isn't resolved, I meant NOT succeeded. It's still not booting. I'll post the boot script in a minute or two.

Thunderwave
October 25th, 2010, 11:23 PM
Here's the script after another reinstall using ext4.

I also did a full purge and reinstall of grub 2.

I'm beginning to think it's impossible.



Boot Info Script 0.55 dated February 15th, 2010

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

=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #5 for (,msdos5)/boot/grub.

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.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda6: __________________________________________________ _______________________

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

sda7: __________________________________________________ _______________________

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

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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 307,194,929 307,194,867 7 HPFS/NTFS
/dev/sda2 307,195,902 625,141,759 317,945,858 5 Extended
/dev/sda5 307,195,904 404,850,687 97,654,784 83 Linux
/dev/sda6 404,852,736 623,101,951 218,249,216 83 Linux
/dev/sda7 623,104,000 625,141,759 2,037,760 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 7A2C28FF2C28B851 ntfs
/dev/sda2: PTTYPE="dos"
/dev/sda5 b1524c2b-5684-4e61-ac8f-3009ffc1b7c7 ext4
/dev/sda6 c46bda05-a4dd-4923-8ca4-41198f96dec6 ext4
/dev/sda7 63c23152-c618-49ba-82e3-1d72ac788ad1 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 Professional" /fastdetect

=========================== sda5/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 part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set b1524c2b-5684-4e61-ac8f-3009ffc1b7c7
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set b1524c2b-5684-4e61-ac8f-3009ffc1b7c7
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.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set b1524c2b-5684-4e61-ac8f-3009ffc1b7c7
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=b1524c2b-5684-4e61-ac8f-3009ffc1b7c7 ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set b1524c2b-5684-4e61-ac8f-3009ffc1b7c7
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=b1524c2b-5684-4e61-ac8f-3009ffc1b7c7 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-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,msdos5)'
search --no-floppy --fs-uuid --set b1524c2b-5684-4e61-ac8f-3009ffc1b7c7
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set b1524c2b-5684-4e61-ac8f-3009ffc1b7c7
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)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 7a2c28ff2c28b851
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 ###

=============================== 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
/dev/sda5 / ext4 errors=remount-ro 0 1
/dev/sda6 /home ext4 defaults 0 2
# swap was on /dev/sda7 during installation
UUID=63c23152-c618-49ba-82e3-1d72ac788ad1 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

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


170.3GB: boot/grub/core.img
166.0GB: boot/grub/grub.cfg
179.3GB: boot/initrd.img-2.6.35-22-generic
170.3GB: boot/vmlinuz-2.6.35-22-generic
179.3GB: initrd.img
170.3GB: vmlinuz

oldfred
October 26th, 2010, 12:11 AM
Your boot files are still beyond 137GB. See end of results.txt. How large did you make your install. You only need 10-20GB if you have a separate /home which you can move /home to sda6, if we can set sda5 to boot.

Do you have any extra space in windows, it does need 20-30% free space to work well. But you could also create a NTFS partition at the end of the extended partition for windows data.

I have moved /boot to another partition and reinstalled grub, but it makes reinstall of grub more difficult as you have to also mount that partition separately.

Thunderwave
October 26th, 2010, 04:56 AM
Well it worked until I booted into windows; and then, I lost the partition due to windows trying to fix it....

Thunderwave
October 26th, 2010, 04:59 AM
Now gparted wont work.... I'm going to try to reinstal for the umteenth time and then sleep.

oldfred
October 26th, 2010, 05:34 PM
Windows XP has no partition tools and does not even see the ext partitions. Was XP just running chkdsk on the NTFS partition which is normal after partition changes.

You just need to be sure to make the first Linux ext partition small enough to be inside the 137GB limit. You may have to shrink your XP partition to allow for that or put a small /boot partition before the XP partition, but that may take forever as gparted would have to move the entire XP partition.

If the NTFS partition needs chkdsk run, gparted and Ubuntu will not mount it as that may cause damage the the chkdsk could not fix.

Thunderwave
October 26th, 2010, 06:50 PM
I just did a reinstall of both OS's. Apparently windows and Ubuntu had to be under the size limit of 130 some gig. It wouldn't work with just Ubuntu under 130, so I had to shrink Windows down to 100gig and Ubuntu root was only 20gig. I added /home 180 gig and of course swap to match my memory.

Everything went fine.

Thanks for all your help. I wish I had thought of this sooner. It took me three weeks of reinstalling windows and Ubuntu to get here.

oldfred
October 26th, 2010, 08:10 PM
Glad you got it worked out.:)

Thunderwave
October 26th, 2010, 08:40 PM
Thanks again!:)