PDA

View Full Version : [SOLVED] Problem with dual booting installation



giorkosman
December 15th, 2011, 02:10 AM
I was using windows 7 but needed to use Ubuntu for my university so i did dual install, everything automatic and installed Ubuntu 11.10 alongside 7.

In the Grub interface i see windows 7 but when i selecti it a black screen appears for a second and then back to Grub interface. Ubuntu works fine.

Please if anyone understands whats going on pls tell me.

I read in similar posts (i tried everything i saw so far) that i should give information from boot info script:


Boot Info Script 0.60 from 17 May 2011


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

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

sda1: __________________________________________________ ________________________

File system: ntfs
Boot sector type: Grub2 (v1.99)
Boot sector info: Grub2 (v1.99) is installed in the boot sector of sda1
and looks at sector 947506640 of the same hard drive
for core.img. core.img is at this location and looks
for on this drive. No errors found in the Boot
Parameter Block.
Operating System:
Boot files: /bootmgr /Boot/BCD

sda2: __________________________________________________ ________________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files: /Windows/System32/winload.exe

sda3: __________________________________________________ ________________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:

sda4: __________________________________________________ ________________________

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

sda5: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 11.10
Boot files: /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: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 * 2,048 821,247 819,200 27 Hidden NTFS (Recovery Environment)
/dev/sda2 821,248 489,207,807 488,386,560 7 NTFS / exFAT / HPFS
/dev/sda3 489,207,808 783,404,441 294,196,634 7 NTFS / exFAT / HPFS
/dev/sda4 783,405,054 976,771,071 193,366,018 5 Extended
/dev/sda5 783,405,056 968,673,279 185,268,224 83 Linux
/dev/sda6 968,675,328 976,771,071 8,095,744 82 Linux swap / Solaris


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/sda1 A8C2740FC273DFCC ntfs SYSTEM
/dev/sda2 243478243477F760 ntfs WINDOWS
/dev/sda3 D03A7A703A7A5406 ntfs Data
/dev/sda5 0ccc7e88-0f1b-487b-b0cf-0631462c8af3 ext4
/dev/sda6 71c27036-76ff-463c-b8d8-fb31a0b5db85 swap

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

Device Mount_Point Type Options

/dev/sda5 / ext4 (rw,errors=remount-ro,commit=0)
/dev/sr0 /media/Repair disc Windows 7 64-bit udf (ro,nosuid,nodev,uid=1000,gid=1000,iocharset=utf8, umask=0077,dmode=0500,uhelper=udisks)


=========================== 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 video_bochs
insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 0ccc7e88-0f1b-487b-b0cf-0631462c8af3
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 0ccc7e88-0f1b-487b-b0cf-0631462c8af3
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
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
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 3.0.0-14-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 0ccc7e88-0f1b-487b-b0cf-0631462c8af3
linux /boot/vmlinuz-3.0.0-14-generic root=UUID=0ccc7e88-0f1b-487b-b0cf-0631462c8af3 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-14-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-14-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 0ccc7e88-0f1b-487b-b0cf-0631462c8af3
echo 'Loading Linux 3.0.0-14-generic ...'
linux /boot/vmlinuz-3.0.0-14-generic root=UUID=0ccc7e88-0f1b-487b-b0cf-0631462c8af3 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-14-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 3.0.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 0ccc7e88-0f1b-487b-b0cf-0631462c8af3
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=0ccc7e88-0f1b-487b-b0cf-0631462c8af3 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-12-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-12-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 0ccc7e88-0f1b-487b-b0cf-0631462c8af3
echo 'Loading Linux 3.0.0-12-generic ...'
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=0ccc7e88-0f1b-487b-b0cf-0631462c8af3 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-12-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=root 0ccc7e88-0f1b-487b-b0cf-0631462c8af3
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=root 0ccc7e88-0f1b-487b-b0cf-0631462c8af3
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)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root A8C2740FC273DFCC
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' 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=0ccc7e88-0f1b-487b-b0cf-0631462c8af3 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=71c27036-76ff-463c-b8d8-fb31a0b5db85 none swap sw 0 0
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

= boot/grub/core.img 1
= boot/grub/grub.cfg 1
= boot/initrd.img-3.0.0-12-generic 1
= boot/initrd.img-3.0.0-14-generic 2
= boot/vmlinuz-3.0.0-12-generic 1
= boot/vmlinuz-3.0.0-14-generic 1
= initrd.img 2
= initrd.img.old 1
= vmlinuz 1
= vmlinuz.old 1

======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on sda4

00000000 b6 92 04 e0 6c 19 80 c5 c3 c0 0f 06 1e 81 f2 f1 |....l...........|
00000010 d8 86 07 c2 1f 84 86 3e 08 a0 1e 3d f2 b6 c7 2a |.......>...=...*|
00000020 db f8 d8 7c c1 5a 88 9d 28 da 20 61 a5 d0 38 2b |...|.Z..(. a..8+|
00000030 5d c1 c7 95 26 f0 22 0f 98 ec 4c 5d 3f ff f9 88 |]...&."...L]?...|
00000040 4b 76 db f6 75 1b 6c ea ff de 90 05 44 df 2e 06 |Kv..u.l.....D...|
00000050 04 00 60 3c 3a 64 bd af 7f 58 55 83 f0 55 7e a8 |..`<:d...XU..U~.|
00000060 06 05 38 29 44 7c 2d 61 8f f1 7d 54 3c 55 cd 64 |..8)D|-a..}T<U.d|
00000070 d4 8a 16 3e 35 06 00 e0 61 f8 86 0c 3d 64 0f 89 |...>5...a...=d..|
00000080 40 76 a6 fa b4 c3 cf 81 f1 d0 ff 18 c5 42 06 35 |@v...........B.5|
00000090 fe 2b 1d 52 c9 25 55 b2 83 2c a4 af 2c 21 75 57 |.+.R.%U..,..,!uW|
000000a0 cd 28 ea fb a2 e2 63 04 9f 27 1f c5 75 ad 50 a9 |.(....c..'..u.P.|
000000b0 37 41 80 9d c1 b8 c0 88 31 02 bb 16 03 88 58 a0 |7A......1.....X.|
000000c0 6a 18 dd b7 e1 8d b6 fc 31 b6 df 86 36 db f0 c6 |j.......1...6...|
000000d0 db 7e 07 96 d8 38 5e e4 c7 c9 5a cb 35 45 e5 c6 |.~...8^...Z.5E..|
000000e0 55 32 df 90 c6 bf 0f da e9 ed c9 ab 5a e0 34 ba |U2..........Z.4.|
000000f0 3a 3b 06 f8 32 a0 3d dc 1d 80 6e 27 67 11 97 00 |:;..2.=...n'g...|
00000100 77 81 94 b3 d0 e3 55 de 17 35 49 76 bc 72 23 83 |w.....U..5Iv.r#.|
00000110 c0 7e ee 9f 95 a0 52 08 cc 04 28 be 03 74 be 83 |.~....R...(..t..|
00000120 29 11 f6 54 32 d8 06 92 68 30 69 94 53 75 2f b0 |)..T2...h0i.Su/.|
00000130 56 aa 80 e1 7b 3c 2a 2c ca 87 42 40 36 15 01 81 |V...{<*,..B@6...|
00000140 0c 10 04 61 f8 90 08 42 38 41 10 d5 01 e6 c4 aa |...a...B8A......|
00000150 ac 7c 9f db 07 22 38 fc 48 a0 65 50 2a 87 c8 db |.|..."8.H.eP*...|
00000160 fe 6f 7d 2b 6a 3d 9d ed ec 38 1a 84 91 fa a1 25 |.o}+j=...8.....%|
00000170 b1 e0 90 08 02 30 2a 95 2a d1 00 79 3a 20 88 e3 |.....0*.*..y: ..|
00000180 d4 ed fe 71 38 96 ae 07 6a f6 f1 43 0d 48 a9 56 |...q8...j..C.H.V|
00000190 2c 2c 0c 09 52 97 89 6a ea b2 f5 6c a5 4e dd 5f |,,..R..j...l.N._|
000001a0 ed ed 6d bd b5 04 47 57 41 98 32 70 8c 03 00 e7 |..m...GWA.2p....|
000001b0 c1 a4 48 3f 6d af b2 0c 94 4b c9 00 30 21 00 fe |..H?m....K..0!..|
000001c0 ff ff 83 fe ff ff 02 00 00 00 00 f8 0a 0b 00 fe |................|
000001d0 ff ff 05 fe ff ff 02 f8 0a 0b 00 90 7b 00 00 00 |............{...|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200


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

unlzma: Decoder error
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in

oldfred
December 15th, 2011, 06:11 AM
Welcome to the forums.

You installed the grub2 boot loader to the Windows boot partition and that is how you are booting. But installing grub to the NTFS partition boot sector (PBR) you have broken Windows. All NTFS partition have to have a NTFS signature in the PBR and if bootable info on what to boot (bootmgr for Vista/7 or ntldr for XP).


sda1: ____________________________________________

File system: ntfs
Boot sector type: Grub2 (v1.99)
Boot sector info: Grub2 (v1.99) is installed in the boot sector of sda1
and looks at sector 947506640 of the same hard drive
for core.img. core.img is at this location and looks
for on this drive. No errors found in the Boot
Parameter Block.
Operating System:
Boot files: /bootmgr /Boot/BCD



The above should look like sda2.

You need to first install the grub boot loader to the MBR of sda not the partition sda1. sda1 is in Windows the (hidden) boot/repair partition.

First from your working Ubuntu install grub2 to sda. Not sda1.

sudo grub-install /dev/sda
sudo update-grub

Reboot and confirm that Ubuntu still boots ok.

Then follow this set of instructions to use testdisk to restore the backup PBR for Windows. If backup is also damaged then you have to have to use the Windows repairCD, that it looks like you already have in your CD drive.

Fix for most, a few have other issues, better than windows fix in many cases as it also fixes other parameters:
If win7 use small 'system reserved' NTFS partition instead of the partition where windows was installed for win7
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
You want to get to this screen:
http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step#NTFS_Boot_sector_recovery

giorkosman
December 15th, 2011, 12:20 PM
Mr oldfred
I executed your instructions but nothing changed in the booting. The info script has changed though


Boot Info Script 0.60 from 17 May 2011


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

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

sda1: __________________________________________________ ________________________

File system: ntfs
Boot sector type: Grub2 (v1.99)
Boot sector info: Grub2 (v1.99) is installed in the boot sector of sda1
and looks at sector 947506640 of the same hard drive
for core.img. core.img is at this location and looks
for on this drive. No errors found in the Boot
Parameter Block.
Operating System:
Boot files: /bootmgr /Boot/BCD

sda2: __________________________________________________ ________________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files: /Windows/System32/winload.exe

sda3: __________________________________________________ ________________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:

sda4: __________________________________________________ ________________________

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

sda5: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 11.10
Boot files: /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: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 * 2,048 821,247 819,200 27 Hidden NTFS (Recovery Environment)
/dev/sda2 821,248 489,207,807 488,386,560 7 NTFS / exFAT / HPFS
/dev/sda3 489,207,808 783,404,441 294,196,634 7 NTFS / exFAT / HPFS
/dev/sda4 783,405,054 976,771,071 193,366,018 5 Extended
/dev/sda5 783,405,056 968,673,279 185,268,224 83 Linux
/dev/sda6 968,675,328 976,771,071 8,095,744 82 Linux swap / Solaris


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/sda1 A8C2740FC273DFCC ntfs SYSTEM
/dev/sda2 243478243477F760 ntfs WINDOWS
/dev/sda3 D03A7A703A7A5406 ntfs Data
/dev/sda5 0ccc7e88-0f1b-487b-b0cf-0631462c8af3 ext4
/dev/sda6 71c27036-76ff-463c-b8d8-fb31a0b5db85 swap

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

Device Mount_Point Type Options

/dev/sda5 / ext4 (rw,errors=remount-ro,commit=0)
/dev/sr0 /media/Repair disc Windows 7 64-bit udf (ro,nosuid,nodev,uid=1000,gid=1000,iocharset=utf8, umask=0077,dmode=0500,uhelper=udisks)


=========================== 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 video_bochs
insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 0ccc7e88-0f1b-487b-b0cf-0631462c8af3
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 0ccc7e88-0f1b-487b-b0cf-0631462c8af3
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
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
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 3.0.0-14-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 0ccc7e88-0f1b-487b-b0cf-0631462c8af3
linux /boot/vmlinuz-3.0.0-14-generic root=UUID=0ccc7e88-0f1b-487b-b0cf-0631462c8af3 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-14-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-14-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 0ccc7e88-0f1b-487b-b0cf-0631462c8af3
echo 'Loading Linux 3.0.0-14-generic ...'
linux /boot/vmlinuz-3.0.0-14-generic root=UUID=0ccc7e88-0f1b-487b-b0cf-0631462c8af3 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-14-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 3.0.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 0ccc7e88-0f1b-487b-b0cf-0631462c8af3
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=0ccc7e88-0f1b-487b-b0cf-0631462c8af3 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-12-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-12-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 0ccc7e88-0f1b-487b-b0cf-0631462c8af3
echo 'Loading Linux 3.0.0-12-generic ...'
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=0ccc7e88-0f1b-487b-b0cf-0631462c8af3 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-12-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=root 0ccc7e88-0f1b-487b-b0cf-0631462c8af3
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=root 0ccc7e88-0f1b-487b-b0cf-0631462c8af3
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)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root A8C2740FC273DFCC
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' 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=0ccc7e88-0f1b-487b-b0cf-0631462c8af3 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=71c27036-76ff-463c-b8d8-fb31a0b5db85 none swap sw 0 0
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

= boot/grub/core.img 1
= boot/grub/grub.cfg 1
= boot/initrd.img-3.0.0-12-generic 1
= boot/initrd.img-3.0.0-14-generic 2
= boot/vmlinuz-3.0.0-12-generic 1
= boot/vmlinuz-3.0.0-14-generic 1
= initrd.img 2
= initrd.img.old 1
= vmlinuz 1
= vmlinuz.old 1

======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on sda4

00000000 b6 92 04 e0 6c 19 80 c5 c3 c0 0f 06 1e 81 f2 f1 |....l...........|
00000010 d8 86 07 c2 1f 84 86 3e 08 a0 1e 3d f2 b6 c7 2a |.......>...=...*|
00000020 db f8 d8 7c c1 5a 88 9d 28 da 20 61 a5 d0 38 2b |...|.Z..(. a..8+|
00000030 5d c1 c7 95 26 f0 22 0f 98 ec 4c 5d 3f ff f9 88 |]...&."...L]?...|
00000040 4b 76 db f6 75 1b 6c ea ff de 90 05 44 df 2e 06 |Kv..u.l.....D...|
00000050 04 00 60 3c 3a 64 bd af 7f 58 55 83 f0 55 7e a8 |..`<:d...XU..U~.|
00000060 06 05 38 29 44 7c 2d 61 8f f1 7d 54 3c 55 cd 64 |..8)D|-a..}T<U.d|
00000070 d4 8a 16 3e 35 06 00 e0 61 f8 86 0c 3d 64 0f 89 |...>5...a...=d..|
00000080 40 76 a6 fa b4 c3 cf 81 f1 d0 ff 18 c5 42 06 35 |@v...........B.5|
00000090 fe 2b 1d 52 c9 25 55 b2 83 2c a4 af 2c 21 75 57 |.+.R.%U..,..,!uW|
000000a0 cd 28 ea fb a2 e2 63 04 9f 27 1f c5 75 ad 50 a9 |.(....c..'..u.P.|
000000b0 37 41 80 9d c1 b8 c0 88 31 02 bb 16 03 88 58 a0 |7A......1.....X.|
000000c0 6a 18 dd b7 e1 8d b6 fc 31 b6 df 86 36 db f0 c6 |j.......1...6...|
000000d0 db 7e 07 96 d8 38 5e e4 c7 c9 5a cb 35 45 e5 c6 |.~...8^...Z.5E..|
000000e0 55 32 df 90 c6 bf 0f da e9 ed c9 ab 5a e0 34 ba |U2..........Z.4.|
000000f0 3a 3b 06 f8 32 a0 3d dc 1d 80 6e 27 67 11 97 00 |:;..2.=...n'g...|
00000100 77 81 94 b3 d0 e3 55 de 17 35 49 76 bc 72 23 83 |w.....U..5Iv.r#.|
00000110 c0 7e ee 9f 95 a0 52 08 cc 04 28 be 03 74 be 83 |.~....R...(..t..|
00000120 29 11 f6 54 32 d8 06 92 68 30 69 94 53 75 2f b0 |)..T2...h0i.Su/.|
00000130 56 aa 80 e1 7b 3c 2a 2c ca 87 42 40 36 15 01 81 |V...{<*,..B@6...|
00000140 0c 10 04 61 f8 90 08 42 38 41 10 d5 01 e6 c4 aa |...a...B8A......|
00000150 ac 7c 9f db 07 22 38 fc 48 a0 65 50 2a 87 c8 db |.|..."8.H.eP*...|
00000160 fe 6f 7d 2b 6a 3d 9d ed ec 38 1a 84 91 fa a1 25 |.o}+j=...8.....%|
00000170 b1 e0 90 08 02 30 2a 95 2a d1 00 79 3a 20 88 e3 |.....0*.*..y: ..|
00000180 d4 ed fe 71 38 96 ae 07 6a f6 f1 43 0d 48 a9 56 |...q8...j..C.H.V|
00000190 2c 2c 0c 09 52 97 89 6a ea b2 f5 6c a5 4e dd 5f |,,..R..j...l.N._|
000001a0 ed ed 6d bd b5 04 47 57 41 98 32 70 8c 03 00 e7 |..m...GWA.2p....|
000001b0 c1 a4 48 3f 6d af b2 0c 94 4b c9 00 30 21 00 fe |..H?m....K..0!..|
000001c0 ff ff 83 fe ff ff 02 00 00 00 00 f8 0a 0b 00 fe |................|
000001d0 ff ff 05 fe ff ff 02 f8 0a 0b 00 90 7b 00 00 00 |............{...|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200


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

unlzma: Decoder error
unlzma: Decoder error
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in testdisk did not have a "BackupBS" option to restore boot sector using backup.
I used the windows 7 recovery disk , used bootrec.exe /fixboot and says unrecognised file system maybe it is corrupted.
Note please that yesterday i used fdisk on ubuntu and showed that sda1 was not ntfs but something different (don 't remember exactly something like hidden ntfs) and used the utility to change it

Pls any suggestions ?

OrangeCrate
December 15th, 2011, 01:45 PM
Frankly, I'd just start over, by reinstalling Windows 7, and then following these instructions, to dual boot:

http://ubuntuguide.org/wiki/Ubuntu:Oneiric#Dual-Booting_Windows_and_Ubuntu

or look here, for additional tips:

https://help.ubuntu.com/community/WindowsDualBoot

Edit:

If you don't, you might be able to fix it, but, you'll probably end up with an install held together by duct tape, and bailing wire.

Mark Phelps
December 15th, 2011, 03:08 PM
I used the windows 7 recovery disk , used bootrec.exe /fixboot and says unrecognised file system maybe it is corrupted.

The Windows boot repair is notoriously unreliable, unfortunately.

Try booting from the recovery disk and running Startup Repair three times -- that's right, three times.

IF that doesn't work, you might then be able to repair it using Boot-Repair:

https://help.ubuntu.com/community/Boot-Repair

oldfred
December 15th, 2011, 03:21 PM
I think Windows fixBoot & chkdsk (both required) do not work until grub is removed, as it has to see it at least as NTFS.

Testdisk also has a create new boot sector [Rebuild BS] that is NTFS. That by itself does not fully fix it as it is not bootable, but a working NTFS partition. Then the Windows repairs should work. See screen shots in last post for testdisk screens.

giorkosman
December 15th, 2011, 03:21 PM
Thanks everyone for your replies
I managed to solve the problem by changing the active partition to the partition windows is installed(sda 2) instead of sda1 and then running bootrec.exe then reinstalling Gru and then updading gru to include windows

The important step was to change active partition :
In recovery mode select command promt .
disk part
list volume
list partition
select partition
active (to make it active)
exit

then continue with the rest of the standard procedures

sda1 partition is ruined and is not used but its ok i can actually breathe now