PDA

View Full Version : [ubuntu] Help!! Windows 7 won't boot..



rajiv1096
June 27th, 2010, 11:10 PM
I recently installed ubuntu 10.04 and windows 7 now will not boot..I downloaded the repair disk for it online but i dont have any cd's and i need to put it on usb..how do i do this?

darkod
June 27th, 2010, 11:13 PM
First lets see more details. Follow the boot info script link in my signature and post the content of the results file as explained.

rajiv1096
June 27th, 2010, 11:48 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 #5 for /boot/grub.

sda1: __________________________________________________ _______________________

File system:
Boot sector type: -
Boot sector info:
Mounting failed:
mount: unknown filesystem type ''

sda2: __________________________________________________ _______________________

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

sda3: __________________________________________________ _______________________

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/dirs: /bootmgr /boot/BCD /Windows/System32/winload.exe

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

sda6: __________________________________________________ _______________________

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

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 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 End Size Id System

/dev/sda1 63 2,047 1,985 42 SFS
/dev/sda2 * 2,048 409,599 407,552 42 SFS
/dev/sda3 409,600 868,468,735 868,059,136 42 SFS
/dev/sda4 868,470,782 976,773,119 108,302,338 5 Extended
/dev/sda5 868,470,784 972,253,183 103,782,400 83 Linux
/dev/sda6 972,255,232 976,773,119 4,517,888 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/sda2 744A2C2A4A2BE816 ntfs SYSTEM
/dev/sda3 78BADA49BADA0412 ntfs
/dev/sda4: PTTYPE="dos"
/dev/sda5 45437080-8118-49bb-add6-89a5b90343e9 ext4
/dev/sda6 cd7bdb57-6bd7-46ca-b3b0-71259b588f5a swap
/dev/sda: PTTYPE="dos"
error: /dev/sdb: No medium found

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

Device Mount_Point Type Options

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


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

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

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

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

function recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 45437080-8118-49bb-add6-89a5b90343e9
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 45437080-8118-49bb-add6-89a5b90343e9
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 45437080-8118-49bb-add6-89a5b90343e9
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=45437080-8118-49bb-add6-89a5b90343e9 ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 45437080-8118-49bb-add6-89a5b90343e9
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=45437080-8118-49bb-add6-89a5b90343e9 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 45437080-8118-49bb-add6-89a5b90343e9
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 45437080-8118-49bb-add6-89a5b90343e9
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/sda2)" {
insmod ntfs
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 744a2c2a4a2be816
chainloader +1
}
menuentry "Windows Vista (loader) (on /dev/sda3)" {
insmod ntfs
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 78bada49bada0412
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

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

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

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda5 during installation
UUID=45437080-8118-49bb-add6-89a5b90343e9 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=cd7bdb57-6bd7-46ca-b3b0-71259b588f5a none swap sw 0 0

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


479.1GB: boot/grub/core.img
479.1GB: boot/grub/grub.cfg
479.1GB: boot/initrd.img-2.6.32-21-generic
479.1GB: boot/vmlinuz-2.6.32-21-generic
479.1GB: initrd.img
479.1GB: vmlinuz
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown BootLoader on sda4

00000000 4c 28 91 4a 65 a7 dc 98 f5 1a 7c 3a 0c 31 a3 e7 |L(.Je.....|:.1..|
00000010 52 d3 00 09 78 5a b9 70 de b7 7f fe 10 a8 ae 5d |R...xZ.p.......]|
00000020 6f ef 44 a9 a6 75 0c 24 57 7c 8e e9 8b dc 43 94 |o.D..u.$W|....C.|
00000030 5a 26 84 f2 73 dd b9 c1 a5 94 4a 48 86 34 c2 16 |Z&..s.....JH.4..|
00000040 dc 2a e5 b4 5a 82 a5 4d 10 2a 52 61 03 21 96 74 |.*..Z..M.*Ra.!.t|
00000050 bf 9f 85 bc e9 4c b6 dc d5 6a 4f 88 02 09 1d 35 |.....L...jO....5|
00000060 be 37 89 d3 a1 2b cc 74 3d 82 e7 02 8f 5d b9 e7 |.7...+.t=....]..|
00000070 9e 98 19 c6 07 0e cc 28 8e 9e b9 23 aa 82 d9 18 |.......(...#....|
00000080 28 75 54 63 99 d8 9f fa 04 e8 6a 2d 5b ee d4 53 |(uTc......j-[..S|
00000090 1d 77 64 75 e2 7b 20 fd e6 89 9f 73 9e 04 18 22 |.wdu.{ ....s..."|
000000a0 43 4a 69 c3 63 e3 3d 3c 7d b4 fd 41 7c 38 01 15 |CJi.c.=<}..A|8..|
000000b0 5b 9a 8b 21 a2 fb d0 c2 08 95 28 e1 f9 ee fa b3 |[..!......(.....|
000000c0 29 11 e5 56 21 ab c6 9d ce 52 c1 a1 1b 97 62 8a |)..V!....R....b.|
000000d0 74 5d a4 2f 64 e9 fc d5 11 17 6e c7 e1 9f a1 25 |t]./d.....n....%|
000000e0 ff 2b e9 7b ec 94 58 77 15 16 d5 a8 53 6f 1a 15 |.+.{..Xw....So..|
000000f0 8d 27 d8 ff 47 a3 c2 92 1b 77 97 88 6f 75 2e dd |.'..G....w..ou..|
00000100 e3 f9 96 8d ec fe 1a 30 72 69 55 b6 42 1f 40 13 |.......0riU.B.@.|
00000110 c4 52 45 f2 67 8f 46 60 4e 12 ba 7f cb d6 bd 3d |.RE.g.F`N......=|
00000120 f6 d9 0b f5 3d 48 27 26 03 a5 6a 30 0e 07 00 ea |....=H'&..j0....|
00000130 38 3f 07 66 ee 0c a3 99 c7 47 01 11 0f 1e 6f a1 |8?.f.....G....o.|
00000140 54 2e 64 0d ff cc 9e bb ea 2d 2b 74 d2 84 6e f3 |T.d......-+t..n.|
00000150 08 4e 41 b6 f6 77 fd a1 a6 79 87 9e 5c ab 62 68 |.NA..w...y..\.bh|
00000160 20 55 c6 33 54 f1 a4 4d 45 5d bb df ae f9 b2 93 | U.3T..ME]......|
00000170 58 e3 16 4c a2 31 75 d2 0a 05 6c 83 d0 dd bc fa |X..L.1u...l.....|
00000180 78 af 51 cc 5b 1a 55 3d 3a 9e 3d d4 c8 c5 ec 29 |x.Q.[.U=:.=....)|
00000190 46 5b a1 81 0a 97 26 93 15 4d d3 1e 91 1b 9b ab |F[....&..M......|
000001a0 82 9d 24 39 33 9e d1 ea e0 45 cf b2 37 47 37 13 |..$93....E..7G7.|
000001b0 f0 16 04 b9 57 11 32 44 e4 b1 da d6 be be 00 fe |....W.2D........|
000001c0 ff ff 83 fe ff ff 02 00 00 00 00 98 2f 06 00 fe |............/...|
000001d0 ff ff 05 fe ff ff 6a 9a 2f 06 98 f5 44 00 00 00 |......j./...D...|
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


=======Devices which don't seem to have a corresponding hard drive==============

sdb

darkod
June 28th, 2010, 12:05 AM
/dev/sda1 63 2,047 1,985 42 SFS
/dev/sda2 * 2,048 409,599 407,552 42 SFS
/dev/sda3 409,600 868,468,735 868,059,136 42 SFS

I think it's because your windows partitions are SFS type. I think this type means the disk is set as Dynamic, so you can change partition sizes without formatting. But I'm not sure if you can dual boot successfully with a Dynamic disk.

You can get windows booting by installing generic mbr on the hdd, it should work and you can do it from ubuntu or ubuntu cd live mode. In terminal execute:

sudo apt-get install lilo
sudo lilo -M /dev/sda mbr

After the first command there will be some warnings, ignore them because you will not even use lilo as bootloader. Just run the second command when the prompt appears.

That should make the computer boot win7 directly. Ubuntu will still be there but you won't be able to boot it for the moment.

I am not sure if you can find a solution to dual boot with a Dynamic disk. I suggest to use the above commands and get win7 booting again, go into Disk Management to confirm if the disk is really set to Dynamic, and then search online whether you can have dual boot at all.

rajiv1096
June 28th, 2010, 12:18 AM
It lets me boot to Windows..but it says that i need to repair windows because something is stopping it from booting. To repair it, I need the Windows Repair disks. I currently dont have CD's, so i was wondering if I could download the Windows Repair disk, and write to the USB using UBUNTU 10.04 on my other machine.

wilee-nilee
June 28th, 2010, 12:37 AM
It lets me boot to Windows..but it says that i need to repair windows because something is stopping it from booting. To repair it, I need the Windows Repair disks. I currently dont have CD's, so i was wondering if I could download the Windows Repair disk, and write to the USB using UBUNTU 10.04 on my other machine.

Just out of curiosity what repair ISO did you download?

I think your going to have to get some cd's, and if the repair is the full install ISO it is about at the least 2.3 gigs.

rajiv1096
June 28th, 2010, 12:39 AM
Its not a full Windows 7 install..its just the Repair disk, and its about 200 mb. Here's the link I used: http://neosmart.net/blog/2009/windows-7-system-repair-discs/

darkod
June 28th, 2010, 12:41 AM
You should be able to use unetbootin and create bootable usb stick with that ISO.

Note that you might need to reinstall grub2 back to the MBR after the windows repair is done.

rajiv1096
June 28th, 2010, 12:50 AM
That does not work, when i boot from it, it just stays at the UNetBootin screen and doesnt do anything. Is there any other way?

darkod
June 28th, 2010, 12:57 AM
That does not work, when i boot from it, it just stays at the UNetBootin screen and doesnt do anything. Is there any other way?

Not that I know of. This is really a windows question. How to make usb stick from the ISO.
You can also try the Universal USB Installer, that's recommended for creating usb stick of ubuntu. The word universal should mean you can use it for windows ISO too.

rajiv1096
June 28th, 2010, 01:11 AM
The Universal Usb Creator seems to be for windows only.If only this process wasn't so hard.. :/

rajiv1096
June 28th, 2010, 01:18 AM
How can i reinstall GRUB 2 so i can use ubuntu 10.04 for the time being.

darkod
June 28th, 2010, 01:23 AM
How can i reinstall GRUB 2 so i can use ubuntu 10.04 for the time being.

From live mode with the 10.04 cd:

sudo mount /dev/sda5 /mnt
sudo grub-install --root-directory=/mnt/ /dev/sda

rajiv1096
June 28th, 2010, 02:11 AM
Thanks, now i can boot back in to Ubuntu. But another problem I have is that my audio is not working..is there anyway to fix this problem? :confused:

Mark Phelps
June 28th, 2010, 03:05 PM
Please don't take this thread off into an entirely different path ...

If you're able to boot now, start a new thread dealing with your new problem.