Kirjoittaja Aihe: [ratkaistu] Grub ei käynnistä windows 7:aa :(  (Luettu 2325 kertaa)

paahde

  • Käyttäjä
  • Viestejä: 5
    • Profiili
Heip!

Nyt on turvauduttava tämän foorumin apuun, kun en löydä apua vaikka kuinka luen internettiä tai hakkaan päätä seinään.

Elikkäs koneessa oli pohjalla windows 7. Asentelin sitten Ubuntun rinnalle. Häikkää oli Grubin kanssa, mutta lopun kaiken Grub toimii ja Ubuntu käynnistyy sillä hyvin ja kehrää kuin kissa. Grubissa on rivit Windows 7:lle, mutta se ei käynnisty (jää tyhjään ruutuun) ja Grubin windows 7 korjaus riviltä korjaus lähtee kyllä päälle, mutta se mitään korjaa vaan jää jumittaan (HP:n korjausohjelma).

Alla Ubuntulla tekemäni Boot info scriptin listaus koneeni sielunelämästä. Olen varsin aloittelija, joten siksi kysyn, että eikö mun windows olekin sda2:lla, mutta tuon listauksen mukaan grub lähtee käynnistämään Windowsia sda1:ltä. MitämiksiHäh! Kertokaa onko grubissa nyt jotain vikaa, vai etsiikö grub sittenkin windowsia oikeasta paikasta, mutta windows 7 on itsessään vaan ihan sökönä. En tiedä mitä tehdä! Kiitos avusta etukäteen, tuossa se listaus:

                  Boot Info Script 0.60    from 17 May 2011


============================= 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 (,msdos6)/boot/grub on this drive.
 => Windows is installed in the MBR of /dev/sdb.

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Grub2 (v1.99)
    Boot sector info:   Grub2 (v1.99) is installed in the boot sector of sda1
                       and looks at sector 1779402328 of the same hard drive
                       for core.img, but core.img can not be found at this
                       location. No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /bootmgr /Boot/BCD

sda2: __________________________________________________________________________

    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:        /Windows/System32/winload.exe

sda3: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  -
    Boot sector info:  

sda5: __________________________________________________________________________

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

sda6: __________________________________________________________________________

    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

sda4: __________________________________________________________________________

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

sdb1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows XP
    Boot sector info:   No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

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

Drive: sda _____________________________________________________________________

Levy /dev/sda: 1000.2 Gt, 1000204886016 tavua
255 päätä, 63 sektoria/ura, 121601 sylinteriä, yhteensä 1953525168 sektoria
Yksiköt = 1 * 512 = 512 -tavuiset sektorit
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1    *          2,048       206,847       204,800   7 NTFS / exFAT / HPFS
/dev/sda2             206,848   856,044,150   855,837,303   7 NTFS / exFAT / HPFS
/dev/sda3         856,045,566 1,055,354,879   199,309,314   5 Extended
/dev/sda5         856,045,568   860,043,263     3,997,696  82 Linux swap / Solaris
/dev/sda6         860,045,312 1,055,354,879   195,309,568  83 Linux
/dev/sda4       1,922,717,696 1,953,521,663    30,803,968   7 NTFS / exFAT / HPFS


Drive: sdb _____________________________________________________________________

Levy /dev/sdb: 999.5 Gt, 999501594624 tavua
255 päätä, 63 sektoria/ura, 121515 sylinteriä, yhteensä 1952151552 sektoria
Yksiköt = 1 * 512 = 512 -tavuiset sektorit
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdb1               2,048 1,952,151,551 1,952,149,504   7 NTFS / exFAT / HPFS


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda1        F2909BF6909BC011                       ntfs       SYSTEM
/dev/sda2        467AD66F7AD65B6F                       ntfs       OS
/dev/sda4        2262935062932795                       ntfs       HP_RECOVERY
/dev/sda5        61766e3f-16d4-4c41-ba0b-ddd1ce0d64f1   swap      
/dev/sda6        aa93fecd-80cd-45a8-af9f-574360c1db1e   ext4      
/dev/sdb1        12C23AD8C23AC031                       ntfs       My Book

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

Device           Mount_Point              Type       Options

/dev/sda1        /media/SYSTEM            fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/sda2        /media/OS                fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/sda6        /                        ext4       (rw,errors=remount-ro,commit=0)
/dev/sdb1        /media/My Book           fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/sr1         /media/WD SmartWare      udf        (ro,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,iocharset=utf8,umask=0077,dmode=0500)


=========================== sda6/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='(/dev/sda,msdos6)'
search --no-floppy --fs-uuid --set=root aa93fecd-80cd-45a8-af9f-574360c1db1e
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos6)'
search --no-floppy --fs-uuid --set=root aa93fecd-80cd-45a8-af9f-574360c1db1e
set locale_dir=($root)/boot/grub/locale
set lang=fi_FI
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
if background_color 44,0,30; then
  clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
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, Linux-ydin 2.6.38-12-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,msdos6)'
   search --no-floppy --fs-uuid --set=root aa93fecd-80cd-45a8-af9f-574360c1db1e
   linux   /boot/vmlinuz-2.6.38-12-generic root=UUID=aa93fecd-80cd-45a8-af9f-574360c1db1e ro   quiet splash vt.handoff=7
   initrd   /boot/initrd.img-2.6.38-12-generic
}
menuentry 'Ubuntu, Linux-ydin 2.6.38-12-generic (toipumistila)' --class ubuntu --class gnu-linux --class gnu --class os {
   recordfail
   set gfxpayload=$linux_gfx_mode
   insmod part_msdos
   insmod ext2
   set root='(/dev/sda,msdos6)'
   search --no-floppy --fs-uuid --set=root aa93fecd-80cd-45a8-af9f-574360c1db1e
   echo   'Loading Linux 2.6.38-12-generic ...'
   linux   /boot/vmlinuz-2.6.38-12-generic root=UUID=aa93fecd-80cd-45a8-af9f-574360c1db1e ro single
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initrd.img-2.6.38-12-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, Linux-ydin 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,msdos6)'
   search --no-floppy --fs-uuid --set=root aa93fecd-80cd-45a8-af9f-574360c1db1e
   linux   /boot/vmlinuz-2.6.38-8-generic root=UUID=aa93fecd-80cd-45a8-af9f-574360c1db1e ro   quiet splash vt.handoff=7
   initrd   /boot/initrd.img-2.6.38-8-generic
}
menuentry 'Ubuntu, Linux-ydin 2.6.38-8-generic (toipumistila)' --class ubuntu --class gnu-linux --class gnu --class os {
   recordfail
   set gfxpayload=$linux_gfx_mode
   insmod part_msdos
   insmod ext2
   set root='(/dev/sda,msdos6)'
   search --no-floppy --fs-uuid --set=root aa93fecd-80cd-45a8-af9f-574360c1db1e
   echo   'Loading Linux 2.6.38-8-generic ...'
   linux   /boot/vmlinuz-2.6.38-8-generic root=UUID=aa93fecd-80cd-45a8-af9f-574360c1db1e 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,msdos6)'
   search --no-floppy --fs-uuid --set=root aa93fecd-80cd-45a8-af9f-574360c1db1e
   linux16   /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
   insmod part_msdos
   insmod ext2
   set root='(/dev/sda,msdos6)'
   search --no-floppy --fs-uuid --set=root aa93fecd-80cd-45a8-af9f-574360c1db1e
   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/sda1)" --class windows --class os {
   insmod part_msdos
   insmod ntfs
   set root='(/dev/sda,msdos1)'
   search --no-floppy --fs-uuid --set=root F2909BF6909BC011
   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 2262935062932795
   drivemap -s (hd0) ${root}
   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 ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=============================== sda6/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/sda6 during installation
UUID=aa93fecd-80cd-45a8-af9f-574360c1db1e /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=61766e3f-16d4-4c41-ba0b-ddd1ce0d64f1 none            swap    sw              0       0
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

 466.242462158 = 500.624031744  boot/grub/core.img                             1
 444.476356506 = 477.252853760  boot/grub/grub.cfg                             1
 411.127391815 = 441.444675584  boot/initrd.img-2.6.38-12-generic              2
 412.429687500 = 442.843004928  boot/initrd.img-2.6.38-8-generic               2
 412.582344055 = 443.006918656  boot/vmlinuz-2.6.38-12-generic                 1
 466.234378815 = 500.615352320  boot/vmlinuz-2.6.38-8-generic                  1
 411.127391815 = 441.444675584  initrd.img                                     2
 412.429687500 = 442.843004928  initrd.img.old                                 2
 412.582344055 = 443.006918656  vmlinuz                                        1
 466.234378815 = 500.615352320  vmlinuz.old                                    1

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

sdc

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

unlzma: Decoder error
« Viimeksi muokattu: 07.01.12 - klo:10.57 kirjoittanut paahde »

Tomin

  • Palvelimen ylläpitäjä
  • Käyttäjä / moderaattori+
  • Viestejä: 11440
    • Profiili
    • Tomin kotisivut
Vs: Grub ei käynnistä windows 7:aa :(
« Vastaus #1 : 20.11.11 - klo:22.17 »
Kummaltahan sen Windowsin pitäisi käynnistyä sda1:ltä vai sda2:lta?

Ensin mainitulle (sda1) olet jotenkin onnistunut asentamaan ylimääräisen grubin, joten se pitäisi ylikirjoittaa Windowsin omalla. Tämän kyllä pitäisi onnistua sieltä korjaustyökalusta, jostain syystä se vain tahtoo kestää aika kauan (käynnistyskin vie pitkään ja saattaa jäädä mustaan ruutuun). Tosin tämä kokemus on Asuksen Vista läppäristä.
Ilmeisesti seuraavan ohjeen pitäisi olla pätevä (en voi testata):
Lainaus
Windows Vistan tai 7:n käynnistä kone asennuslevyltä, valitse näppäimmistösi ja kielesi ja klikkaa Next. Nyt valise Repair your computer. Valitse käyttöjärjestelmä, jonka haluat korjata. Valitse komentokehote (command prompt) ja komenna:
Koodia: [Valitse]
Bootrec.exe /FixBoot
Asennuslevyn sijaan sen palautusosion pitäisi käydä tähän tarkoitukseen.

Sen sijaan sda2:lla on kyllä käynnistyslohko Windowsin käynnistylataajalla, mutta siellä ei näytä olevan noita tarvittavia tiedostoja ja ilmeisesti sen takia se ei myöskään näy Grubin listassa.
Automaattinen allekirjoitus:
Lisäisitkö [RATKAISTU] ketjun ensimmäisen viestin aiheeseen ongelman ratkettua, kiitos.

JarTak

  • Käyttäjä
  • Viestejä: 333
    • Profiili
Vs: Grub ei käynnistä windows 7:aa :(
« Vastaus #2 : 21.11.11 - klo:00.31 »
Itse käytän dual boottina Vistaa ja Ubuntua. Jos käynnistän Vistan, niin Grubissa pitää valita Vista recovery mode. Sama pätee toisin päin. Täältä foorumilta olen lukenut, että Grubilla on vikana tai ominaisuutena näyttää aloitusvalikko väärin. Tuosta ei kannata olla huolissaan.

Kaikille Grub ongelmista kärsiville olen vinkkaillut aikoinaan aloittamaani ketjua, joka löytyy täältä: http://forum.ubuntu-fi.org/index.php?topic=40161.0

En tiedä onko siitä apua sinulle, mutta ainahan voi kokeilla.

paahde

  • Käyttäjä
  • Viestejä: 5
    • Profiili
Vs: Grub ei käynnistä windows 7:aa :(
« Vastaus #3 : 07.01.12 - klo:10.55 »
Hei!

Sain Tomin ohjeen mukaisesti (cp = Bootrec.exe /FixBoot) käynnistyksen fiksattua kuntoon! Jesh! Tomin vastaus tuli puolessa tunnissa, sen sijaan mulla meni puol toista kuukautta tuon lyhyen komennon syöttämiseen koneeseen, sillä win 7:n korjauslevy oli hukassa. Mutta kiitos siis avusta! Nyt pääsee taas tuunaamaan vehjettä, voisin testata ainakin vielä yhden Linuxin asentamista nykyisten käyttisten rinnalle - tuun sit tänne foorumille taas nyyhkyttään kohta, kun saan grubin mäsäks...