PDA

View Full Version : [ubuntu] dual boot not working after update 11.04 -> 11.10



swimon
December 4th, 2011, 05:34 PM
Hi,

my windows won't boot anymore after I upgraded my ubuntu from 11.04 to 11.10.

I wonder if you guys can figure out what's going on. Thanks!



Here's a Bootscript log:

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 (,msdos7)/boot/grub 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 587521992 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: Extended Partition
Boot sector type: -
Boot sector info:

sda5: __________________________________________________ ________________________

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

sda6: __________________________________________________ ________________________

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

sda7: __________________________________________________ ________________________

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

============================ 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 Sector End Sector # of Sectors Id System

/dev/sda1 * 2,048 206,847 204,800 7 NTFS / exFAT / HPFS
/dev/sda2 206,848 32,974,847 32,768,000 7 NTFS / exFAT / HPFS
/dev/sda3 32,978,942 625,141,759 592,162,818 5 Extended
/dev/sda5 618,870,784 625,141,759 6,270,976 82 Linux swap / Solaris
/dev/sda6 32,978,944 586,059,775 553,080,832 83 Linux
/dev/sda7 586,061,824 618,860,543 32,798,720 83 Linux


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/sda1 A6F88FC5F88F926B ntfs System Reserved
/dev/sda2 2AF8CB2DF8CAF5DB ntfs Windows
/dev/sda5 5954d8d3-d087-4dad-9b0a-406dee1f87a6 swap
/dev/sda6 3cd9bd66-b8bb-49d7-be7d-3d1bd951117e ext3 Home
/dev/sda7 855171df-6183-4704-9859-92fb5932d328 ext4 Ubuntu

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

Device Mount_Point Type Options

/dev/sda1 /media/System Reserved fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_ permissions)
/dev/sda6 /home ext3 (rw,user_xattr,commit=0)
/dev/sda7 / ext4 (rw,errors=remount-ro,commit=0)


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

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

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

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

insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root 855171df-6183-4704-9859-92fb5932d328
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root 855171df-6183-4704-9859-92fb5932d328
set locale_dir=($root)/boot/grub/locale
set lang=nl_BE
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, met Linux 3.0.0-13-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,msdos7)'
search --no-floppy --fs-uuid --set=root 855171df-6183-4704-9859-92fb5932d328
linux /boot/vmlinuz-3.0.0-13-generic root=UUID=855171df-6183-4704-9859-92fb5932d328 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-13-generic
}
menuentry 'Ubuntu, met Linux 3.0.0-13-generic (herstelmodus)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root 855171df-6183-4704-9859-92fb5932d328
echo 'Laden van Linux 3.0.0-13-generic...'
linux /boot/vmlinuz-3.0.0-13-generic root=UUID=855171df-6183-4704-9859-92fb5932d328 ro recovery nomodeset
echo 'Laden van initiŽle ramdisk...'
initrd /boot/initrd.img-3.0.0-13-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, met 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,msdos7)'
search --no-floppy --fs-uuid --set=root 855171df-6183-4704-9859-92fb5932d328
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=855171df-6183-4704-9859-92fb5932d328 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-12-generic
}
menuentry 'Ubuntu, met Linux 3.0.0-12-generic (herstelmodus)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root 855171df-6183-4704-9859-92fb5932d328
echo 'Laden van Linux 3.0.0-12-generic...'
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=855171df-6183-4704-9859-92fb5932d328 ro recovery nomodeset
echo 'Laden van initiŽle ramdisk...'
initrd /boot/initrd.img-3.0.0-12-generic
}
menuentry 'Ubuntu, met Linux 2.6.38-11-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,msdos7)'
search --no-floppy --fs-uuid --set=root 855171df-6183-4704-9859-92fb5932d328
linux /boot/vmlinuz-2.6.38-11-generic root=UUID=855171df-6183-4704-9859-92fb5932d328 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-11-generic
}
menuentry 'Ubuntu, met Linux 2.6.38-11-generic (herstelmodus)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root 855171df-6183-4704-9859-92fb5932d328
echo 'Laden van Linux 2.6.38-11-generic...'
linux /boot/vmlinuz-2.6.38-11-generic root=UUID=855171df-6183-4704-9859-92fb5932d328 ro recovery nomodeset
echo 'Laden van initiŽle ramdisk...'
initrd /boot/initrd.img-2.6.38-11-generic
}
}
### END /etc/grub.d/10_linux ###

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

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root 855171df-6183-4704-9859-92fb5932d328
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root 855171df-6183-4704-9859-92fb5932d328
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 A6F88FC5F88F926B
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

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

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid -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/sda7 / ext4 errors=remount-ro 0 1
/dev/sda6 /home ext3 defaults,user_xattr 0 2
/dev/sda5 none swap sw 0 0
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

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

=============================== 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
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in

swimon
December 7th, 2011, 03:52 PM
Anyone?

I'm afraid to change anything myself.

Grtz

BC59
December 7th, 2011, 04:14 PM
Try to use Boot-Repair, it's the easier solution:

http://www.webupd8.org/2011/06/boot-repair-fix-ubuntu-boot-issues.html

If not the hard solution is here:

http://www.howtogeek.com/howto/33433/restore-the-windows-boot-loader-after-an-ubuntu-update/

swimon
December 8th, 2011, 04:32 PM
Hey thanks alot,

didn't know such a program existed.

I left my LiveCD at my dads home though, can't test it until then.

Grtz!

swimon
December 10th, 2011, 06:06 PM
Well, boot repair didn't work :(

Here's the new bootscript log:

http://paste.ubuntu.com/766063/

Should I try the windows repair CD method now? Or is there something else I can do?

Mark Phelps
December 13th, 2011, 02:26 PM
Should I try the windows repair CD method now? Or is there something else I can do?

If you have a Vista/Win7 repair CD, then boot from it and run Startup Repair at least three times. Don't be discouraged if it doesn't work at first -- it takes several passes to completely repair the booting process.

swimon
December 13th, 2011, 03:59 PM
Will/could this affect my ubuntu boot process? Cause im not willing to lose my ubuntu over W7...

Mark Phelps
December 13th, 2011, 04:22 PM
Will/could this affect my ubuntu boot process? Cause im not willing to lose my ubuntu over W7...

Yes ... but if you want dual boot working again, you have to do this.

Once you get dual boot working, it's a simple process to restore GRUB to get back to booting Ubuntu.

swimon
December 13th, 2011, 07:37 PM
So after +/- 3 times windows repair

I do LiveCD -> bootrepair

amiright? :D

offtopic: in the future, isn't there a way to update ubuntu so the dual boot isn't all messed up?

swimon
January 6th, 2012, 06:21 PM
Is the Recovery CD mentioned above not the same as the Installation CD for Windows 7? Because that CD also offers a repair option (altough it doesn't seem to work for some reason)

Or is it a different CD all together? If so, where can I find one?

Grtz!

edit: Just found one by chance on google, let's hope it's not a fake :)

darkod
January 6th, 2012, 06:28 PM
Your problem is that you have grub2 installed on /dev/sda1, the partition where win7 boot files are.


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 587521992 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/BCDYou should be able to remove it by booting ubuntu and using testdisk (need to install it first) and this procedure:
http://sourceforge.net/apps/mediawiki/bootinfoscript/index.php?title=Boot_Problems:Boot_Sector

After that it should be fine.

swimon
January 7th, 2012, 03:38 PM
Your problem is that you have grub2 installed on /dev/sda1, the partition where win7 boot files are.


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 587521992 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/BCDYou should be able to remove it by booting ubuntu and using testdisk (need to install it first) and this procedure:
http://sourceforge.net/apps/mediawiki/bootinfoscript/index.php?title=Boot_Problems:Boot_Sector

After that it should be fine.

Thanks, but do you mean boot Ubuntu LiveCD or just regular Ubuntu?

Grtz

darkod
January 7th, 2012, 04:00 PM
Thanks, but do you mean boot Ubuntu LiveCD or just regular Ubuntu?

Grtz

Doesn't matter. Since you can boot your ubuntu, you can do it from there.

If the computer is completely unbootable, testdisk can be installed and run from Live CD in Try Ubuntu mode.

swimon
January 7th, 2012, 04:39 PM
Doesn't matter. Since you can boot your ubuntu, you can do it from there.

If the computer is completely unbootable, testdisk can be installed and run from Live CD in Try Ubuntu mode.

Okay thanks, I'll try it right away.

Grtz

Edit: The tutorial says I need to run it in LiveCD mode, so I'll give it a go when my docking station is connected.

Grtz

swimon
January 14th, 2012, 02:04 PM
Your problem is that you have grub2 installed on /dev/sda1, the partition where win7 boot files are.


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 587521992 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/BCDYou should be able to remove it by booting ubuntu and using testdisk (need to install it first) and this procedure:
http://sourceforge.net/apps/mediawiki/bootinfoscript/index.php?title=Boot_Problems:Boot_Sector

After that it should be fine.

I get this output on the sixth screen of the testdisk program:


http://www.cgsecurity.org

Disk /dev/sda - 320 GB / 298 GiB - CHS 38913 255 63
Partition Start End Size in sectors
2 P HPFS - NTFS 12 223 20 2052 150 18 32768000 [Windows]

Boot sector
Warning: Incorrect number of heads/cylinder 240 (NTFS) != 255 (HD)
Status: OK

Backup boot sector
Warning: Incorrect number of heads/cylinder 240 (NTFS) != 255 (HD)
Status: OK

Sectors are identical.

A valid NTFS Boot sector must be present in order to access
any data; even if the partition is not bootable.


[ Quit ] [ List ] [Rebuild BS] [Repair MFT] [ Dump ]


The website you suggested to use 'fixboot' on a windows repair CD, which is what I'll try next.

Grtz

swimon
January 16th, 2012, 10:02 PM
Well, it didn't work.

Tried windows repair atleats 6 times. Most of the time I got the message that there wasn't any problem detected. One time I got a message that some error was found and fixed, but I still can't boot into windows.

I found that there is a terminal I can use within this windows repair cd. Does someone know how to manually repair? I've found that there is a command called 'bootsector.exe' which I can run, but I'm a little reluctant to try it out, 'cause I don't want to mess it up.

Grtz

darkod
January 16th, 2012, 11:23 PM
This:
http://thecustomizewindows.com/2010/12/repair-the-boot-in-windows-7-after-installing-a-second-operating-system/

says you need to try entering the Command Prompt, and there execute:

C: (Enter)
bootsect/ nt60 C:

My dilemma is that the boot files are on the hidden System Reserved partition, not on the C: partition. But I hope win7 is smart enough to fix it with its own tool. The system reserved partition doesn't have a letter assigned anyway, so you can't replace the C: in that command.
Give that a shot.

swimon
June 14th, 2012, 06:35 PM
This:
http://thecustomizewindows.com/2010/12/repair-the-boot-in-windows-7-after-installing-a-second-operating-system/

says you need to try entering the Command Prompt, and there execute:

C: (Enter)
bootsect/ nt60 C:

My dilemma is that the boot files are on the hidden System Reserved partition, not on the C: partition. But I hope win7 is smart enough to fix it with its own tool. The system reserved partition doesn't have a letter assigned anyway, so you can't replace the C: in that command.
Give that a shot.

Well, I finally decided it was time to try and fix my windows partition again after failing countless times last time.

But this solution worked, seems like I gave up too soon :)

Thanks darkrod.

Grtz