PDA

View Full Version : [ubuntu] Dual-boot windows 7 missing



otis34
May 1st, 2012, 02:03 AM
I installed ubuntu 12.04 on my laptop and appear to have messed up my partitions. I used the partition manager to install an ext4 and swap partitions in free space and now my windows 7 partitions are showing unknown. Did I format them on accident? Is there a way to recover these partitions? Here is the output of boot info script.



Boot Info Script 0.61 [1 April 2012]


============================= 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 (,msdos3)/boot/grub on this drive.

sda1: __________________________________________________ ________________________

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

sda2: __________________________________________________ ________________________

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

sda3: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 12.04 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda4: __________________________________________________ ________________________

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

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

Drive: sda __________________________________________________ ___________________

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 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 1,105,919 1,103,872 7 NTFS / exFAT / HPFS
/dev/sda2 1,105,920 404,509,039 403,403,120 7 NTFS / exFAT / HPFS
/dev/sda3 404,510,720 480,395,263 75,884,544 83 Linux
/dev/sda4 480,395,264 488,394,751 7,999,488 82 Linux swap / Solaris


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/sda3 441f1954-06cb-4e60-b761-1df9a5fec8d7 ext4
/dev/sda4 f1a4f92b-00b1-4b3d-8334-ba28e8d8563c swap

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

Device Mount_Point Type Options

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


=========================== sda3/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,msdos3)'
search --no-floppy --fs-uuid --set=root 441f1954-06cb-4e60-b761-1df9a5fec8d7
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 441f1954-06cb-4e60-b761-1df9a5fec8d7
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 ###
function gfxmode {
set gfxpayload="$1"
if [ "$1" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
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.2.0-24-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 441f1954-06cb-4e60-b761-1df9a5fec8d7
linux /boot/vmlinuz-3.2.0-24-generic-pae root=UUID=441f1954-06cb-4e60-b761-1df9a5fec8d7 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-24-generic-pae
}
menuentry 'Ubuntu, with Linux 3.2.0-24-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 441f1954-06cb-4e60-b761-1df9a5fec8d7
echo 'Loading Linux 3.2.0-24-generic-pae ...'
linux /boot/vmlinuz-3.2.0-24-generic-pae root=UUID=441f1954-06cb-4e60-b761-1df9a5fec8d7 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-24-generic-pae
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 3.2.0-23-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 441f1954-06cb-4e60-b761-1df9a5fec8d7
linux /boot/vmlinuz-3.2.0-23-generic-pae root=UUID=441f1954-06cb-4e60-b761-1df9a5fec8d7 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-23-generic-pae
}
menuentry 'Ubuntu, with Linux 3.2.0-23-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 441f1954-06cb-4e60-b761-1df9a5fec8d7
echo 'Loading Linux 3.2.0-23-generic-pae ...'
linux /boot/vmlinuz-3.2.0-23-generic-pae root=UUID=441f1954-06cb-4e60-b761-1df9a5fec8d7 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-23-generic-pae
}
}
### 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,msdos3)'
search --no-floppy --fs-uuid --set=root 441f1954-06cb-4e60-b761-1df9a5fec8d7
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 441f1954-06cb-4e60-b761-1df9a5fec8d7
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ "x${timeout}" != "x-1" ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 ###
--------------------------------------------------------------------------------

=============================== sda3/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/sda3 during installation
UUID=441f1954-06cb-4e60-b761-1df9a5fec8d7 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda4 during installation
UUID=f1a4f92b-00b1-4b3d-8334-ba28e8d8563c none swap sw 0 0
--------------------------------------------------------------------------------

=================== sda3: 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.2.0-23-generic-pae 1
= boot/initrd.img-3.2.0-24-generic-pae 2
= boot/vmlinuz-3.2.0-23-generic-pae 1
= boot/vmlinuz-3.2.0-24-generic-pae 1
= initrd.img 1
= initrd.img.old 1
= vmlinuz 1

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

Unknown BootLoader on sda1

00000000 e2 bf bf d2 ba 1d 88 45 2e d3 f9 55 ed 93 da df |.......E...U....|
00000010 9c 98 bc e1 e7 98 1e 5c fa f6 9d 14 9d 1d fb 7b |.......\.......{|
00000020 6a d8 ee 9b b6 13 78 25 b2 5c c0 f8 bd c0 b1 6b |j.....x%.\.....k|
00000030 d4 aa 55 d4 8a c1 44 ca 44 30 15 62 28 19 7a 56 |..U...D.D0.b(.zV|
00000040 49 79 b2 47 ac cf c3 fd 75 a1 2d 6f 61 5a 43 29 |Iy.G....u.-oaZC)|
00000050 c1 37 bf 00 b2 8e a1 ab 7c 79 1c 53 79 97 c6 5f |.7......|y.Sy.._|
00000060 84 b1 20 98 f1 a4 17 15 d2 53 6b cf 0f 87 b2 fc |.. ......Sk.....|
00000070 28 1a 37 b5 a1 48 7a f3 00 f4 29 84 0d e3 5e f9 |(.7..Hz...)...^.|
00000080 e7 4d bd 07 ea 78 2f f7 0a b4 54 79 a7 f4 66 90 |.M...x/...Ty..f.|
00000090 65 dd 75 e3 04 ba 21 ca 9a 1a a2 12 a9 a2 fc 77 |e.u...!........w|
000000a0 11 26 62 dc b3 6a 85 9a a3 92 76 c8 f1 ea 5a e8 |.&b..j....v...Z.|
000000b0 a0 78 37 29 33 4a e1 80 66 77 58 f0 2c 51 5b 24 |.x7)3J..fwX.,Q[$|
000000c0 bf d4 16 37 fb dc 99 e4 21 f7 21 3f b7 ea 4d a5 |...7....!.!?..M.|
000000d0 5a 04 dc 1d 5e 44 a0 fc 34 ff af 2b 1d 07 b5 43 |Z...^D..4..+...C|
000000e0 c1 81 2d 33 b9 a8 52 aa 26 4b f3 65 be 08 92 1f |..-3..R.&K.e....|
000000f0 a0 3e 54 a9 bc 85 a8 10 e9 84 c5 0e 85 4a b6 10 |.>T..........J..|
00000100 d3 3c a0 a7 85 7e 29 45 46 84 e7 55 a1 87 b1 a8 |.<...~)EF..U....|
00000110 27 d2 56 61 1f 65 e0 b3 60 36 83 a0 56 15 c1 ee |'.Va.e..`6..V...|
00000120 54 27 db db 28 b5 f3 e8 80 0a 2e 8d 5c de fa 72 |T'..(.......\..r|
00000130 cf b2 d2 81 48 d7 a8 75 09 bd ba a0 ee 72 dd ce |....H..u.....r..|
00000140 dd ca 0a b6 9d 27 86 0c 11 c3 d9 54 7c 70 32 31 |.....'.....T|p21|
00000150 97 2f 98 8c 8b 0f 47 1d 33 43 ee ec 45 9a da c8 |./....G.3C..E...|
00000160 61 27 60 84 1a 6c 6b bf 0a d4 a3 5d 7a c8 df 9d |a'`..lk....]z...|
00000170 a6 e2 f9 8e 50 e5 44 e8 dc b3 b8 7d 39 ce 9f db |....P.D....}9...|
00000180 da de e1 1a 20 ff 80 21 84 be 16 64 92 6d b3 61 |.... ..!...d.m.a|
00000190 32 f7 9f 9e 51 fd 7f 92 54 b7 3e cd 52 7d 2c f0 |2...Q...T.>.R},.|
000001a0 78 53 fa a3 a9 a0 38 41 f6 9a 13 79 9c 47 af 33 |xS....8A...y.G.3|
000001b0 07 c3 1a 76 85 14 83 71 6f 63 c7 b6 03 fd 98 f8 |...v...qoc......|
000001c0 a6 ba c9 ec 36 cb 92 9a 4f ef a5 08 05 74 f9 78 |....6...O....t.x|
000001d0 d8 35 0e fb 9d b0 28 75 11 b7 d4 99 0c 39 24 59 |.5....(u.....9$Y|
000001e0 f9 30 25 16 bd 72 10 36 88 bf 58 14 9d 72 c0 9c |.0%..r.6..X..r..|
000001f0 98 63 8c 6c 36 ed dc c5 68 05 47 8d 00 b6 9c 7c |.c.l6...h.G....||
00000200

Unknown BootLoader on sda2

00000000 a4 c3 e9 59 e4 9c 1b 83 70 16 5d b4 cf fa da 3c |...Y....p.]....<|
00000010 e9 19 d6 fa 72 a8 7f 7c db 3c b6 68 23 6b 95 d6 |....r..|.<.h#k..|
00000020 67 e0 4c ee ca 10 bc 16 2f 3e f5 f3 87 50 0b 30 |g.L...../>...P.0|
00000030 bb 82 6b d7 73 d1 43 66 d9 16 1c 2f 51 71 ed b0 |..k.s.Cf.../Qq..|
00000040 92 ee 28 e9 86 59 1b b5 6e dd f8 57 45 32 4b df |..(..Y..n..WE2K.|
00000050 1d bb 37 8c a8 69 a7 a1 f8 38 bb 7e 64 3e 9e f7 |..7..i...8.~d>..|
00000060 fa 0c 0c cb 8d d7 76 29 42 f0 82 b5 b6 4d ca a4 |......v)B....M..|
00000070 e5 6d f4 b3 4d cb 61 52 25 c2 7b 71 2b aa 78 68 |.m..M.aR%.{q+.xh|
00000080 63 23 c3 05 61 cf 86 9f 4d 31 97 77 ba 8f 4f db |c#..a...M1.w..O.|
00000090 46 93 fb 50 18 3e c3 9c 36 0a d1 f8 b7 44 4a a0 |F..P.>..6....DJ.|
000000a0 b3 c5 7d 82 0a 84 01 48 a9 c5 b0 cf b2 99 4f 02 |..}....H......O.|
000000b0 a0 db 38 b4 6d 84 eb cb 5e 5f fb 8b 72 16 3c 58 |..8.m...^_..r.<X|
000000c0 14 8c e2 e0 2f 36 dc 88 64 be f2 bb 5d d6 d3 ef |..../6..d...]...|
000000d0 6d df 63 d9 99 23 b8 c5 8f 0e 14 35 8e 02 ef 4e |m.c..#.....5...N|
000000e0 96 56 60 54 e1 52 79 d4 a9 2d 50 8f 3c 18 a1 da |.V`T.Ry..-P.<...|
000000f0 fe a1 31 21 94 5d 60 ac ab ae 20 e9 d5 ca 54 a6 |..1!.]`... ...T.|
00000100 58 0c 7a 03 fd 1e 2b 49 95 56 e9 5a a2 b1 41 36 |X.z...+I.V.Z..A6|
00000110 ac 76 5a 2c 32 08 eb ec ee 85 4c 6f 02 91 0d 64 |.vZ,2.....Lo...d|
00000120 32 2b 7e 5d 4f c6 71 57 37 62 ef 30 be 5c 4a be |2+~]O.qW7b.0.\J.|
00000130 e8 6e d1 02 a5 87 a4 bd 85 ab 46 ee e2 ba 78 ed |.n........F...x.|
00000140 ab 3f 79 1e 3d bc ef 3c 8e 37 c9 fa c9 07 6c d1 |.?y.=..<.7....l.|
00000150 34 5f 1c a0 70 ac 2d c3 41 e5 9c 6f 24 0b af 83 |4_..p.-.A..o$...|
00000160 9d 56 68 b7 9b f5 d3 ba bc 5a 78 4e 55 1a 8c 9f |.Vh......ZxNU...|
00000170 af 68 d4 93 18 39 85 82 45 3c 07 a4 e8 7a 10 aa |.h...9..E<...z..|
00000180 a5 33 a8 c6 38 3d a2 e5 dd fa 23 18 08 8d b4 d2 |.3..8=....#.....|
00000190 11 02 56 46 ac 58 30 54 96 bb 3c 38 f2 24 46 36 |..VF.X0T..<8.$F6|
000001a0 4e 7f b1 32 f1 fa c4 27 1c b0 38 b3 5d d9 cb f4 |N..2...'..8.]...|
000001b0 6c ca e6 52 6b d8 ac db f7 fc 90 86 73 55 5e db |l..Rk.......sU^.|
000001c0 d7 05 5e d3 61 46 ac 17 1d 50 4e a6 e9 c2 20 cd |..^.aF...PN... .|
000001d0 5d f3 43 3f f0 36 31 77 69 ae a7 43 55 9a d2 c0 |].C?.61wi..CU...|
000001e0 49 2c 4d 14 6f a8 dd 5f f9 88 39 e9 de 9d e3 b0 |I,M.o.._..9.....|
000001f0 2a 79 28 30 84 17 61 4b e0 62 b6 a9 fa e9 d6 02 |*y(0..aK.b......|
00000200


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

xz: (stdin): Compressed data is corrupt
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

zdeuyo
May 1st, 2012, 04:10 AM
I installed ubuntu 12.04 on my laptop and appear to have messed up my partitions. I used the partition manager to install an ext4 and swap partitions in free space and now my windows 7 partitions are showing unknown. Did I format them on accident? Is there a way to recover these partitions? Here is the output of boot info script.



Boot Info Script 0.61 [1 April 2012]


============================= 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 (,msdos3)/boot/grub on this drive.

sda1: __________________________________________________ ________________________

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

sda2: __________________________________________________ ________________________

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

sda3: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 12.04 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda4: __________________________________________________ ________________________

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

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

Drive: sda __________________________________________________ ___________________

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 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 1,105,919 1,103,872 7 NTFS / exFAT / HPFS
/dev/sda2 1,105,920 404,509,039 403,403,120 7 NTFS / exFAT / HPFS
/dev/sda3 404,510,720 480,395,263 75,884,544 83 Linux
/dev/sda4 480,395,264 488,394,751 7,999,488 82 Linux swap / Solaris


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/sda3 441f1954-06cb-4e60-b761-1df9a5fec8d7 ext4
/dev/sda4 f1a4f92b-00b1-4b3d-8334-ba28e8d8563c swap

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

Device Mount_Point Type Options

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


=========================== sda3/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,msdos3)'
search --no-floppy --fs-uuid --set=root 441f1954-06cb-4e60-b761-1df9a5fec8d7
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 441f1954-06cb-4e60-b761-1df9a5fec8d7
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 ###
function gfxmode {
set gfxpayload="$1"
if [ "$1" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
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.2.0-24-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 441f1954-06cb-4e60-b761-1df9a5fec8d7
linux /boot/vmlinuz-3.2.0-24-generic-pae root=UUID=441f1954-06cb-4e60-b761-1df9a5fec8d7 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-24-generic-pae
}
menuentry 'Ubuntu, with Linux 3.2.0-24-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 441f1954-06cb-4e60-b761-1df9a5fec8d7
echo 'Loading Linux 3.2.0-24-generic-pae ...'
linux /boot/vmlinuz-3.2.0-24-generic-pae root=UUID=441f1954-06cb-4e60-b761-1df9a5fec8d7 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-24-generic-pae
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 3.2.0-23-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 441f1954-06cb-4e60-b761-1df9a5fec8d7
linux /boot/vmlinuz-3.2.0-23-generic-pae root=UUID=441f1954-06cb-4e60-b761-1df9a5fec8d7 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-23-generic-pae
}
menuentry 'Ubuntu, with Linux 3.2.0-23-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 441f1954-06cb-4e60-b761-1df9a5fec8d7
echo 'Loading Linux 3.2.0-23-generic-pae ...'
linux /boot/vmlinuz-3.2.0-23-generic-pae root=UUID=441f1954-06cb-4e60-b761-1df9a5fec8d7 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-23-generic-pae
}
}
### 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,msdos3)'
search --no-floppy --fs-uuid --set=root 441f1954-06cb-4e60-b761-1df9a5fec8d7
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 441f1954-06cb-4e60-b761-1df9a5fec8d7
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ "x${timeout}" != "x-1" ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 ###
--------------------------------------------------------------------------------

=============================== sda3/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/sda3 during installation
UUID=441f1954-06cb-4e60-b761-1df9a5fec8d7 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda4 during installation
UUID=f1a4f92b-00b1-4b3d-8334-ba28e8d8563c none swap sw 0 0
--------------------------------------------------------------------------------

=================== sda3: 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.2.0-23-generic-pae 1
= boot/initrd.img-3.2.0-24-generic-pae 2
= boot/vmlinuz-3.2.0-23-generic-pae 1
= boot/vmlinuz-3.2.0-24-generic-pae 1
= initrd.img 1
= initrd.img.old 1
= vmlinuz 1

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

Unknown BootLoader on sda1

00000000 e2 bf bf d2 ba 1d 88 45 2e d3 f9 55 ed 93 da df |.......E...U....|
00000010 9c 98 bc e1 e7 98 1e 5c fa f6 9d 14 9d 1d fb 7b |.......\.......{|
00000020 6a d8 ee 9b b6 13 78 25 b2 5c c0 f8 bd c0 b1 6b |j.....x%.\.....k|
00000030 d4 aa 55 d4 8a c1 44 ca 44 30 15 62 28 19 7a 56 |..U...D.D0.b(.zV|
00000040 49 79 b2 47 ac cf c3 fd 75 a1 2d 6f 61 5a 43 29 |Iy.G....u.-oaZC)|
00000050 c1 37 bf 00 b2 8e a1 ab 7c 79 1c 53 79 97 c6 5f |.7......|y.Sy.._|
00000060 84 b1 20 98 f1 a4 17 15 d2 53 6b cf 0f 87 b2 fc |.. ......Sk.....|
00000070 28 1a 37 b5 a1 48 7a f3 00 f4 29 84 0d e3 5e f9 |(.7..Hz...)...^.|
00000080 e7 4d bd 07 ea 78 2f f7 0a b4 54 79 a7 f4 66 90 |.M...x/...Ty..f.|
00000090 65 dd 75 e3 04 ba 21 ca 9a 1a a2 12 a9 a2 fc 77 |e.u...!........w|
000000a0 11 26 62 dc b3 6a 85 9a a3 92 76 c8 f1 ea 5a e8 |.&b..j....v...Z.|
000000b0 a0 78 37 29 33 4a e1 80 66 77 58 f0 2c 51 5b 24 |.x7)3J..fwX.,Q[$|
000000c0 bf d4 16 37 fb dc 99 e4 21 f7 21 3f b7 ea 4d a5 |...7....!.!?..M.|
000000d0 5a 04 dc 1d 5e 44 a0 fc 34 ff af 2b 1d 07 b5 43 |Z...^D..4..+...C|
000000e0 c1 81 2d 33 b9 a8 52 aa 26 4b f3 65 be 08 92 1f |..-3..R.&K.e....|
000000f0 a0 3e 54 a9 bc 85 a8 10 e9 84 c5 0e 85 4a b6 10 |.>T..........J..|
00000100 d3 3c a0 a7 85 7e 29 45 46 84 e7 55 a1 87 b1 a8 |.<...~)EF..U....|
00000110 27 d2 56 61 1f 65 e0 b3 60 36 83 a0 56 15 c1 ee |'.Va.e..`6..V...|
00000120 54 27 db db 28 b5 f3 e8 80 0a 2e 8d 5c de fa 72 |T'..(.......\..r|
00000130 cf b2 d2 81 48 d7 a8 75 09 bd ba a0 ee 72 dd ce |....H..u.....r..|
00000140 dd ca 0a b6 9d 27 86 0c 11 c3 d9 54 7c 70 32 31 |.....'.....T|p21|
00000150 97 2f 98 8c 8b 0f 47 1d 33 43 ee ec 45 9a da c8 |./....G.3C..E...|
00000160 61 27 60 84 1a 6c 6b bf 0a d4 a3 5d 7a c8 df 9d |a'`..lk....]z...|
00000170 a6 e2 f9 8e 50 e5 44 e8 dc b3 b8 7d 39 ce 9f db |....P.D....}9...|
00000180 da de e1 1a 20 ff 80 21 84 be 16 64 92 6d b3 61 |.... ..!...d.m.a|
00000190 32 f7 9f 9e 51 fd 7f 92 54 b7 3e cd 52 7d 2c f0 |2...Q...T.>.R},.|
000001a0 78 53 fa a3 a9 a0 38 41 f6 9a 13 79 9c 47 af 33 |xS....8A...y.G.3|
000001b0 07 c3 1a 76 85 14 83 71 6f 63 c7 b6 03 fd 98 f8 |...v...qoc......|
000001c0 a6 ba c9 ec 36 cb 92 9a 4f ef a5 08 05 74 f9 78 |....6...O....t.x|
000001d0 d8 35 0e fb 9d b0 28 75 11 b7 d4 99 0c 39 24 59 |.5....(u.....9$Y|
000001e0 f9 30 25 16 bd 72 10 36 88 bf 58 14 9d 72 c0 9c |.0%..r.6..X..r..|
000001f0 98 63 8c 6c 36 ed dc c5 68 05 47 8d 00 b6 9c 7c |.c.l6...h.G....||
00000200

Unknown BootLoader on sda2

00000000 a4 c3 e9 59 e4 9c 1b 83 70 16 5d b4 cf fa da 3c |...Y....p.]....<|
00000010 e9 19 d6 fa 72 a8 7f 7c db 3c b6 68 23 6b 95 d6 |....r..|.<.h#k..|
00000020 67 e0 4c ee ca 10 bc 16 2f 3e f5 f3 87 50 0b 30 |g.L...../>...P.0|
00000030 bb 82 6b d7 73 d1 43 66 d9 16 1c 2f 51 71 ed b0 |..k.s.Cf.../Qq..|
00000040 92 ee 28 e9 86 59 1b b5 6e dd f8 57 45 32 4b df |..(..Y..n..WE2K.|
00000050 1d bb 37 8c a8 69 a7 a1 f8 38 bb 7e 64 3e 9e f7 |..7..i...8.~d>..|
00000060 fa 0c 0c cb 8d d7 76 29 42 f0 82 b5 b6 4d ca a4 |......v)B....M..|
00000070 e5 6d f4 b3 4d cb 61 52 25 c2 7b 71 2b aa 78 68 |.m..M.aR%.{q+.xh|
00000080 63 23 c3 05 61 cf 86 9f 4d 31 97 77 ba 8f 4f db |c#..a...M1.w..O.|
00000090 46 93 fb 50 18 3e c3 9c 36 0a d1 f8 b7 44 4a a0 |F..P.>..6....DJ.|
000000a0 b3 c5 7d 82 0a 84 01 48 a9 c5 b0 cf b2 99 4f 02 |..}....H......O.|
000000b0 a0 db 38 b4 6d 84 eb cb 5e 5f fb 8b 72 16 3c 58 |..8.m...^_..r.<X|
000000c0 14 8c e2 e0 2f 36 dc 88 64 be f2 bb 5d d6 d3 ef |..../6..d...]...|
000000d0 6d df 63 d9 99 23 b8 c5 8f 0e 14 35 8e 02 ef 4e |m.c..#.....5...N|
000000e0 96 56 60 54 e1 52 79 d4 a9 2d 50 8f 3c 18 a1 da |.V`T.Ry..-P.<...|
000000f0 fe a1 31 21 94 5d 60 ac ab ae 20 e9 d5 ca 54 a6 |..1!.]`... ...T.|
00000100 58 0c 7a 03 fd 1e 2b 49 95 56 e9 5a a2 b1 41 36 |X.z...+I.V.Z..A6|
00000110 ac 76 5a 2c 32 08 eb ec ee 85 4c 6f 02 91 0d 64 |.vZ,2.....Lo...d|
00000120 32 2b 7e 5d 4f c6 71 57 37 62 ef 30 be 5c 4a be |2+~]O.qW7b.0.\J.|
00000130 e8 6e d1 02 a5 87 a4 bd 85 ab 46 ee e2 ba 78 ed |.n........F...x.|
00000140 ab 3f 79 1e 3d bc ef 3c 8e 37 c9 fa c9 07 6c d1 |.?y.=..<.7....l.|
00000150 34 5f 1c a0 70 ac 2d c3 41 e5 9c 6f 24 0b af 83 |4_..p.-.A..o$...|
00000160 9d 56 68 b7 9b f5 d3 ba bc 5a 78 4e 55 1a 8c 9f |.Vh......ZxNU...|
00000170 af 68 d4 93 18 39 85 82 45 3c 07 a4 e8 7a 10 aa |.h...9..E<...z..|
00000180 a5 33 a8 c6 38 3d a2 e5 dd fa 23 18 08 8d b4 d2 |.3..8=....#.....|
00000190 11 02 56 46 ac 58 30 54 96 bb 3c 38 f2 24 46 36 |..VF.X0T..<8.$F6|
000001a0 4e 7f b1 32 f1 fa c4 27 1c b0 38 b3 5d d9 cb f4 |N..2...'..8.]...|
000001b0 6c ca e6 52 6b d8 ac db f7 fc 90 86 73 55 5e db |l..Rk.......sU^.|
000001c0 d7 05 5e d3 61 46 ac 17 1d 50 4e a6 e9 c2 20 cd |..^.aF...PN... .|
000001d0 5d f3 43 3f f0 36 31 77 69 ae a7 43 55 9a d2 c0 |].C?.61wi..CU...|
000001e0 49 2c 4d 14 6f a8 dd 5f f9 88 39 e9 de 9d e3 b0 |I,M.o.._..9.....|
000001f0 2a 79 28 30 84 17 61 4b e0 62 b6 a9 fa e9 d6 02 |*y(0..aK.b......|
00000200


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

xz: (stdin): Compressed data is corrupt
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


Hello,

Please try this and let me know if this solves your problem.

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

This should work.

All the best.

oldfred
May 1st, 2012, 04:41 AM
Partition table still sees them as NTFS (07), but all NTFS formated partitions have to have the NTFS data in the PBR - partition boot sector.

Testdisk can recover the backup of the BS - boot sector if whatever you did, you only did once. Other wise you need a Windows repairCD or full install with the repair console. Image from a hard drive will not work.

Part of testdisk which is in the repositories or most recovery CDs.
http://www.cgsecurity.org/wiki/Advanced_NTFS_Boot_and_MFT_Repair
Instructions
http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step
http://www.cgsecurity.org/wiki/Menu_Analyse
http://www.cgsecurity.org/wiki/TestDisk:_undelete_file_for_NTFS
As described, it has an option to "Recover NTFS boot sector from its backup"
If Backup BS isn't available, choose RebuildBS. But you still have to run the Windows repairs.

repairs including testdisk info & links
http://members.iinet.net.au/~herman546/p21.html
https://help.ubuntu.com/community/DataRecovery#Lost%20Partition