Skip to main content

Thread: Cannot boot into Win 7 after reinstalling GRUB: I get "Error 13" (details below)


my machine has 2 separate physical disks, 1 each os. windows (sda) , ubuntu linux (sdb). windows disk had "vista business x64" , linux disk has ubuntu 12.04. upgraded vista "win 7 pro x64" , expected, screwed mbr , grub not coming @ boot time. so, reinstall grub , go through whole 9 yards (booting live cd , mounting boot partition, reinstalling grub). please note installed grub on 'sdb' , changed boot sequence (in bios) pick 'sdb' first disk (because o/w grub not come up). did not install grub on 'sda' because afraid, might screw something.

can see grub come on boot menu options 'win 7' , 'ubuntu'. booting ubuntu ok when choose windows, error:

"error 13: invalid or unsupported executable format. press key continue.....".

when press key, takes me grub. below steps followed link (http://askubuntu.com/questions/88384...alling-windows). clues how can resurrect m/c?

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
code:
ubuntu@ubuntu:~$ sudo fdisk -l  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 i/o size (minimum/optimal): 512 bytes / 512 bytes disk identifier: 0x954b5a9b     device boot      start         end      blocks   id  system /dev/sda1   *        2048   976771071   488384512    7  hpfs/ntfs/exfat  disk /dev/sdb: 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 i/o size (minimum/optimal): 512 bytes / 512 bytes disk identifier: 0x000ad2ea     device boot      start         end      blocks   id  system /dev/sdb1              63    48821534    24410736   83  linux /dev/sdb2        48821535   244139804    97659135   83  linux /dev/sdb3       244139805   248043599     1951897+  82  linux swap / solaris /dev/sdb4       248043600   976768064   364362232+  83  linux
code:
ubuntu@ubuntu:~$ sudo mount /dev/sdb1 /mnt ubuntu@ubuntu:~$ cd /mnt/ ubuntu@ubuntu:/mnt$ ls bin    dev   initrd.img      lib64       mnt   root  selinux  tmp  vmlinuz boot   etc   initrd.img.old  lost+found  opt   run   srv      usr  vmlinuz.old cdrom  home  lib             media       proc  sbin  sys      var  ubuntu@ubuntu:/mnt$ sudo mount --bind /dev /mnt/dev ubuntu@ubuntu:/mnt$ sudo mount --bind /dev/pts /mnt/dev/pts ubuntu@ubuntu:/mnt$ sudo mount --bind /proc /mnt/proc ubuntu@ubuntu:/mnt$ sudo mount --bind /sys /mnt/sys ubuntu@ubuntu:/mnt$ ubuntu@ubuntu:/mnt$ ubuntu@ubuntu:/mnt$ ubuntu@ubuntu:/mnt$ sudo chroot /mnt root@ubuntu:/# root@ubuntu:/# root@ubuntu:/# root@ubuntu:/# update-grub searching grub installation directory ... found: /boot/grub searching default file ... found: /boot/grub/default testing existing grub menu.lst file ... found: /boot/grub/menu.lst searching splash image ... none found, skipping ... found kernel: /boot/vmlinuz-3.2.0-26-generic found kernel: /boot/vmlinuz-3.2.0-25-generic found kernel: /boot/vmlinuz-3.2.0-24-generic found kernel: /boot/vmlinuz-3.2.0-23-generic found kernel: /boot/memtest86+.bin updating /boot/grub/menu.lst ... done  root@ubuntu:/# grub-install /dev/sdb  searching grub installation directory ... found: /boot/grub installing grub /dev/sdb (hd1)... installation finished. no error reported. contents of device map /boot/grub/device.map. check if correct or not. if of lines incorrect, fix , re-run script `grub-install'.  (hd0)    /dev/sda (hd1)    /dev/sdb  root@ubuntu:/# sudo grub-install --recheck /dev/sdb sudo: unable resolve host ubuntu probing devices guess bios drives. may take long time.  searching grub installation directory ... found: /boot/grub installing grub /dev/sdb (hd1)... installation finished. no error reported. contents of device map /boot/grub/device.map. check if correct or not. if of lines incorrect, fix , re-run script `grub-install'.  (fd0)    /dev/fd0 (hd0)    /dev/sda (hd1)    /dev/sdb root@ubuntu:/# exit ubuntu@ubuntu:~$ ubuntu@ubuntu:~$ ubuntu@ubuntu:~$ sudo umount /mnt/dev/pts ubuntu@ubuntu:~$ sudo umount /mnt/dev ubuntu@ubuntu:~$ sudo umount /mnt/proc ubuntu@ubuntu:~$ sudo umount /mnt/sys  ubuntu@ubuntu:~$ ubuntu@ubuntu:~$ ubuntu@ubuntu:~$ ubuntu@ubuntu:~$ sudo reboot %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
here's menu.lst
code:
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& # menu.lst - see: grub(8), info grub, update-grub(8) #            grub-install(8), grub-floppy(8), #            grub-md5-crypt, /usr/share/doc/grub #            , /usr/share/doc/grub-doc/.  ## default num # set default entry entry number num. numbering starts 0, , # entry number 0 default if command not used. # # can specify 'saved' instead of number. in case, default entry # entry saved command 'savedefault'. # warning: if using dmraid not use 'savedefault' or # array desync , not let boot system.  #default        1 #changed default 1 ss 03/06/12 default        1  ## timeout sec # set timeout, in sec seconds, before automatically booting default entry # (normally first entry defined). timeout        10  ## hiddenmenu # hides menu default (press esc see menu) #hiddenmenu  # pretty colours color cyan/blue white/blue  ## password ['--md5'] passwd # if used in first section of menu file, disable interactive editing # control (menu entry editor , command-line)  , entries protected # command 'lock' # e.g. password topsecret ## password --md5 $1$glhu0/$aw78khk1qfv3p2b2znuoe/ # password topsecret  # # examples # # title        windows 95/98/nt/2000 # root        (hd0,0) # makeactive # chainloader    +1 # # title        linux # root        (hd0,1) # kernel    /vmlinuz root=/dev/hda2 ro #  # # put static boot stanzas before and/or after automagic kernel list  ### begin automagic kernels list ## lines between automagic kernels list markers modified ## debian update-grub script except default options below  ## not uncomment them, edit them needs  ## ## start default options ## ## default kernel options ## default kernel options automagic boot options ## if want special options specific kernels use kopt_x_y_z ## x.y.z kernel version. minor versions can omitted. ## e.g. kopt=root=/dev/hda1 ro ##      kopt_2_6_8=root=/dev/hdc1 ro ##      kopt_2_6_8_2_686=root=/dev/hdc2 ro # kopt=root=uuid=c97eee3c-784b-4ce8-a9bf-a80f10378f31 ro  ## default grub root device ## e.g. groot=(hd0,0) # groot=c97eee3c-784b-4ce8-a9bf-a80f10378f31  ## should update-grub create alternative automagic boot options ## e.g. alternative=true ##      alternative=false # alternative=true  ## should update-grub lock alternative automagic boot options ## e.g. lockalternative=true ##      lockalternative=false # lockalternative=false  ## additional options use default boot option, not ## alternatives ## e.g. defoptions=vga=791 resume=/dev/hda5 # defoptions=quiet splash vga=799  ## should update-grub lock old automagic boot options ## e.g. lockold=false ##      lockold=true # lockold=false  ## xen hypervisor options use default xen boot option # xenhopt=  ## xen linux kernel options use default xen boot option # xenkopt=console=tty0  ## altoption boot targets option ## multiple altoptions lines allowed ## e.g. altoptions=(extra menu suffix) boot options ##      altoptions=(recovery) single # altoptions=(recovery mode) single  ## controls how many kernels should put menu.lst ## counts first occurence of kernel, not ## alternative kernel options ## e.g. howmany=all ##      howmany=7 # howmany=all  ## specify if running in xen domu or have grub detect automatically ## update-grub ignore non-xen kernels when running in domu , vice versa ## e.g. indomu=detect ##      indomu=true ##      indomu=false # indomu=detect  ## should update-grub create memtest86 boot option ## e.g. memtest86=true ##      memtest86=false # memtest86=true  ## should update-grub adjust value of default booted system ## can true or false # updatedefaultentry=false  ## should update-grub add savedefault default options ## can true or false # savedefault=false  ## ## end default options ##  #title windows #root  title        windows 7 pro x64 root        (hd0,0) savedefault makeactive chainloader +1  # divider separate ubuntu  # windows  title           ubuntu 12.04, kernel 3.2.0-31-generic root            (hd1,0) uuid            c97eee3c-784b-4ce8-a9bf-a80f10378f31 kernel          /boot/vmlinuz-3.2.0-31-generic root=uuid=c97eee3c-784b-4ce8-a9bf-a80f10378f31 ro quiet splash initrd          /boot/initrd.img-3.2.0-31-generic quiet savedefault  title           ubuntu 12.04, kernel 3.2.0-26-generic root            (hd1,0) uuid            c97eee3c-784b-4ce8-a9bf-a80f10378f31 kernel          /boot/vmlinuz-3.2.0-26-generic root=uuid=c97eee3c-784b-4ce8-a9bf-a80f10378f31 ro quiet splash initrd          /boot/initrd.img-3.2.0-26-generic quiet savedefault  title           ubuntu 12.04, kernel 3.2.0-26-generic (recovery mode) uuid            c97eee3c-784b-4ce8-a9bf-a80f10378f31 kernel          /boot/vmlinuz-3.2.0-26-generic root=uuid=c97eee3c-784b-4ce8-a9bf-a80f10378f31 ro  single initrd          /boot/initrd.img-3.2.0-26-generic  title        ubuntu 12.04, memtest86+ root        (hd1,0) uuid        c97eee3c-784b-4ce8-a9bf-a80f10378f31 kernel        /boot/memtest86+.bin quiet  title        ubuntu 12.04, kernel 3.2.0-24-generic root        (hd1,0) uuid        c97eee3c-784b-4ce8-a9bf-a80f10378f31 kernel        /boot/vmlinuz-3.2.0-24-generic root=uuid=c97eee3c-784b-4ce8-a9bf-a80f10378f31 ro quiet splash  initrd        /boot/initrd.img-3.2.0-24-generic quiet savedefault  title        ubuntu 12.04, kernel 3.2.0-24-generic (recovery mode) uuid        c97eee3c-784b-4ce8-a9bf-a80f10378f31 kernel        /boot/vmlinuz-3.2.0-24-generic root=uuid=c97eee3c-784b-4ce8-a9bf-a80f10378f31 ro  single initrd        /boot/initrd.img-3.2.0-24-generic  title        ubuntu 11.10, kernel 2.6.32-33-generic uuid        c97eee3c-784b-4ce8-a9bf-a80f10378f31 kernel        /boot/vmlinuz-2.6.32-33-generic root=uuid=c97eee3c-784b-4ce8-a9bf-a80f10378f31 ro quiet splash  initrd        /boot/initrd.img-2.6.32-33-generic quiet  title        ubuntu 11.10, kernel 2.6.32-33-generic (recovery mode) uuid        c97eee3c-784b-4ce8-a9bf-a80f10378f31 kernel        /boot/vmlinuz-2.6.32-33-generic root=uuid=c97eee3c-784b-4ce8-a9bf-a80f10378f31 ro  single initrd        /boot/initrd.img-2.6.32-33-generic  title        ubuntu 11.10, memtest86+ root        (hd1,0) uuid        c97eee3c-784b-4ce8-a9bf-a80f10378f31 kernel        /boot/memtest86+.bin quiet  ### end debian automagic kernels list &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

another interesting noted chose boot 'ubuntu' grub, see message:

"boot (hd0,0) ext3, <uuid>"

wondering why booting (hd0,0) windows disk , not (hd0,1) linux disk (check menu.lst)???


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Desktop Environments [ubuntu] Cannot boot into Win 7 after reinstalling GRUB: I get "Error 13" (details below)


Ubuntu

Comments

Popular posts from this blog

Could not place because the source rectangle is empty

Thread: Using smartcard reader with vpnc

Adobe Font Folio 7.0 or just 7?