Prosíme přihlašte se nebo zaregistrujte.

Přihlašte se svým uživatelským jménem a heslem.
Vaše pomoc je stále potřeba!

Autor Téma: win 7 a GRUB2  (Přečteno 1994 krát)

klajfira

  • Návštěvník
  • Příspěvků: 5
win 7 a GRUB2
« kdy: 24 Února 2011, 15:37:49 »
Zdravíčko,

potřebovala bych se zeptat ohledně GRUB2. Jelikož nepoužívám Ubuntu, tak jsem z toho nějak  mimo i po přečtení různých dokumentací. Jde hlavně o to, že na PC kde byl původní  systém W7 jsem z flash disku nainstalovala Ubuntu  10.10. A po instalaci mi nenajede vůbec Grub nabídka tzn. že už se do winu nemohu dostat. Když jsem zkoušela hrabat se v grub.cfg podle dokumentace na webu tak mi to celé spadlo a musela jsem přeinstalovat grub na novo. Neví nědko jak zprovoznit grub nabídku nebo případně jak přeinstalovat zpět grub2 na GRUB?

děkuji za reakce :-)

daysleeper

  • Stálý člen
  • **
  • Příspěvků: 1206
Re: win 7 a GRUB2
« Odpověď #1 kdy: 24 Února 2011, 15:46:21 »

klajfira

  • Návštěvník
  • Příspěvků: 5
Re: win 7 a GRUB2
« Odpověď #2 kdy: 24 Února 2011, 17:18:02 »
tady je ten vypis:
Kód: [Vybrat]
============================= Boot Info Summary: ==============================

 => Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
    partition #1 for /boot/grub.
 => Syslinux is installed in the MBR of /dev/sdb

sda1: _________________________________________________________________________

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

sda2: _________________________________________________________________________

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

sda3: _________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System: 
    Boot files/dirs:   /wubildr.mbr /wubildr

sda4: _________________________________________________________________________

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

sda5: _________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7
    Boot sector info:  According to the info in the boot sector, sda5 starts
                       at sector 63.
    Operating System:  Windows 7
    Boot files/dirs:   /Windows/System32/winload.exe /wubildr.mbr /wubildr

sda6: _________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7
    Boot sector info:  According to the info in the boot sector, sda6 starts
                       at sector 63.
    Operating System: 
    Boot files/dirs:   /ubuntu/winboot/wubildr.mbr /ubuntu/winboot/wubildr
                       /ubuntu/disks/root.disk /ubuntu/disks/swap.disk

sda6/Wubi: _________________________________________________________________________

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

sdb1: _________________________________________________________________________

    File system:       vfat
    Boot sector type:  Fat32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System: 
    Boot files/dirs:   

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

Drive: sda ___________________ _____________________________________________________

Disk /dev/sda: 250,1 GB, 250 059 350 016 bajtů
hlav: 255, sektorů na stopu: 63, cylindrů: 30 401, celkem 488 397 168 sektorů
Jednotky = sektory po 1 * 512 = 512 bajtech
Velikost sektoru (logického/fyzického): 512 bajtů / 512 bajtů

Partition  Boot         Start           End          Size  Id System

/dev/sda1    *          2,048    19,531,775    19,529,728  83 Linux
/dev/sda2          19,531,776    25,370,623     5,838,848  82 Linux swap / Solaris
/dev/sda3    *     25,372,672   414,493,064   389,120,393   7 HPFS/NTFS
/dev/sda4         414,493,126   488,392,064    73,898,939   f W95 Ext d (LBA)
/dev/sda5         414,493,128   455,442,749    40,949,622   7 HPFS/NTFS
/dev/sda6         455,442,813   488,392,064    32,949,252   7 HPFS/NTFS


Drive: sdb ___________________ _____________________________________________________

Disk /dev/sdb: 1 031 MB, 1 031 798 272 bajtů
hlav: 255, sektorů na stopu: 63, cylindrů: 125, celkem 2 015 231 sektorů
Jednotky = sektory po 1 * 512 = 512 bajtech
Velikost sektoru (logického/fyzického): 512 bajtů / 512 bajtů

Partition  Boot         Start           End          Size  Id System

/dev/sdb1    *             63     2,015,230     2,015,168   b W95 FAT32


blkid -c /dev/null: ____________________________________________________________

Device           UUID                                   TYPE       LABEL                         

/dev/loop0       b64d8e7b-4e16-4480-a454-0e023f670bdb   ext4                                     
/dev/sda: PTTYPE="dos"
/dev/sda1        f4324fc0-a884-4fe4-b26c-0302a2fab702   ext4                                     
/dev/sda2        89282720-4036-4bf2-848a-8fc174deeb62   swap                                     
/dev/sda3        B870047A7004421C                       ntfs       Data                         
/dev/sda4: PTTYPE="dos"
/dev/sda5        3E04CC1504CBCDD9                       ntfs       Windows                       
/dev/sda6        4C0CA1870CA16CA0                       ntfs       Linux                         
/dev/sdb: PTTYPE="dos"
/dev/sdb1        0C27-01E5                              vfat                                     

============================ "mount | grep ^/dev  output: ===========================

Device           Mount_Point              Type       Options

/dev/sda1        /                        ext4       (rw,errors=remount-ro)
/dev/sdb1        /media/0C27-01E5         vfat       (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,flush)


=========================== sda1/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/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
  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
}
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set f4324fc0-a884-4fe4-b26c-0302a2fab702
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=1024x768
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set f4324fc0-a884-4fe4-b26c-0302a2fab702
set locale_dir=($root)/boot/grub/locale
set lang=cs
insmod gettext
if [ ${recordfail} = 1 ]; then
  set timeout=-1
else
  set timeout=0
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
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-28-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set f4324fc0-a884-4fe4-b26c-0302a2fab702
linux /boot/vmlinuz-2.6.32-28-generic root=UUID=f4324fc0-a884-4fe4-b26c-0302a2fab702 ro  splash vga=771  quiet splash
initrd /boot/initrd.img-2.6.32-28-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-28-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set f4324fc0-a884-4fe4-b26c-0302a2fab702
echo 'Loading Linux 2.6.32-28-generic ...'
linux /boot/vmlinuz-2.6.32-28-generic root=UUID=f4324fc0-a884-4fe4-b26c-0302a2fab702 ro single  splash vga=771
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-28-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set f4324fc0-a884-4fe4-b26c-0302a2fab702
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=f4324fc0-a884-4fe4-b26c-0302a2fab702 ro  splash vga=771  quiet splash
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set f4324fc0-a884-4fe4-b26c-0302a2fab702
echo 'Loading Linux 2.6.32-24-generic ...'
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=f4324fc0-a884-4fe4-b26c-0302a2fab702 ro single  splash vga=771
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-24-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set f4324fc0-a884-4fe4-b26c-0302a2fab702
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set f4324fc0-a884-4fe4-b26c-0302a2fab702
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -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 ###

=============================== sda1/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
/dev/sda1       /               ext4    errors=remount-ro 0       1
/dev/sda2       none            swap    sw              0       0

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


   2.4GB: boot/grub/core.img
   2.6GB: boot/grub/grub.cfg
   2.7GB: boot/initrd.img-2.6.32-24-generic
   4.3GB: boot/initrd.img-2.6.32-28-generic
   2.6GB: boot/vmlinuz-2.6.32-24-generic
   2.4GB: boot/vmlinuz-2.6.32-28-generic
   4.3GB: initrd.img
   2.7GB: initrd.img.old
   2.4GB: vmlinuz
   2.6GB: vmlinuz.old

======================== sda6/Wubi/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 part_msdos
insmod ntfs
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 4c0ca1870ca16ca0
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=1024x768
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ntfs
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 4c0ca1870ca16ca0
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
set locale_dir=($root)/boot/grub/locale
set lang=cs
insmod gettext
if [ "${recordfail}" = 1 ]; then
  set timeout=-1
else
  set timeout=5
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
### 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.35-25-generic" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 4c0ca1870ca16ca0
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.35-25-generic root=/dev/sda6 loop=/ubuntu/disks/root.disk ro   quiet splash
initrd /boot/initrd.img-2.6.35-25-generic
}
menuentry "Ubuntu, Linux 2.6.35-25-generic (recovery mode)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 4c0ca1870ca16ca0
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.35-25-generic root=/dev/sda6 loop=/ubuntu/disks/root.disk ro single
initrd /boot/initrd.img-2.6.35-25-generic
}
menuentry "Ubuntu, Linux 2.6.35-22-generic" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 4c0ca1870ca16ca0
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.35-22-generic root=/dev/sda6 loop=/ubuntu/disks/root.disk ro   quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry "Ubuntu, Linux 2.6.35-22-generic (recovery mode)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 4c0ca1870ca16ca0
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.35-22-generic root=/dev/sda6 loop=/ubuntu/disks/root.disk ro single
initrd /boot/initrd.img-2.6.35-22-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 "Windows Vista (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set c67a933e7a9329e7
chainloader +1
}
menuentry "Windows 7 (loader) (on /dev/sda2)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 8c60947860946b2a
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/Wubi/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
/host/ubuntu/disks/root.disk /               ext4    loop,errors=remount-ro 0       1
/host/ubuntu/disks/swap.disk none            swap    loop,sw         0       0

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


   4.7GB: boot/grub/core.img
   1.1GB: boot/grub/grub.cfg
   3.6GB: boot/initrd.img-2.6.35-22-generic
   6.1GB: boot/initrd.img-2.6.35-25-generic
   2.0GB: boot/vmlinuz-2.6.35-22-generic
   5.2GB: boot/vmlinuz-2.6.35-25-generic
   6.1GB: initrd.img
   3.6GB: initrd.img.old
   5.2GB: vmlinuz
   2.0GB: vmlinuz.old

daysleeper

  • Stálý člen
  • **
  • Příspěvků: 1206
Re: win 7 a GRUB2
« Odpověď #3 kdy: 24 Února 2011, 20:11:21 »
kdyz pri zapnuti pocitaci zmacknes SHIFT, objevi se ti nabidka Grubu?
windows, ktere chces bootovat, mas na oddile oznacenem cislem 3, nebo 5, nebo 6?

klajfira

  • Návštěvník
  • Příspěvků: 5
Re: win 7 a GRUB2
« Odpověď #4 kdy: 25 Února 2011, 14:02:20 »
A jak dostanu windows do nabídky grubu?

klajfira

  • Návštěvník
  • Příspěvků: 5
Re: win 7 a GRUB2
« Odpověď #5 kdy: 27 Února 2011, 02:20:53 »
Dá se teda nějak upravit přímo ten .cfg skript nebo něco aby se mi v té nabídce objevil i windows?

Miko10

  • Stálý člen
  • **
  • Příspěvků: 642
Re: win 7 a GRUB2
« Odpověď #6 kdy: 27 Února 2011, 15:11:12 »
Pridanie Windows 7 do GRUBU mi našlo ako druhý odkaz na googli....
http://erickoo.wordpress.com/2009/06/14/how-to-add-vista-partition-to-grub-2-ubuntu-9-10-karmic-koala/
Fujitsu-Siemens V6535, CD T3200, 3GB RAM, 320 GB HDD, Wifi Atheros 242x, Ubuntu 10.10

klajfira

  • Návštěvník
  • Příspěvků: 5
Re: win 7 a GRUB2
« Odpověď #7 kdy: 27 Února 2011, 17:33:00 »
Hmm po tom co jsem vytvořil vše přesně, tak jak je to na to návodů, grub nenajede vůbec ani po stisku shift.... :-(

Miko10

  • Stálý člen
  • **
  • Příspěvků: 642
Re: win 7 a GRUB2
« Odpověď #8 kdy: 01 Března 2011, 16:05:05 »
To je divné, ja som to podľa toho robil pred piatimi dňami.
Fujitsu-Siemens V6535, CD T3200, 3GB RAM, 320 GB HDD, Wifi Atheros 242x, Ubuntu 10.10

jAster_BA

  • Závislák
  • ***
  • Příspěvků: 4165
  • FEI STU stole my soul, don't have time anymore :/
Re: win 7 a GRUB2
« Odpověď #9 kdy: 01 Března 2011, 16:08:11 »
Mám doma všelijaké staré haraburdy ale najviac ma *censored*tie novšie s grafikou ATI/AMD... registered as user #520570

Linuxové počítadlo Automatická kompilácia jadra

 

Provoz zaštiťuje spolek OpenAlt.