PDA

View Full Version : [SOLVED] grub / boot loader problem



aliboy
April 22nd, 2011, 02:35 PM
whenever i select windows OS, it just goes back to the selection. All of the options are working but not the windows OS. Please help. Thank you. (I install windows xp first followed by win7. After that I install "meego" then ubuntu 10.04)


here is the copy of grub:





#
# 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,8)'
search --no-floppy --fs-uuid --set 30da4772-c3f0-4e7f-a4e8-f2334a9f3090
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,8)'
search --no-floppy --fs-uuid --set 30da4772-c3f0-4e7f-a4e8-f2334a9f3090
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,8)'
search --no-floppy --fs-uuid --set 30da4772-c3f0-4e7f-a4e8-f2334a9f3090
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=30da4772-c3f0-4e7f-a4e8-f2334a9f3090 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,8)'
search --no-floppy --fs-uuid --set 30da4772-c3f0-4e7f-a4e8-f2334a9f3090
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=30da4772-c3f0-4e7f-a4e8-f2334a9f3090 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,8)'
search --no-floppy --fs-uuid --set 30da4772-c3f0-4e7f-a4e8-f2334a9f3090
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set 30da4772-c3f0-4e7f-a4e8-f2334a9f3090
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod fat
set root='(hd0,1)'
search --no-floppy --fs-uuid --set e1aa-6900
chainloader +1
}
menuentry "unknown Linux distribution (on /dev/sda11)" {
insmod ext2
set root='(hd0,10)'
search --no-floppy --fs-uuid --set 4b195b6d-b6de-4495-8685-7fa1d0d66160
linux /vmlinuz-2.6.35.3-10.3-netbook root=/dev/sda11
}
### 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 ###

Quackers
April 22nd, 2011, 02:48 PM
From your Ubuntu desktop please go to the site below and download the boot script to your DESKTOP and then open up a terminal (Applications > Accessories > terminal) and run


sudo bash ~/Desktop/boot_info_script*.sh

This will produce a results.txt file on your desktop. Please copy the contents of that file and paste them in your next post between CODE tags. For CODE tags click on New Reply (not quick reply)and then click on the # symbol in the toolbar.
This will give a full overview of your current system.
Thanks.

http://bootinfoscript.sourceforge.net/

aliboy
April 22nd, 2011, 03:01 PM
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 #8 for /boot/grub.

sda1: __________________________________________________ _______________________

File system: vfat
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda1 and
looks at sector 578825120 of the same hard drive for
core.img, but core.img can not be found at this
location. No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /bootmgr /boot/bcd /ntldr /NTDETECT.COM

sda2: __________________________________________________ _______________________

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

sda5: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda5 and
looks at sector 578825040 of the same hard drive for
core.img, but core.img can not be found at this
location. According to the info in the boot sector,
sda5 starts at sector 63.
Operating System: Windows 7
Boot files/dirs: /Windows/System32/winload.exe

sda6: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda6 and
looks at sector 578210744 of the same hard drive for
core.img, but core.img can not be found at this
location. According to the info in the boot sector,
sda6 starts at sector 63.
Operating System:
Boot files/dirs:

sda7: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda7 and
looks at sector 578824984 of the same hard drive for
core.img, but core.img can not be found at this
location. According to the info in the boot sector,
sda7 starts at sector 311. But according to the info
from fdisk, sda7 starts at sector 534788096.
Operating System: Windows 7
Boot files/dirs: /Windows/System32/winload.exe

sda8: __________________________________________________ _______________________

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

sda9: __________________________________________________ _______________________

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

sda10: __________________________________________________ _______________________

File system: ext3
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda10 and
looks at sector 578824984 of the same hard drive for
core.img, but core.img can not be found at this
location.
Operating System:
Boot files/dirs:

sda11: __________________________________________________ _______________________

File system: btrfs
Boot sector type: -
Boot sector info:
Operating System: MeeGo release 1.1 (MeeGo)
Kernel on an
Boot files/dirs: /etc/fstab

=========================== 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 209,712,509 209,712,447 b W95 FAT32
/dev/sda2 209,712,571 625,141,759 415,429,189 f W95 Ext d (LBA)
/dev/sda5 209,712,573 524,297,339 314,584,767 7 HPFS/NTFS
/dev/sda6 524,297,403 534,787,784 10,490,382 7 HPFS/NTFS
/dev/sda7 534,788,096 568,342,527 33,554,432 7 HPFS/NTFS
/dev/sda8 568,344,576 599,801,855 31,457,280 83 Linux
/dev/sda9 620,726,272 625,141,759 4,415,488 82 Linux swap / Solaris
/dev/sda10 * 599,801,857 600,211,458 409,602 83 Linux
/dev/sda11 600,211,460 620,719,469 20,508,010 83 Linux


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/sda10 4b195b6d-b6de-4495-8685-7fa1d0d66160 ext3
/dev/sda11 18b43e85-5acd-4729-84ae-888865e4d455 btrfs
/dev/sda1 E1AA-6900 vfat
/dev/sda2: PTTYPE="dos"
/dev/sda5 01CC005EE53FEF00 ntfs
/dev/sda6 01CC005FA9F1F000 ntfs Virtual Memory
/dev/sda7 8C0A0D7E0A0D6694 ntfs
/dev/sda8 30da4772-c3f0-4e7f-a4e8-f2334a9f3090 ext4
/dev/sda9 af559ed6-8614-4c59-af5a-75319b575d5c swap
/dev/sda: PTTYPE="dos"

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

Device Mount_Point Type Options

/dev/sda8 / ext4 (rw,errors=remount-ro)


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

;

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

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

;

[boot loader]

timeout=30

default=multi(0)disk(0)rdisk(0)partition(1)\WINDOW S

[operating systems]

multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /NOEXECUTE=OPTIN /FASTDETECT


=========================== sda8/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,8)'
search --no-floppy --fs-uuid --set 30da4772-c3f0-4e7f-a4e8-f2334a9f3090
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,8)'
search --no-floppy --fs-uuid --set 30da4772-c3f0-4e7f-a4e8-f2334a9f3090
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,8)'
search --no-floppy --fs-uuid --set 30da4772-c3f0-4e7f-a4e8-f2334a9f3090
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=30da4772-c3f0-4e7f-a4e8-f2334a9f3090 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,8)'
search --no-floppy --fs-uuid --set 30da4772-c3f0-4e7f-a4e8-f2334a9f3090
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=30da4772-c3f0-4e7f-a4e8-f2334a9f3090 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,8)'
search --no-floppy --fs-uuid --set 30da4772-c3f0-4e7f-a4e8-f2334a9f3090
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set 30da4772-c3f0-4e7f-a4e8-f2334a9f3090
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod fat
set root='(hd0,1)'
search --no-floppy --fs-uuid --set e1aa-6900
chainloader +1
}
menuentry "unknown Linux distribution (on /dev/sda11)" {
insmod ext2
set root='(hd0,10)'
search --no-floppy --fs-uuid --set 4b195b6d-b6de-4495-8685-7fa1d0d66160
linux /vmlinuz-2.6.35.3-10.3-netbook root=/dev/sda11
}
### 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 ###

=============================== sda8/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/sda8 during installation
UUID=30da4772-c3f0-4e7f-a4e8-f2334a9f3090 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda9 during installation
UUID=af559ed6-8614-4c59-af5a-75319b575d5c none swap sw 0 0

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


296.3GB: boot/grub/core.img
304.0GB: boot/grub/grub.cfg
296.3GB: boot/initrd.img-2.6.32-21-generic
296.3GB: boot/vmlinuz-2.6.32-21-generic
296.3GB: initrd.img
296.3GB: vmlinuz

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


307.1GB: vmlinuz-2.6.35.3-10.3-netbook

=============================== sda11/etc/fstab: ===============================


#
# /etc/fstab
# Created by installer on Sat Apr 23 14:35:39 2011
#
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/sda11 / btrfs defaults,relatime,nodatasum 1 1
/dev/sda10 /boot ext3 defaults 1 2
/dev/sda9 swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0

Quackers
April 22nd, 2011, 03:21 PM
Wow, where do I start?
The boot flag is set on sda10, whereas it should be on sda1.
You seem to have installed grub2 to almost every partition! Even the Windows partitions! This is not a good idea.
sda1, which I suspect is some kind of recovery partition now has a grub2 Boot Sector type. I would imagine it should be Windows type.
sda5,6 and 7 appear to be in the same condition.
I don't know what's in sda10 as it doesn't give any operating system, but grub 2 is in there too :-)

The first thing I would do is move the boot flag back to sda1 and then run sudo update-grub again, then see what boots.
To move the boot flag open gparted from the Ubuntu desktop (you may need to install it first, if you haven't already).
When gparted has scanned your hard drives right-click on /dev/sda1 partition and select "manage flags" then in the new window tick the box marked "boot".
You should then see the word boot appear to the far right of /dev/sda1 in the gparted screen.
Then open a terminal and run sudo update-grub.
Then reboot and see what boots. Windows may boot, but it may not. We'll see.

aliboy
April 22nd, 2011, 04:10 PM
Still the same.:)





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 #8 for /boot/grub.

sda1: __________________________________________________ _______________________

File system: vfat
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda1 and
looks at sector 578825120 of the same hard drive for
core.img, but core.img can not be found at this
location. No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /bootmgr /boot/bcd /ntldr /NTDETECT.COM

sda2: __________________________________________________ _______________________

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

sda5: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda5 and
looks at sector 578825040 of the same hard drive for
core.img, but core.img can not be found at this
location. According to the info in the boot sector,
sda5 starts at sector 63.
Operating System: Windows 7
Boot files/dirs: /Windows/System32/winload.exe

sda6: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda6 and
looks at sector 578210744 of the same hard drive for
core.img, but core.img can not be found at this
location. According to the info in the boot sector,
sda6 starts at sector 63.
Operating System:
Boot files/dirs:

sda7: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda7 and
looks at sector 578824984 of the same hard drive for
core.img, but core.img can not be found at this
location. According to the info in the boot sector,
sda7 starts at sector 311. But according to the info
from fdisk, sda7 starts at sector 534788096.
Operating System: Windows 7
Boot files/dirs: /Windows/System32/winload.exe

sda8: __________________________________________________ _______________________

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

sda9: __________________________________________________ _______________________

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

sda10: __________________________________________________ _______________________

File system: ext3
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda10 and
looks at sector 578824984 of the same hard drive for
core.img, but core.img can not be found at this
location.
Operating System:
Boot files/dirs:

sda11: __________________________________________________ _______________________

File system: btrfs
Boot sector type: -
Boot sector info:
Operating System: MeeGo release 1.1 (MeeGo)
Kernel on an
Boot files/dirs: /etc/fstab

=========================== 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 209,712,509 209,712,447 b W95 FAT32
/dev/sda2 209,712,571 625,141,759 415,429,189 f W95 Ext d (LBA)
/dev/sda5 209,712,573 524,297,339 314,584,767 7 HPFS/NTFS
/dev/sda6 524,297,403 534,787,784 10,490,382 7 HPFS/NTFS
/dev/sda7 534,788,096 568,342,527 33,554,432 7 HPFS/NTFS
/dev/sda8 568,344,576 599,801,855 31,457,280 83 Linux
/dev/sda9 620,726,272 625,141,759 4,415,488 82 Linux swap / Solaris
/dev/sda10 599,801,857 600,211,458 409,602 83 Linux
/dev/sda11 600,211,460 620,719,469 20,508,010 83 Linux


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/sda10 4b195b6d-b6de-4495-8685-7fa1d0d66160 ext3
/dev/sda11 18b43e85-5acd-4729-84ae-888865e4d455 btrfs
/dev/sda1 E1AA-6900 vfat
/dev/sda2: PTTYPE="dos"
/dev/sda5 01CC005EE53FEF00 ntfs
/dev/sda6 01CC005FA9F1F000 ntfs Virtual Memory
/dev/sda7 8C0A0D7E0A0D6694 ntfs
/dev/sda8 30da4772-c3f0-4e7f-a4e8-f2334a9f3090 ext4
/dev/sda9 af559ed6-8614-4c59-af5a-75319b575d5c swap
/dev/sda: PTTYPE="dos"

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

Device Mount_Point Type Options

/dev/sda8 / ext4 (rw,errors=remount-ro)


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

;

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

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

;

[boot loader]

timeout=30

default=multi(0)disk(0)rdisk(0)partition(1)\WINDOW S

[operating systems]

multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /NOEXECUTE=OPTIN /FASTDETECT


=========================== sda8/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,8)'
search --no-floppy --fs-uuid --set 30da4772-c3f0-4e7f-a4e8-f2334a9f3090
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,8)'
search --no-floppy --fs-uuid --set 30da4772-c3f0-4e7f-a4e8-f2334a9f3090
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,8)'
search --no-floppy --fs-uuid --set 30da4772-c3f0-4e7f-a4e8-f2334a9f3090
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=30da4772-c3f0-4e7f-a4e8-f2334a9f3090 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,8)'
search --no-floppy --fs-uuid --set 30da4772-c3f0-4e7f-a4e8-f2334a9f3090
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=30da4772-c3f0-4e7f-a4e8-f2334a9f3090 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,8)'
search --no-floppy --fs-uuid --set 30da4772-c3f0-4e7f-a4e8-f2334a9f3090
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set 30da4772-c3f0-4e7f-a4e8-f2334a9f3090
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod fat
set root='(hd0,1)'
search --no-floppy --fs-uuid --set e1aa-6900
chainloader +1
}
menuentry "unknown Linux distribution (on /dev/sda11)" {
insmod ext2
set root='(hd0,10)'
search --no-floppy --fs-uuid --set 4b195b6d-b6de-4495-8685-7fa1d0d66160
linux /vmlinuz-2.6.35.3-10.3-netbook root=/dev/sda11
}
### 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 ###

=============================== sda8/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/sda8 during installation
UUID=30da4772-c3f0-4e7f-a4e8-f2334a9f3090 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda9 during installation
UUID=af559ed6-8614-4c59-af5a-75319b575d5c none swap sw 0 0

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


296.3GB: boot/grub/core.img
296.0GB: boot/grub/grub.cfg
296.3GB: boot/initrd.img-2.6.32-21-generic
296.3GB: boot/vmlinuz-2.6.32-21-generic
296.3GB: initrd.img
296.3GB: vmlinuz

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


307.1GB: vmlinuz-2.6.35.3-10.3-netbook

=============================== sda11/etc/fstab: ===============================


#
# /etc/fstab
# Created by installer on Sat Apr 23 14:35:39 2011
#
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/sda11 / btrfs defaults,relatime,nodatasum 1 1
/dev/sda10 /boot ext3 defaults 1 2
/dev/sda9 swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0

Quackers
April 22nd, 2011, 04:25 PM
I was afraid of that :-)
I would suggest that you boot from a Windows 7 repair disc (or installation disc) and enter the recovery console and select the command prompt option then run
bootrec.exe /fixboot This will hopefully repair the Windows bootloader.
I'm afraid I don't know what to do with regard to the boot sector type in the other NTFS partitions.
It may also be a good idea to wait for other responses to see if anybody has a better idea :-)

aliboy
April 22nd, 2011, 04:29 PM
Ill try, Thanks. :)

oldfred
April 23rd, 2011, 06:02 PM
Windows only boots thru a primary partition. So all your windows in logical partitions will only boot thru sda1. I am not sure if the windows fixboot works on repairing the extended partition installs as windows is not normally in a logical partition.

You may be able to use testdisk to recover backup boot sectors. Windows boot sectors have to match actual location on drive and partition table, so if you just copied them from another partition they will not work anyway.

Fix for most, a few have other issues, better than windows fix in many cases as it also fixes other parameters:
This has instructions on using testdisk to repair the install of grub to the boot sector for windows from Ubuntu or Linux LiveCD.
http://sourceforge.net/apps/mediawiki/bootinfoscript/index.php?title=Boot_Problems:Boot_Sector
Also check for /boot/grub in addition to /Boot

To get each MS to have its own boot loader make a second primary partition and set its boot flag on, then install the 2nd product in it. Multibooters, Pictures here worth 1000+ words
http://www.multibooters.co.uk/multiboot.html
A user who installed two windows & it worked to boot from grub directly
http://ubuntuforums.org/showthread.php?t=1271600

aliboy
April 26th, 2011, 12:47 PM
Thanks for all the help. This is already resolved. I just follow the given instructions.

>I did the repair using the repair disk of windows OS (used the command prompt and type the adviced command). I can now Access ubuntu and windows OS's but not "meego"
>I updated ubuntu, but unable to access windows OS's again.
>Run the windows repair again, and now all the installed OS (ubuntu,windows os's and meego) can be access now.