Skip to main content

Thread: Windows 7 missing after Ubuntu 11.04 Installation


hi,

have installed ubuntu 11.04 problem is, can't find windows 7 part choose os use.

in ubuntu installation, used sda1 freedos located (i installed there 'cause thought i'm not using anyway) , noted windows 7 in sda3. when restarted laptop, can't find windows 7 anymore.

checked windows 7 files ubuntu, , can see they're still there. don't know how access windows 7 again.

please help.

here's info might in solving problem (i followed steps advised previous threads)

code:
                  boot info script 0.60    17 may 2011   ============================= boot info summary: ===============================   => windows installed in mbr of /dev/sda.  sda1: __________________________________________________________________________      file system:       ext4     boot sector type:  grub2 (v1.99)     boot sector info:   grub2 (v1.99) installed in boot sector of sda1                         , looks @ sector 50684935 of same hard drive                         core.img. core.img @ location , looks                         (,msdos1)/boot/grub on drive.     operating system:  ubuntu 11.04     boot files:        /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img  sda2: __________________________________________________________________________      file system:       vfat     boot sector type:  unknown     boot sector info:   no errors found in boot parameter block.     operating system:       boot files:          sda3: __________________________________________________________________________      file system:       ntfs     boot sector type:  windows vista/7     boot sector info:   no errors found in boot parameter block.     operating system:  windows 7     boot files:        /windows/system32/winload.exe /wubildr                         /ubuntu/winboot/wubildr /wubildr.mbr                         /ubuntu/winboot/wubildr.mbr /ubuntu/disks/root.disk                         /ubuntu/disks/swap.disk  sda3/wubi: _____________________________________________________________________      file system:       ext4     boot sector type:  -     boot sector info:       operating system:  ubuntu 11.04     boot files:        /boot/grub/grub.cfg /etc/fstab  sda4: __________________________________________________________________________      file system:       ntfs     boot sector type:  windows vista/7     boot sector info:   according info in boot sector, sda4 has                         2050047 sectors, according info fdisk,                         has 2270895 sectors.     operating system:       boot files:        /bootmgr /boot/bcd  ============================ 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    *             63    57,541,078    57,541,016  83 linux /dev/sda2          61,448,625   122,897,249    61,448,625   c w95 fat32 (lba) /dev/sda3         122,898,432   974,501,887   851,603,456   7 ntfs / exfat / hpfs /dev/sda4         974,502,272   976,773,167     2,270,896  12 compaq diagnostics   "blkid" output: ________________________________________________________________  device           uuid                                   type       label  /dev/sda1        914870ef-4fb6-4a46-9f1c-3aa68aeb6560   ext4        /dev/sda2        cc77-7348                              vfat        /dev/sda3        2260913160910ca3                       ntfs        /dev/sda4        e8567002566fcfbc                       ntfs       lenovo_part  ================================ mount points: =================================  device           mount_point              type       options  /dev/sda1        /                        ext4       (rw,errors=remount-ro,commit=0) /dev/sda2        /media/cc77-7348         vfat       (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush) /dev/sr0         /media/repair disc windows 7 32-bit udf        (ro,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,iocharset=utf8,umask=0077,dmode=0500)   =========================== sda1/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,msdos1)' search --no-floppy --fs-uuid --set=root 914870ef-4fb6-4a46-9f1c-3aa68aeb6560 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,msdos1)' search --no-floppy --fs-uuid --set=root 914870ef-4fb6-4a46-9f1c-3aa68aeb6560 set locale_dir=($root)/boot/grub/locale set lang=en_ph 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,msdos1)'     search --no-floppy --fs-uuid --set=root 914870ef-4fb6-4a46-9f1c-3aa68aeb6560     linux    /boot/vmlinuz-2.6.38-8-generic root=uuid=914870ef-4fb6-4a46-9f1c-3aa68aeb6560 ro   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,msdos1)'     search --no-floppy --fs-uuid --set=root 914870ef-4fb6-4a46-9f1c-3aa68aeb6560     echo    'loading linux 2.6.38-8-generic ...'     linux    /boot/vmlinuz-2.6.38-8-generic root=uuid=914870ef-4fb6-4a46-9f1c-3aa68aeb6560 ro single      echo    'loading initial ramdisk ...'     initrd    /boot/initrd.img-2.6.38-8-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,msdos1)'     search --no-floppy --fs-uuid --set=root 914870ef-4fb6-4a46-9f1c-3aa68aeb6560     linux16    /boot/memtest86+.bin } menuentry "memory test (memtest86+, serial console 115200)" {     insmod part_msdos     insmod ext2     set root='(/dev/sda,msdos1)'     search --no-floppy --fs-uuid --set=root 914870ef-4fb6-4a46-9f1c-3aa68aeb6560     linux16    /boot/memtest86+.bin console=ttys0,115200n8 } ### end /etc/grub.d/20_memtest86+ ###  ### begin /etc/grub.d/30_os-prober ### menuentry "windows recovery environment (loader) (on /dev/sda4)" --class windows --class os {     insmod part_msdos     insmod ntfs     set root='(/dev/sda,msdos4)'     search --no-floppy --fs-uuid --set=root e8567002566fcfbc     drivemap -s (hd0) ${root}     chainloader +1 } ### 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 ### --------------------------------------------------------------------------------  =============================== sda1/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/sda1 during installation uuid=914870ef-4fb6-4a46-9f1c-3aa68aeb6560 /               ext4    errors=remount-ro 0       1 --------------------------------------------------------------------------------  =================== sda1: location of files loaded grub: ====================             gib - gb             file                                 fragment(s)    24.168487072 = 25.950715392   boot/grub/core.img                             1    4.759089947 = 5.110033920    boot/grub/grub.cfg                             1    0.688724041 = 0.739511808    boot/initrd.img-2.6.38-8-generic               2   24.166759014 = 25.948859904   boot/vmlinuz-2.6.38-8-generic                  1    0.688724041 = 0.739511808    initrd.img                                     2   24.166759014 = 25.948859904   vmlinuz                                        1  ======================== sda3/wubi/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 { true }  insmod part_msdos insmod ntfs set root='(/dev/sda,msdos3)' search --no-floppy --fs-uuid --set=root 2260913160910ca3 loopback loop0 /ubuntu/disks/root.disk set root=(loop0) if loadfont /usr/share/grub/unicode.pf2 ;   set gfxmode=auto   load_video   insmod gfxterm fi terminal_output gfxterm 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 ### ### end /etc/grub.d/10_linux ###  ### begin /etc/grub.d/10_lupin ### menuentry "ubuntu, linux 2.6.38-8-generic" {     insmod part_msdos     insmod ntfs     set root='(/dev/sda,msdos3)'     search --no-floppy --fs-uuid --set=root 2260913160910ca3     loopback loop0 /ubuntu/disks/root.disk     set root=(loop0)     linux /boot/vmlinuz-2.6.38-8-generic root=uuid=2260913160910ca3 loop=/ubuntu/disks/root.disk ro   quiet splash     initrd /boot/initrd.img-2.6.38-8-generic } menuentry "ubuntu, linux 2.6.38-8-generic (recovery mode)" {     insmod part_msdos     insmod ntfs     set root='(/dev/sda,msdos3)'     search --no-floppy --fs-uuid --set=root 2260913160910ca3     loopback loop0 /ubuntu/disks/root.disk     set root=(loop0)     linux /boot/vmlinuz-2.6.38-8-generic root=uuid=2260913160910ca3 loop=/ubuntu/disks/root.disk ro single      initrd /boot/initrd.img-2.6.38-8-generic } ### end /etc/grub.d/10_lupin ###  ### begin /etc/grub.d/20_linux_xen ### ### end /etc/grub.d/20_linux_xen ###  ### begin /etc/grub.d/20_memtest86+ ### ### end /etc/grub.d/20_memtest86+ ###  ### begin /etc/grub.d/30_os-prober ### menuentry "freedos (on /dev/sda1)" --class windows --class os {     insmod part_msdos     insmod fat     set root='(/dev/sda,msdos1)'     search --no-floppy --fs-uuid --set=root 443b-14ef     drivemap -s (hd0) ${root}     chainloader +1 } menuentry "windows recovery environment (loader) (on /dev/sda4)" --class windows --class os {     insmod part_msdos     insmod ntfs     set root='(/dev/sda,msdos4)'     search --no-floppy --fs-uuid --set=root e8567002566fcfbc     drivemap -s (hd0) ${root}     chainloader +1 } ### 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 ### --------------------------------------------------------------------------------  ============================= sda3/wubi/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 /host/ubuntu/disks/root.disk /               ext4    loop,errors=remount-ro 0       1 /host/ubuntu/disks/swap.disk none            swap    loop,sw         0       0 --------------------------------------------------------------------------------  ================= sda3/wubi: location of files loaded grub: =================             gib - gb             file                                 fragment(s)     6.130851746 = 6.582951936    boot/grub/grub.cfg                             1    1.630825043 = 1.751085056    boot/initrd.img-2.6.38-8-generic               2    6.254211426 = 6.715408384    boot/vmlinuz-2.6.38-8-generic                  1    1.630825043 = 1.751085056    initrd.img                                     2    6.254211426 = 6.715408384    vmlinuz                                        1  ======================== unknown mbrs/boot sectors/etc: ========================  unknown bootloader on sda2  00000000  eb 58 90 4d 53 44 4f 53  35 2e 30 00 02 20 da 0a  |.x.msdos5.0.. ..| 00000010  02 00 00 00 00 f8 00 00  3f 00 ff 00 b1 a1 a9 03  |........?.......| 00000020  b1 a1 a9 03 93 3a 00 00  00 00 00 00 02 00 00 00  |.....:..........| 00000030  01 00 06 00 00 00 00 00  00 00 00 00 00 00 00 00  |................| 00000040  80 00 29 48 73 77 cc 4e  4f 20 4e 41 4d 45 20 20  |..)hsw.no name  | 00000050  20 20 46 41 54 33 32 20  20 20 33 c9 8e d1 bc f4  |  fat32   3.....| 00000060  7b 8e c1 8e d9 bd 00 7c  88 4e 02 8a 56 40 b4 41  |{......|.n..v@.a| 00000070  bb aa 55 cd 13 72 10 81  fb 55 aa 75 0a f6 c1 01  |..u..r...u.u....| 00000080  74 05 fe 46 02 eb 2d 8a  56 40 b4 08 cd 13 73 05  |t..f..-.v@....s.| 00000090  b9 ff ff 8a f1 66 0f b6  c6 40 66 0f b6 d1 80 e2  |.....f...@f.....| 000000a0  3f f7 e2 86 cd c0 ed 06  41 66 0f b7 c9 66 f7 e1  |?.......af...f..| 000000b0  66 89 46 f8 83 7e 16 00  75 38 83 7e 2a 00 77 32  |f.f..~..u8.~*.w2| 000000c0  66 8b 46 1c 66 83 c0 0c  bb 00 80 b9 01 00 e8 2b  |f.f.f..........+| 000000d0  00 e9 2c 03 a0 fa 7d b4  7d 8b f0 ac 84 c0 74 17  |..,...}.}.....t.| 000000e0  3c ff 74 09 b4 0e bb 07  00 cd 10 eb ee a0 fb 7d  |<.t............}| 000000f0  eb e5 a0 f9 7d eb e0 98  cd 16 cd 19 66 60 80 7e  |....}.......f`.~| 00000100  02 00 0f 84 20 00 66 6a  00 66 50 06 53 66 68 10  |.... .fj.fp.sfh.| 00000110  00 01 00 b4 42 8a 56 40  8b f4 cd 13 66 58 66 58  |....b.v@....fxfx| 00000120  66 58 66 58 eb 33 66 3b  46 f8 72 03 f9 eb 2a 66  |fxfx.3f;f.r...*f| 00000130  33 d2 66 0f b7 4e 18 66  f7 f1 fe c2 8a ca 66 8b  |3.f..n.f......f.| 00000140  d0 66 c1 ea 10 f7 76 1a  86 d6 8a 56 40 8a e8 c0  |.f....v....v@...| 00000150  e4 06 0a cc b8 01 02 cd  13 66 61 0f 82 75 ff 81  |.........fa..u..| 00000160  c3 00 02 66 40 49 75 94  c3 42 4f 4f 54 4d 47 52  |...f@iu..bootmgr| 00000170  20 20 20 20 00 00 00 00  00 00 00 00 00 00 00 00  |    ............| 00000180  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................| * 000001a0  00 00 00 00 00 00 00 00  00 00 00 00 0d 0a 52 65  |..............re| 000001b0  6d 6f 76 65 20 64 69 73  6b 73 20 6f 72 20 6f 74  |move disks or ot| 000001c0  68 65 72 20 6d 65 64 69  61 2e ff 0d 0a 44 69 73  |her media....dis| 000001d0  6b 20 65 72 72 6f 72 ff  0d 0a 50 72 65 73 73 20  |k error...press | 000001e0  61 6e 79 20 6b 65 79 20  74 6f 20 72 65 73 74 61  |any key resta| 000001f0  72 74 0d 0a 00 00 00 00  00 ac cb d8 00 00 55 aa  |rt............u.| 00000200   =============================== stderr messages: ===============================  unlzma: decoder error

you missing /bootmgr , /boot/bcd files in windows 7 sda3 partition. why grub's os-prober in ubuntu cannot detect , why has not added windows entry grub menu. guess these files in freedos sda1 partition. did install windows 7 when freedos partition there? windows 7 installer has obsession sticking boot files anywhere c: partition , grab pre-existing suitable partition formatted microsoft filesystem.

1 odd thing i've noticed - have windows code in mbr. can boot ubuntu? have grub installed boot sector of sda, partition boot flag, perhaps how doing it. it's strange way of getting grub boot.

have windows 7 installation dvd (a microsoft one, not oem restore disc) or did create windows 7 repair cd while still able boot windows 7? if yes either, have here:

if boot installation dvd or repair cd , go command prompt, should able repair boot sector of sda3 either 'bootrec /fixboot' or 'bootrec /rebuildbcd'. don't use 'bootrec /fixmbr'. rewrite windows code mbr.

once you've repaired sda3 boot sector, boot ubuntu (if can) , run terminal:

code:
sudo update-grub
there few other loose ends, let's see does.

have wubi installation in windows sda3 partition, that's not problem @ moment.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [ubuntu] Windows 7 missing after Ubuntu 11.04 Installation


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support