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: Ubuntu 10.04 LTS problém s GRUBem  (Přečteno 908 krát)

Mousty

  • Návštěvník
  • Příspěvků: 41
Ubuntu 10.04 LTS problém s GRUBem
« kdy: 09 Listopadu 2011, 22:55:09 »
Hojte, sice jsem to už řešil v minulosti, ale teď mi to vůbec nepomáhá, tak se obracím na vás.

Mám rozdělený disk na:

1) NTFS - Win XP
2) EXT4 /
3) SWAP

Přeinstaloval jsem Ubuntu 10.04 LTS, vše proběhlo OK, ale po instalaci se nemůžu dostat na GRUB... Automaticky se mi načtou Win XP... Zkoušel jsem řešit situaci pomocí Live CD a obnova GRUB2, ale bez úspěchu... Při obnově mi vše projde v pohodě bez chyb, ale když restartuju, tak se dostanu zase jen do Win nebo Live CD... Ale nenabídne mi to zavaděč...

Pls help...

Mousty

  • Návštěvník
  • Příspěvků: 41
Re:Ubuntu 10.04 LTS problém s GRUBem
« Odpověď #1 kdy: 09 Listopadu 2011, 22:59:32 »
Je divné, že Win i když jsem pokaždé instaloval jako první a po nich teprve Ubuntu, tak se mi spouštěč zobrazoval automaticky, ale teď vůbec... Postup byl stejný, nejdříve Win XP, pak Ubuntu... Ale dostanu se jen na Win.

daysleeper

  • Stálý člen
  • **
  • Příspěvků: 1206
Re:Ubuntu 10.04 LTS problém s GRUBem
« Odpověď #2 kdy: 09 Listopadu 2011, 23:07:16 »
Prosím výpis z boot_info_script.

Mousty

  • Návštěvník
  • Příspěvků: 41
Re:Ubuntu 10.04 LTS problém s GRUBem
« Odpověď #3 kdy: 09 Listopadu 2011, 23:16:49 »
Kód: [Vybrat]
                  Boot Info Script 0.60    from 17 May 2011


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

 => Windows is installed in the MBR of /dev/sda.
 => Grub2 (v1.97-1.98) is installed in the MBR of /dev/sdb and looks at sector
    1 of the same hard drive for core.img. core.img is at this location and
    looks in partition 5 for /boot/grub.

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows XP
    Boot sector info:   No errors found in the Boot Parameter Block.
    Operating System: 
    Boot files:        /boot.ini /ntldr /NTDETECT.COM

sdb1: __________________________________________________________________________

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

sdb2: __________________________________________________________________________

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

sdb5: __________________________________________________________________________

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

sdb6: __________________________________________________________________________

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

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

Drive: sda _____________________________________________________________________

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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   625,121,279   625,121,217   7 NTFS / exFAT / HPFS


Drive: sdb _____________________________________________________________________

Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 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/sdb1    *             63   112,647,779   112,647,717   7 NTFS / exFAT / HPFS
/dev/sdb2         112,648,190   156,299,263    43,651,074   5 Extended
/dev/sdb5         112,648,192   153,663,487    41,015,296  83 Linux
/dev/sdb6         153,665,536   156,299,263     2,633,728  82 Linux swap / Solaris


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/loop0                                              squashfs   
/dev/sda1        82C045A6C045A171                       ntfs       Data
/dev/sdb1        06F8EE8AF8EE7779                       ntfs       Sytem
/dev/sdb5        6abe4570-8069-4fde-acc7-cb08c24582c5   ext4       
/dev/sdb6        f9821757-2d9d-44f7-8125-f70fa626a3e3   swap       

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

Device           Mount_Point              Type       Options

/dev/loop0       /rofs                    squashfs   (ro,noatime)
/dev/sr0         /cdrom                   iso9660    (ro,noatime)


================================ sda1/boot.ini: ================================

--------------------------------------------------------------------------------
[boot loader]

timeout=30

default=multi(0)disk(0)rdisk(1)partition(1)\WINDOWS

[operating systems]

multi(0)disk(0)rdisk(1)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /NoExecute=OptIn

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

=========================== sdb5/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,5)'
search --no-floppy --fs-uuid --set 6abe4570-8069-4fde-acc7-cb08c24582c5
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  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,5)'
search --no-floppy --fs-uuid --set 6abe4570-8069-4fde-acc7-cb08c24582c5
set locale_dir=($root)/boot/grub/locale
set lang=cs
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
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-35-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 6abe4570-8069-4fde-acc7-cb08c24582c5
linux /boot/vmlinuz-2.6.32-35-generic-pae root=UUID=6abe4570-8069-4fde-acc7-cb08c24582c5 ro   quiet splash
initrd /boot/initrd.img-2.6.32-35-generic-pae
}
menuentry 'Ubuntu, with Linux 2.6.32-35-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 6abe4570-8069-4fde-acc7-cb08c24582c5
echo 'Loading Linux 2.6.32-35-generic-pae ...'
linux /boot/vmlinuz-2.6.32-35-generic-pae root=UUID=6abe4570-8069-4fde-acc7-cb08c24582c5 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-35-generic-pae
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 6abe4570-8069-4fde-acc7-cb08c24582c5
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 6abe4570-8069-4fde-acc7-cb08c24582c5
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sdb1)" {
insmod ntfs
set root='(hd1,1)'
search --no-floppy --fs-uuid --set 82c045a6c045a171
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 ###
--------------------------------------------------------------------------------

=============================== sdb5/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/sda5 during installation
UUID=6abe4570-8069-4fde-acc7-cb08c24582c5 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda6 during installation
UUID=f9821757-2d9d-44f7-8125-f70fa626a3e3 none            swap    sw              0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

  55.841255188 = 59.959091200   boot/grub/core.img                             1
  56.007514954 = 60.137611264   boot/grub/grub.cfg                             1
  54.503505707 = 58.522693632   boot/initrd.img-2.6.32-35-generic-pae          2
  56.300060272 = 60.451729408   boot/vmlinuz-2.6.32-35-generic-pae             1
  54.503505707 = 58.522693632   initrd.img                                     2
  56.300060272 = 60.451729408   vmlinuz                                        1

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

Unknown BootLoader on sdb2

00000000  fd ff 48 8b 93 a0 01 00  00 44 8b 5c 24 10 44 8b  |..H......D.\$.D.|
00000010  54 24 18 c7 42 2c 00 00  00 00 41 83 fc 02 74 49  |T$..B,....A...tI|
00000020  41 8b 7e 18 48 8d 15 95  a2 0a 00 4c 8d 0d 9c a4  |A.~.H......L....|
00000030  0a 00 41 b8 02 00 00 00  44 89 e1 be 05 00 00 00  |..A.....D.......|
00000040  31 c0 44 89 54 24 18 44  89 5c 24 10 c7 04 24 2a  |1.D.T$.D.\$...$*|
00000050  01 00 00 e8 e8 f8 fd ff  48 8b 93 a0 01 00 00 44  |........H......D|
00000060  8b 5c 24 10 44 8b 54 24  18 48 8b 42 20 42 8d 0c  |.\$.D.T$.H.B B..|
00000070  a5 00 00 00 00 01 48 08  e9 b1 fd ff ff 0f 1f 00  |......H.........|
00000080  8b 42 2c 83 c0 01 83 f8  01 89 42 2c 74 41 48 8b  |.B,.......B,tAH.|
00000090  4a 30 44 8b 42 38 48 8d  15 d3 a1 0a 00 41 8b 7e  |J0D.B8H......A.~|
000000a0  18 be 05 00 00 00 31 c0  44 89 54 24 18 44 89 5c  |......1.D.T$.D.\|
000000b0  24 10 e8 89 f8 fd ff 48  8b 93 a0 01 00 00 44 8b  |$......H......D.|
000000c0  5c 24 10 44 8b 54 24 18  c7 42 2c 01 00 00 00 48  |\$.D.T$..B,....H|
000000d0  8d 05 f8 a3 0a 00 c7 42  38 2a 01 00 00 48 89 42  |.......B8*...H.B|
000000e0  30 48 8b 42 20 48 85 c0  0f 84 45 04 00 00 44 8b  |0H.B H....E...D.|
000000f0  78 08 41 8d 57 07 3b 50  04 0f 8d 51 03 00 00 4d  |x.A.W.;P...Q...M|
00000100  63 ff 45 31 e4 4c 03 78  10 e9 8b fc ff ff 66 90  |c.E1.L.x......f.|
00000110  4c 89 f7 48 89 54 24 20  44 89 5c 24 10 e8 7e 53  |L..H.T$ D.\$..~S|
00000120  fe ff 48 8b 54 24 20 44  8b 5c 24 10 48 89 42 20  |..H.T$ D.\$.H.B |
00000130  48 8b 83 a0 01 00 00 c7  40 28 00 00 00 00 48 8b  |H.......@(....H.|
00000140  40 20 44 8b 78 08 e9 d8  fd ff ff 48 8b bb 48 0c  |@ D.x......H..H.|
00000150  00 00 48 85 ff 0f 84 b5  03 00 00 8b 47 08 48 8b  |..H.........G.H.|
00000160  17 89 c1 83 c0 01 c7 04  8a c6 13 00 00 44 8b 47  |.............D.G|
00000170  10 89 47 08 45 85 c0 74  04 83 47 14 01 48 85 ff  |..G.E..t..G..H..|
00000180  0f 84 99 03 00 00 8b 47  08 48 8b 17 89 c1 83 c0  |.......G.H......|
00000190  01 c7 04 8a 03 00 00 00  8b 77 10 89 47 08 85 f6  |.........w..G...|
000001a0  0f 84 63 fb ff ff e9 5a  fb ff ff 48 8b bb 48 0c  |..c....Z...H..H.|
000001b0  00 00 48 85 ff 0f 84 34  03 00 00 8b 47 08 00 fe  |..H....4....G...|
000001c0  ff ff 83 fe ff ff 02 00  00 00 00 d8 71 02 00 fe  |............q...|
000001d0  ff ff 05 fe ff ff 02 d8  71 02 00 38 28 00 00 00  |........q..8(...|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200



Snad to pomuze  8)

daysleeper

  • Stálý člen
  • **
  • Příspěvků: 1206
Re:Ubuntu 10.04 LTS problém s GRUBem
« Odpověď #4 kdy: 09 Listopadu 2011, 23:21:55 »
Pravděpodobně máš v BIOSu nastaveno bootování z toho 320GB Win disku.
Nastav si primární bootování na ten druhý disk (80GB).

Mousty

  • Návštěvník
  • Příspěvků: 41
Re:Ubuntu 10.04 LTS problém s GRUBem
« Odpověď #5 kdy: 09 Listopadu 2011, 23:24:38 »
To je divne... v BIOSU nemam moznost volby mezi vice HDD... pouze jeden... do ted mi to vse slapalo  :( jeste to zkusim prolezt...

Mousty

  • Návštěvník
  • Příspěvků: 41
Re:Ubuntu 10.04 LTS problém s GRUBem
« Odpověď #6 kdy: 09 Listopadu 2011, 23:27:03 »
Safra, sorry jsem lopata... v BIOSU jsem to našel :-)
Takže enjoy... nenapadlo by mě to, ale je to vyřešeno... :-) díky moc...

 

Provoz zaštiťuje spolek OpenAlt.