Thread: Can't boot Windows, trying to repair from Ubuntu
here happened:
- don't have enough space on windows partition
- delete stock "recovery" partition make space
- enlarge win partition
- software messes windows boot
- go under ubuntu fix problem
- try fix win7 mbr ms-sys
- upgrade natty @ same time
- flush old grub, in process, put new one
- grub-mkconfig doesn't detect windows
- make windows booting entry
- try booting windows
- receive error "invalid partition table"
results of bis:
before today, both dual-boot options worked. hopefully, should easy 1 folks more experienced me.code:boot info script 0.60 17 may 2011 ============================= boot info summary: =============================== => grub2 (v1.99) installed in mbr of /dev/sda , looks @ sector 1 of same hard drive core.img. core.img @ location , looks (,msdos5)/boot/grub on drive. sda1: __________________________________________________________________________ file system: boot sector type: unknown 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 boot parameter block. operating system: boot files: sda3: __________________________________________________________________________ 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.04 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: 120.0 gb, 120034123776 bytes 255 heads, 63 sectors/track, 14593 cylinders, total 234441648 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 * 16,128 127,700,684 127,684,557 7 ntfs / exfat / hpfs /dev/sda2 127,713,280 189,162,421 61,449,142 7 ntfs / exfat / hpfs /dev/sda3 189,163,518 217,165,823 28,002,306 f w95 extended (lba) /dev/sda5 189,163,520 215,891,967 26,728,448 83 linux /dev/sda6 215,894,016 217,165,823 1,271,808 82 linux swap / solaris "blkid" output: ________________________________________________________________ device uuid type label /dev/sda2 78684c52684c1174 ntfs donald /dev/sda5 7a6bea1f-5a24-406b-a42c-f978a66d47db ext4 /dev/sda6 a4736c60-bbf7-41a1-b5bc-61d915e41b9c swap ================================ mount points: ================================= device mount_point type options /dev/sda5 / ext4 (rw,errors=remount-ro,commit=0) =========================== sda5/boot/grub/grub.cfg: =========================== -------------------------------------------------------------------------------- # # not edit file # # automatically generated grub-mkconfig using templates # /etc/grub.d , settings /etc/default/grub # ### begin /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; set have_grubenv=true load_env fi set default="0" if [ "${prev_saved_entry}" ]; 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}" ]; saved_entry="${chosen}" save_env saved_entry fi } function recordfail { set recordfail=1 if [ -n "${have_grubenv}" ]; if [ -z "${boot_once}" ]; 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='(/dev/sda,msdos5)' search --no-floppy --fs-uuid --set=root 7a6bea1f-5a24-406b-a42c-f978a66d47db if loadfont /usr/share/grub/unicode.pf2 ; set gfxmode=auto load_video insmod gfxterm fi terminal_output gfxterm insmod part_msdos insmod ext2 set root='(/dev/sda,msdos5)' search --no-floppy --fs-uuid --set=root 7a6bea1f-5a24-406b-a42c-f978a66d47db set locale_dir=($root)/boot/grub/locale set lang=en_us insmod gettext if [ "${recordfail}" = 1 ]; 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; clear fi ### end /etc/grub.d/05_debian_theme ### ### begin /etc/grub.d/10_linux ### if [ ${recordfail} != 1 ]; if [ -e ${prefix}/gfxblacklist.txt ]; if hwmatch ${prefix}/gfxblacklist.txt 3; if [ ${match} = 0 ]; 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" ]; load_video; fi menuentry 'ubuntu, linux 2.6.38-8-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail set gfxpayload=$linux_gfx_mode insmod part_msdos insmod ext2 set root='(/dev/sda,msdos5)' search --no-floppy --fs-uuid --set=root 7a6bea1f-5a24-406b-a42c-f978a66d47db linux /boot/vmlinuz-2.6.38-8-generic root=uuid=7a6bea1f-5a24-406b-a42c-f978a66d47db ro vga=792 splash quiet splash vt.handoff=7 initrd /boot/initrd.img-2.6.38-8-generic } menuentry 'ubuntu, linux 2.6.38-8-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail set gfxpayload=$linux_gfx_mode insmod part_msdos insmod ext2 set root='(/dev/sda,msdos5)' search --no-floppy --fs-uuid --set=root 7a6bea1f-5a24-406b-a42c-f978a66d47db echo 'loading linux 2.6.38-8-generic ...' linux /boot/vmlinuz-2.6.38-8-generic root=uuid=7a6bea1f-5a24-406b-a42c-f978a66d47db ro single vga=792 splash echo 'loading initial ramdisk ...' initrd /boot/initrd.img-2.6.38-8-generic } submenu "previous linux versions" { menuentry 'ubuntu, linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail set gfxpayload=$linux_gfx_mode insmod part_msdos insmod ext2 set root='(/dev/sda,msdos5)' search --no-floppy --fs-uuid --set=root 7a6bea1f-5a24-406b-a42c-f978a66d47db linux /boot/vmlinuz-2.6.35-22-generic root=uuid=7a6bea1f-5a24-406b-a42c-f978a66d47db ro vga=792 splash quiet splash vt.handoff=7 initrd /boot/initrd.img-2.6.35-22-generic } menuentry 'ubuntu, linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail set gfxpayload=$linux_gfx_mode insmod part_msdos insmod ext2 set root='(/dev/sda,msdos5)' search --no-floppy --fs-uuid --set=root 7a6bea1f-5a24-406b-a42c-f978a66d47db echo 'loading linux 2.6.35-22-generic ...' linux /boot/vmlinuz-2.6.35-22-generic root=uuid=7a6bea1f-5a24-406b-a42c-f978a66d47db ro single vga=792 splash echo 'loading initial ramdisk ...' initrd /boot/initrd.img-2.6.35-22-generic } menuentry 'ubuntu, linux 2.6.32-24-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail set gfxpayload=$linux_gfx_mode insmod part_msdos insmod ext2 set root='(/dev/sda,msdos5)' search --no-floppy --fs-uuid --set=root 7a6bea1f-5a24-406b-a42c-f978a66d47db linux /boot/vmlinuz-2.6.32-24-generic root=uuid=7a6bea1f-5a24-406b-a42c-f978a66d47db ro vga=792 splash quiet splash vt.handoff=7 initrd /boot/initrd.img-2.6.32-24-generic } menuentry 'ubuntu, linux 2.6.32-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail set gfxpayload=$linux_gfx_mode insmod part_msdos insmod ext2 set root='(/dev/sda,msdos5)' search --no-floppy --fs-uuid --set=root 7a6bea1f-5a24-406b-a42c-f978a66d47db echo 'loading linux 2.6.32-24-generic ...' linux /boot/vmlinuz-2.6.32-24-generic root=uuid=7a6bea1f-5a24-406b-a42c-f978a66d47db ro single vga=792 splash echo 'loading initial ramdisk ...' initrd /boot/initrd.img-2.6.32-24-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='(/dev/sda,msdos5)' search --no-floppy --fs-uuid --set=root 7a6bea1f-5a24-406b-a42c-f978a66d47db linux16 /boot/memtest86+.bin } menuentry "memory test (memtest86+, serial console 115200)" { insmod part_msdos insmod ext2 set root='(/dev/sda,msdos5)' search --no-floppy --fs-uuid --set=root 7a6bea1f-5a24-406b-a42c-f978a66d47db linux16 /boot/memtest86+.bin console=ttys0,115200n8 } ### end /etc/grub.d/20_memtest86+ ### ### begin /etc/grub.d/30_os-prober ### ### end /etc/grub.d/30_os-prober ### ### begin /etc/grub.d/40_custom ### # file provides easy way add custom menu entries. type # menu entries want add after comment. careful not change # 'exec tail' line above. ### end /etc/grub.d/40_custom ### ### begin /etc/grub.d/41_custom ### if [ -f $prefix/custom.cfg ]; source $prefix/custom.cfg; fi ### end /etc/grub.d/41_custom ### -------------------------------------------------------------------------------- =============================== sda5/etc/fstab: ================================ -------------------------------------------------------------------------------- # /etc/fstab: static file system information. # # use 'blkid -o value -s uuid' print universally unique identifier # device; may used uuid= more robust way name # devices works if disks added , removed. see fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc nodev,noexec,nosuid 0 0 # / on /dev/sda7 during installation uuid=7a6bea1f-5a24-406b-a42c-f978a66d47db / ext4 errors=remount-ro 0 1 # swap on /dev/sda8 during installation uuid=a4736c60-bbf7-41a1-b5bc-61d915e41b9c none swap sw 0 0 -------------------------------------------------------------------------------- =================== sda5: location of files loaded grub: ==================== gib - gb file fragment(s) 92.353298187 = 99.163598848 boot/grub/core.img 1 94.732089996 = 101.717807104 boot/grub/grub.cfg 1 95.661132812 = 102.715359232 boot/initrd.img-2.6.32-24-generic 2 99.336074829 = 106.661298176 boot/initrd.img-2.6.35-22-generic 2 95.622070312 = 102.673416192 boot/initrd.img-2.6.38-8-generic 2 94.150630951 = 101.093470208 boot/vmlinuz-2.6.32-24-generic 1 95.710212708 = 102.768058368 boot/vmlinuz-2.6.35-22-generic 1 99.376281738 = 106.704470016 boot/vmlinuz-2.6.38-8-generic 1 95.622070312 = 102.673416192 initrd.img 2 99.336074829 = 106.661298176 initrd.img.old 2 99.376281738 = 106.704470016 vmlinuz 1 95.710212708 = 102.768058368 vmlinuz.old 1 ======================== unknown mbrs/boot sectors/etc: ======================== unknown bootloader on sda1 00000000 33 c0 8e d0 bc 00 7c 8e c0 8e d8 00 7c bf 00 |3.....|......|..| 00000010 06 b9 00 02 fc f3 a4 50 68 1c 06 cb fb b9 04 00 |.......ph.......| 00000020 bd 07 80 7e 00 00 7c 0b 0f 85 0e 01 83 c5 10 |....~..|........| 00000030 e2 f1 cd 18 88 56 00 55 c6 46 11 05 c6 46 10 00 |.....v.u.f...f..| 00000040 b4 41 bb aa 55 cd 13 5d 72 0f 81 fb 55 aa 75 09 |.a..u..]r...u.u.| 00000050 f7 c1 01 00 74 03 fe 46 10 66 60 80 7e 10 00 74 |....t..f.f`.~..t| 00000060 26 66 68 00 00 00 00 66 ff 76 08 68 00 00 68 00 |&fh....f.v.h..h.| 00000070 7c 68 01 00 68 10 00 b4 42 8a 56 00 8b f4 cd 13 ||h..h...b.v.....| 00000080 9f 83 c4 10 9e eb 14 b8 01 02 bb 00 7c 8a 56 00 |............|.v.| 00000090 8a 76 01 8a 4e 02 8a 6e 03 cd 13 66 61 73 1c fe |.v..n..n...fas..| 000000a0 4e 11 75 0c 80 7e 00 80 0f 84 8a 00 b2 80 eb 84 |n.u..~..........| 000000b0 55 32 e4 8a 56 00 cd 13 5d eb 9e 81 3e fe 7d 55 |u2..v...]...>.}u| 000000c0 aa 75 6e ff 76 00 e8 8d 00 75 17 fa b0 d1 e6 64 |.un.v....u.....d| 000000d0 e8 83 00 b0 df e6 60 e8 7c 00 b0 ff e6 64 e8 75 |......`.|....d.u| 000000e0 00 fb b8 00 bb cd 1a 66 23 c0 75 3b 66 81 fb 54 |.......f#.u;f..t| 000000f0 43 50 41 75 32 81 f9 02 01 72 2c 66 68 07 bb 00 |cpau2....r,fh...| 00000100 00 66 68 00 02 00 00 66 68 08 00 00 00 66 53 66 |.fh....fh....fsf| 00000110 53 66 55 66 68 00 00 00 00 66 68 00 7c 00 00 66 |sfufh....fh.|..f| 00000120 61 68 00 00 07 cd 1a 5a 32 f6 ea 00 7c 00 00 cd |ah.....z2...|...| 00000130 18 a0 b7 07 eb 08 a0 b6 07 eb 03 a0 b5 07 32 e4 |..............2.| 00000140 05 00 07 8b f0 ac 3c 00 74 09 bb 07 00 b4 0e cd |......<.t.......| 00000150 10 eb f2 f4 eb fd 2b c9 e4 64 eb 00 24 02 e0 f8 |......+..d..$...| 00000160 24 02 c3 49 6e 76 61 6c 69 64 20 70 61 72 74 69 |$..invalid parti| 00000170 74 69 6f 6e 20 74 61 62 6c 65 00 45 72 72 6f 72 |tion table.error| 00000180 20 6c 6f 61 64 69 6e 67 20 6f 70 65 72 61 74 69 | loading operati| 00000190 6e 67 20 73 79 73 74 65 6d 00 4d 69 73 73 69 6e |ng system.missin| 000001a0 67 20 6f 70 65 72 61 74 69 6e 67 20 73 79 73 74 |g operating syst| 000001b0 65 6d 00 00 00 63 7b 9a 73 73 69 6e 67 00 0d 0a |em...c{.ssing...| 000001c0 44 5a 51 4b 43 20 20 20 69 73 20 63 6f 6d 70 72 |dzqkc compr| 000001d0 65 73 73 65 64 00 0d 0a 50 72 65 73 73 20 43 74 |essed...press ct| 000001e0 72 6c 2b 41 6c 74 2b 44 65 6c 20 74 6f 20 72 65 |rl+alt+del re| 000001f0 73 74 61 72 74 0d 0a 00 8c a9 d6 00 00 55 aa |start.........u.| 00000200 unknown bootloader on sda3 00000000 32 28 87 80 a6 81 71 87 25 9c 20 7b 6f c7 77 7f |2(....q.%. {o.w.| 00000010 fe bd 28 ef 08 15 03 0f 95 50 61 f0 fa aa 54 |...(......pa...t| 00000020 5f 4b ff 5b 56 af bf 1a 9d b5 bc 83 55 1a db c2 |_k.[v.......u...| 00000030 98 58 60 61 d7 a7 6a b4 87 b1 47 ae aa f2 5b f3 |.x`a..j...g...[.| 00000040 b7 c7 7f 87 3e a5 63 9e 51 a6 c0 da 34 43 4b f4 |....>.c.q...4ck.| 00000050 6d ed 19 bc c2 79 e1 ff af 93 fb 19 95 1a 99 d3 |m....y..........| 00000060 83 10 63 f2 0c 16 85 c5 8e 0d 66 92 bd 30 e3 82 |..c.......f..0..| 00000070 1f cb ff fa ae 7d 52 ad ce 79 56 49 8b 38 ba 81 |.....}r..yvi.8..| 00000080 f8 d6 60 5a e3 c3 1a 3f 80 e9 20 66 db de 54 53 |..`z...?.. f..ts| 00000090 7b de e6 19 ad ef 61 12 c6 1f ea ad 71 b1 16 98 |{.....a.....q...| 000000a0 02 9a 35 a8 8a af 4f a8 f9 cb 6a 88 9e f1 c4 ed |..5...o...j.....| 000000b0 13 b8 0a 74 ef 9c f9 37 a9 7f a1 3e a5 16 8b 68 |...t...7...>...h| 000000c0 b8 14 a9 fe 46 f0 4f 77 1a dd 1a 18 26 66 c4 c6 |....f.ow....&f..| 000000d0 5e 8f 1d da bf 0c d7 96 6a af 8c 98 ea 49 60 19 |^.......j....i`.| 000000e0 11 c1 89 7d 3d 47 76 17 fd 81 e1 70 33 0a 86 07 |...}=gv....p3...| 000000f0 82 c4 d0 8a 27 ff bb 26 78 45 de 24 5e 8d 5a 96 |....'..&xe.$^.z.| 00000100 cb 64 67 28 8e 34 a9 ea e7 f9 3b b2 5a 77 21 |.dg(.4....;.z.w!| 00000110 80 28 91 34 52 29 cf 7f e5 ea 7e 3f c2 f2 ff 28 |.(.4r)....~?...(| 00000120 07 83 80 4f c2 2d 4c f0 61 26 f8 10 82 02 95 61 |...o.-l.a&.....a| 00000130 00 78 08 60 6a 7f aa fc e2 0e e3 0f 02 9b 09 e1 |.x.`j...........| 00000140 70 d0 4e 06 2f 12 06 45 f7 41 9f 7d 9e 39 1f d3 |p.n./..e.a.}.9..| 00000150 c0 46 3f 2f 57 08 46 8d a5 2b 40 bc 59 e3 82 f4 |.f?/w.f..+@.y...| 00000160 bb da ba 0b d7 1c 61 4b 35 c1 50 71 21 f0 29 c7 |......ak5.pq!.).| 00000170 ea 78 eb 87 82 05 36 a7 5c a4 e9 c7 8d c3 ce ad |.x....6.\.......| 00000180 e5 ef 3a 16 4a 17 3d 4f b9 e9 27 3c e8 79 7d 53 |..:.j.=o..'<.y}s| 00000190 a3 93 eb b4 32 fb 95 e9 f4 43 9e 1e 7c 3e 0a 7f |....2....c..|>..| 000001a0 53 33 67 c1 8e a8 3a a5 cf 42 31 89 a5 7a 44 f1 |s3g...:..b1..zd.| 000001b0 d4 e3 91 05 9e e3 a9 cd 7a 73 89 47 04 a7 00 fe |........zs.g....| 000001c0 ff ff 83 fe ff ff 02 00 00 00 00 d8 97 01 00 fe |................| 000001d0 ff ff 05 fe ff ff 02 d8 97 01 00 70 13 00 00 00 |...........p....| 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
in advance!
well how space did give windows? if have gparted livecd suggest booting , looking windows partition , seeing looks like.
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help Can't boot Windows, trying to repair from Ubuntu
Ubuntu
Comments
Post a Comment