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: GRUB nepracuje spravne [vyřešeno]  (Přečteno 1934 krát)

xixao1

  • Návštěvník
  • Příspěvků: 13
GRUB nepracuje spravne [vyřešeno]
« kdy: 13 Března 2012, 22:08:48 »
kolegove,
nainstaloval jsem ubuntu 11 vedle win7.vse pracuje spravne,akorat se mi v Grubu pri bootovani nenastavi automaticky windiws-ackoli to mam spravne zatrzene ve spravci spousteni.
pokud ve spravci spousteni zatrhnu ubuntu-je oznaceno ubuntu a nabootuje ubuntu.
pokud ve spravci spousteni zatrhnu memory test-je oznaceno memory test a nabootuje memory test.
pokud ve spravci spousteni zatrhnu windows-je oznaceno ubuntu a nabootuje ubuntu :-)

*tato zavada se projevila az po aktuaizaci.po instalaci bylo vse ok.
dik za pomoc.
« Poslední změna: 14 Března 2012, 21:27:45 od daysleeper »

daysleeper

  • Stálý člen
  • **
  • Příspěvků: 1206
Re:GRUB nepracuje spravne
« Odpověď #1 kdy: 13 Března 2012, 22:15:30 »
zatrhni ve spravci spousteni windows
a pak tu dej výpis z boot_info_script

Pravděpodobně je chyba ve Správci spouštění a budeš to muset upravit "ručně".

xixao1

  • Návštěvník
  • Příspěvků: 13
Re:GRUB nepracuje spravne
« Odpověď #2 kdy: 13 Března 2012, 22:45:38 »
dík daysleeper!
Kód: [Vybrat]
                  Boot Info Script 0.60    from 17 May 2011


============================= Boot Info Summary: ===============================

 => No known boot loader is installed in the MBR of /dev/sda.
 => Grub2 (v1.99) is installed in the MBR of /dev/mapper/nvidia_djfehgcf 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.

sda1: __________________________________________________________________________

    File system:       
    Boot sector type:  Unknown
    Boot sector info: 
    Mounting failed:   mount: neznámý systém souborů „“

sda2: __________________________________________________________________________

    File system:       
    Boot sector type:  Unknown
    Boot sector info: 
    Mounting failed:   mount: neznámý systém souborů „“
mount: neznámý systém souborů „“

sda3: __________________________________________________________________________

    File system:       
    Boot sector type:  Unknown
    Boot sector info: 
    Mounting failed:   mount: neznámý systém souborů „“
mount: neznámý systém souborů „“
mount: neznámý systém souborů „“

sda4: __________________________________________________________________________

    File system:       
    Boot sector type:  Unknown
    Boot sector info: 
    Mounting failed:   mount: neznámý systém souborů „“
mount: neznámý systém souborů „“
mount: neznámý systém souborů „“
mount: neznámý systém souborů „“

nvidia_djfehgcf1: ______________________________________________________________

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

nvidia_djfehgcf2: ______________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7
    Boot sector info:   No errors found in the Boot Parameter Block.
    Mounting failed:   mount: neznámý systém souborů „“
mount: neznámý systém souborů „“
mount: neznámý systém souborů „“
mount: neznámý systém souborů „“
Mount is denied because the NTFS volume is already exclusively opened.
The volume may be already mounted, or another software may use it which
could be identified for example by the help of the 'fuser' command.
Mount is denied because the NTFS volume is already exclusively opened.
The volume may be already mounted, or another software may use it which
could be identified for example by the help of the 'fuser' command.

nvidia_djfehgcf3: ______________________________________________________________

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

nvidia_djfehgcf4: ______________________________________________________________

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

nvidia_djfehgcf5: ______________________________________________________________

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

nvidia_djfehgcf6: ______________________________________________________________

    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

============================ 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 Sector    End Sector  # of Sectors  Id System

/dev/sda1     ? 1,936,269,394 3,772,285,809 1,836,016,416   7 NTFS / exFAT / HPFS
/dev/sda2     ? 1,917,848,077 2,462,285,169   544,437,093  73 Unknown
/dev/sda3     ? 1,818,575,915 2,362,751,050   544,175,136  2b SyllableSecure
/dev/sda4     ? 2,844,524,554 2,844,579,527        54,974  61 SpeedStor

/dev/sda1 ends after the last sector of /dev/sda
/dev/sda1 overlaps with /dev/sda2
/dev/sda1 overlaps with /dev/sda3
/dev/sda1 overlaps with /dev/sda4
/dev/sda2 ends after the last sector of /dev/sda
/dev/sda2 overlaps with /dev/sda3
/dev/sda3 ends after the last sector of /dev/sda
/dev/sda4 ends after the last sector of /dev/sda

Drive: nvidia_djfehgcf _____________________________________________________________________

Disk /dev/mapper/nvidia_djfehgcf: 500,1 GB, 500 118 585 344 bajtů
hlav: 255, sektorů na stopu: 63, cylindrů: 60 802, celkem 976 794 112 sektorů
Jednotky = sektory po 1 * 512 = 512 bajtech
Velikost sektoru (logického/fyzického): 512 bajtů / 512 bajtů

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/mapper/nvidia_djfehgcf1   *          2,048       206,847       204,800   7 NTFS / exFAT / HPFS
/dev/mapper/nvidia_djfehgcf2            206,848   102,399,999   102,193,152   7 NTFS / exFAT / HPFS
/dev/mapper/nvidia_djfehgcf3        102,400,000   935,831,551   833,431,552   7 NTFS / exFAT / HPFS
/dev/mapper/nvidia_djfehgcf4        935,831,806   976,792,575    40,960,770   5 Extended
/dev/mapper/nvidia_djfehgcf5        935,831,808   939,737,855     3,906,048  82 Linux swap / Solaris
/dev/mapper/nvidia_djfehgcf6        939,738,112   976,792,575    37,054,464  83 Linux


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/mapper/nvidia_djfehgcf1 D6B8F8B1B8F890EB                       ntfs       System Reserved
/dev/mapper/nvidia_djfehgcf2 DE5C01155C00EA5B                       ntfs       system
/dev/mapper/nvidia_djfehgcf3 BA4C76F24C76A931                       ntfs       sklad
/dev/mapper/nvidia_djfehgcf5 50f56654-52e6-44ee-a414-a14c9bcc2dc1   swap       
/dev/mapper/nvidia_djfehgcf6 805c6a6e-6ceb-435e-8226-ac139add5ba9   ext4       
/dev/sda                                                nvidia_raid_member
/dev/sdb                                                nvidia_raid_member

========================= "ls -R /dev/mapper/" output: =========================

/dev/mapper:
control
nvidia_djfehgcf
nvidia_djfehgcf1
nvidia_djfehgcf2
nvidia_djfehgcf3
nvidia_djfehgcf5
nvidia_djfehgcf6

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

Device           Mount_Point              Type       Options

/dev/dm-3        /media/system            fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/mapper/nvidia_djfehgcf6 /                        ext4       (rw,errors=remount-ro,commit=0)


==================== nvidia_djfehgcf1/grldr embedded menu: =====================

--------------------------------------------------------------------------------
--------------------------------------------------------------------------------

===================== nvidia_djfehgcf6/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="6"
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='(hd2,msdos6)'
search --no-floppy --fs-uuid --set=root 805c6a6e-6ceb-435e-8226-ac139add5ba9
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='(hd2,msdos6)'
search --no-floppy --fs-uuid --set=root 805c6a6e-6ceb-435e-8226-ac139add5ba9
set locale_dir=($root)/boot/grub/locale
set lang=cs_CZ
insmod gettext
if [ "${recordfail}" = 1 ]; then
  set timeout=-1
else
  set timeout=9
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, with Linux 2.6.38-13-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(hd2,msdos6)'
search --no-floppy --fs-uuid --set=root 805c6a6e-6ceb-435e-8226-ac139add5ba9
linux /boot/vmlinuz-2.6.38-13-generic root=UUID=805c6a6e-6ceb-435e-8226-ac139add5ba9 ro   quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-13-generic
}
menuentry 'Ubuntu, with Linux 2.6.38-13-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='(hd2,msdos6)'
search --no-floppy --fs-uuid --set=root 805c6a6e-6ceb-435e-8226-ac139add5ba9
echo 'Loading Linux 2.6.38-13-generic ...'
linux /boot/vmlinuz-2.6.38-13-generic root=UUID=805c6a6e-6ceb-435e-8226-ac139add5ba9 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-13-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with 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='(hd2,msdos6)'
search --no-floppy --fs-uuid --set=root 805c6a6e-6ceb-435e-8226-ac139add5ba9
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=805c6a6e-6ceb-435e-8226-ac139add5ba9 ro   quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-8-generic
}
menuentry 'Ubuntu, with 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='(hd2,msdos6)'
search --no-floppy --fs-uuid --set=root 805c6a6e-6ceb-435e-8226-ac139add5ba9
echo 'Loading Linux 2.6.38-8-generic ...'
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=805c6a6e-6ceb-435e-8226-ac139add5ba9 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='(hd2,msdos6)'
search --no-floppy --fs-uuid --set=root 805c6a6e-6ceb-435e-8226-ac139add5ba9
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd2,msdos6)'
search --no-floppy --fs-uuid --set=root 805c6a6e-6ceb-435e-8226-ac139add5ba9
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/mapper/nvidia_djfehgcf1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd2,msdos1)'
search --no-floppy --fs-uuid --set=root D6B8F8B1B8F890EB
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 ###
--------------------------------------------------------------------------------

========================= nvidia_djfehgcf6/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/mapper/nvidia_djfehgcf6 /               ext4    errors=remount-ro 0       1
/dev/mapper/nvidia_djfehgcf5 none            swap    sw              0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

 462.244770050 = 496.331542528  boot/grub/core.img                             1
 462.287837982 = 496.377786368  boot/grub/grub.cfg                             1
 459.231719971 = 493.096304640  boot/initrd.img-2.6.38-13-generic              2
 450.555175781 = 483.779936256  boot/initrd.img-2.6.38-8-generic               2
 458.657066345 = 492.479275008  boot/vmlinuz-2.6.38-13-generic                 1
 462.276473999 = 496.365584384  boot/vmlinuz-2.6.38-8-generic                  1
 459.231719971 = 493.096304640  initrd.img                                     2
 450.555175781 = 483.779936256  initrd.img.old                                 2
 458.657066345 = 492.479275008  vmlinuz                                        1
 462.276473999 = 496.365584384  vmlinuz.old                                    1

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

Unknown MBR on /dev/sda

00000000  eb 52 90 4e 54 46 53 20  20 20 20 00 02 08 00 00  |.R.NTFS    .....|
00000010  00 00 00 00 00 f8 00 00  21 00 75 00 00 00 00 00  |........!.u.....|
00000020  00 00 00 00 80 00 80 00  6f 59 1c 1d 00 00 00 00  |........oY......|
00000030  00 00 0c 00 00 00 00 00  02 00 00 00 00 00 00 00  |................|
00000040  f6 00 00 00 01 00 00 00  08 39 af 04 68 af 04 e8  |.........9..h...|
00000050  00 00 00 00 fa 33 c0 8e  d0 bc 00 7c fb 68 c0 07  |.....3.....|.h..|
00000060  1f 1e 68 66 00 cb 88 16  0e 00 66 81 3e 03 00 4e  |..hf......f.>..N|
00000070  54 46 53 75 15 b4 41 bb  aa 55 cd 13 72 0c 81 fb  |TFSu..A..U..r...|
00000080  55 aa 75 06 f7 c1 01 00  75 03 e9 dd 00 1e 83 ec  |U.u.....u.......|
00000090  18 68 1a 00 b4 48 8a 16  0e 00 8b f4 16 1f cd 13  |.h...H..........|
000000a0  9f 83 c4 18 9e 58 1f 72  e1 3b 06 0b 00 75 db a3  |.....X.r.;...u..|
000000b0  0f 00 c1 2e 0f 00 04 1e  5a 33 db b9 00 20 2b c8  |........Z3... +.|
000000c0  66 ff 06 11 00 03 16 0f  00 8e c2 ff 06 16 00 e8  |f...............|
000000d0  4b 00 2b c8 77 ef b8 00  bb cd 1a 66 23 c0 75 2d  |K.+.w......f#.u-|
000000e0  66 81 fb 54 43 50 41 75  24 81 f9 02 01 72 1e 16  |f..TCPAu$....r..|
000000f0  68 07 bb 16 68 70 0e 16  68 09 00 66 53 66 53 66  |h...hp..h..fSfSf|
00000100  55 16 16 16 68 b8 01 66  61 0e 07 cd 1a 33 c0 bf  |U...h..fa....3..|
00000110  28 10 b9 d8 0f fc f3 aa  e9 5f 01 90 90 66 60 1e  |(........_...f`.|
00000120  06 66 a1 11 00 66 03 06  1c 00 1e 66 68 00 00 00  |.f...f.....fh...|
00000130  00 66 50 06 53 68 01 00  68 10 00 b4 42 8a 16 0e  |.fP.Sh..h...B...|
00000140  00 16 1f 8b f4 cd 13 66  59 5b 5a 66 59 66 59 1f  |.......fY[ZfYfY.|
00000150  0f 82 16 00 66 ff 06 11  00 03 16 0f 00 8e c2 ff  |....f...........|
00000160  0e 16 00 75 bc 07 1f 66  61 c3 a0 f8 01 e8 09 00  |...u...fa.......|
00000170  a0 fb 01 e8 03 00 f4 eb  fd b4 01 8b f0 ac 3c 00  |..............<.|
00000180  74 09 b4 0e bb 07 00 cd  10 eb f2 c3 0d 0a 41 20  |t.............A |
00000190  64 69 73 6b 20 72 65 61  64 20 65 72 72 6f 72 20  |disk read error |
000001a0  6f 63 63 75 72 72 65 64  00 0d 0a 42 4f 4f 54 4d  |occurred...BOOTM|
000001b0  47 52 20 69 73 20 6d 69  73 73 69 6e 67 00 0d 0a  |GR is missing...|
000001c0  42 4f 07 54 4d 47 52 20  69 73 20 63 6f 6d 70 72  |BO.TMGR is compr|
000001d0  65 73 73 65 64 00 0d 0a  50 72 65 73 73 20 43 74  |essed...Press Ct|
000001e0  72 6c 2b 41 6c 74 2b 44  65 6c 20 74 6f 20 72 65  |rl+Alt+Del to re|
000001f0  73 74 61 72 74 0d 0a 00  8c a9 be d6 00 00 55 aa  |start.........U.|
00000200

Unknown BootLoader on sda1


Unknown BootLoader on sda2


Unknown BootLoader on sda3


Unknown BootLoader on sda4


Unknown BootLoader on nvidia_djfehgcf4



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

unlzma: Decoder error
hexdump: /dev/sda1: Adresář nebo soubor neexistuje
hexdump: /dev/sda1: Adresář nebo soubor neexistuje
hexdump: /dev/sda2: Adresář nebo soubor neexistuje
hexdump: /dev/sda2: Adresář nebo soubor neexistuje
hexdump: /dev/sda3: Adresář nebo soubor neexistuje
hexdump: /dev/sda3: Adresář nebo soubor neexistuje
hexdump: /dev/sda4: Adresář nebo soubor neexistuje
hexdump: /dev/sda4: Adresář nebo soubor neexistuje
hexdump: /dev/mapper/nvidia_djfehgcf4: Adresář nebo soubor neexistuje
hexdump: /dev/mapper/nvidia_djfehgcf4: Adresář nebo soubor neexistuje

daysleeper

  • Stálý člen
  • **
  • Příspěvků: 1206
Re:GRUB nepracuje spravne
« Odpověď #3 kdy: 13 Března 2012, 23:01:28 »
Podle návodu na wiki (pro Grub2) si oprav údaj v souboru /etc/default/grub.
Kód: [Vybrat]
GRUB_DEFAULT=6
na
Kód: [Vybrat]
GRUB_DEFAULT=5
pak
Kód: [Vybrat]
sudo update-grub
a zkus restart počítače.

Problém je asi ten, že Správce spouštění nebyl ještě aktualizován na nejnovější Grub, který používá submenus.
http://ubuntuforums.org/showthread.php?p=10720316

xixao1

  • Návštěvník
  • Příspěvků: 13
Re:GRUB nepracuje spravne
« Odpověď #4 kdy: 14 Března 2012, 21:22:30 »
daysleeper,dik za pomoc.
resil jsem to tak, ze jsem instaloval grub customizer.
ted uz je to v richtiku!
:-)
xi

 

Provoz zaštiťuje spolek OpenAlt.