Fórum Ubuntu CZ/SK
Ubuntu pro osobní počítače => Instalace, aktualizace a spouštění => Téma založeno: byzi 15 Ledna 2010, 11:21:33
-
Zdravim,
narazil jsem na zajimavy problem...
Na notebook jsem naistaloval Ubuntu 9.10 jako dalsi OS, GRUB normalne fungoval... Vypnuti, opetovne zapnuti atd. fungovalo (pouzival jsem jen Ubuntu)..., dokud jsem nespustil WinXP..., a po naslednem vypnuti se mi zobrazi jen „GRUB loading...” a nic...
Nastesti jsem zde prez LiveCD nasel navod na obnovu GRUBu, vse funguje jak ma do doby, nez spustim WinXP...
Nevite cim by to mohlo byt? Moc dekuji za rady... Nasel jsem zde jen navody, jak opravit GRUB chyby, ale mi se zadna chyba nezobrazi, cekal jsem asi 15min. a stale jen „GRUB loading...”
-
Můžeš tady zkopírovat (do kódu (viz ikonka (http://forum.ubuntu.cz/Themes/Ubuntu/images/bbc/code.gif) nahoře při odpovědi)) obsah extového souboru /boot/grub/grub.cfg?
-
OK, zitra to tu prihodim, dnes nebudu mit notebook u sebe..., zatim diky...
-
Zde prihazuji 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 /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set 0eab6deb-add9-4738-b610-48d32b4e2bba
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
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=3
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/white
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set 0eab6deb-add9-4738-b610-48d32b4e2bba
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=0eab6deb-add9-4738-b610-48d32b4e2bba ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set 0eab6deb-add9-4738-b610-48d32b4e2bba
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=0eab6deb-add9-4738-b610-48d32b4e2bba ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Home Edition (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set 3d55bc9e6f22a792
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry "Windows NT/2000/XP (on /dev/sda2)" {
insmod ntfs
set root=(hd0,2)
search --no-floppy --fs-uuid --set fafc5f30fc5ee703
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 ###
A zde je vypis rozlozeni disku...
Disk /dev/sda: 60,0 GB, 60 022 480 896 bajtů
hlav: 255, sektorů na stopu: 63, cylindrů: 7 297
Jednotky = cylindry po 16065 * 512 = 8 225 280 bajtech
Identifikátor disku: 0xed33ed33
Zařízení Zavádět Začátek Konec Bloky Id Systém
/dev/sda1 * 1 4376 35150188+ 7 HPFS/NTFS
/dev/sda2 6374 7297 7416360 7 HPFS/NTFS
Diskový oddíl 2 nekončí na hranici cylindru.
/dev/sda3 4377 5592 9767520 83 Linux
/dev/sda4 5593 5714 979965 82 Linux swap/Solaris
Diskové oddíly jsou chybně seřazeny
Trosku me znervoznuji hlasky "Diskový oddíl 2 nekončí na hranici cylindru." a "Diskové oddíly jsou chybně seřazeny" ...
Obnovu GRUB2 jsem delal nasledovne pomoci LiveCD...
sudo fdisk -l
sudo mount /dev/sda3 /mnt
sudo grub-install --root-directory=/mnt/ /dev/sda
A po restartu...
sudo update-grub
Diky za rady...
-
Jak píše nezik v tomto příspěvku (http://forum.ubuntu.cz/index.php/topic,42267.msg316716.html#msg316716), chyba by mohla být v chybném příkazu
sudo grub-install --root-directory=/mnt/ /dev/sda
který má být
sudo grub-install --root-directory=/mnt /dev/sda
(to lomítko tam je důležité, protože ve skriptu update-grub se cesta přiřazuje pomocí bootdir=${rootdir}/boot)
Nepsalo ti to tenkrát při obnově žádná chybová hlášení?
Může to ale být i v něčem jiném. Můžeš tady dát ještě výpis z boot_info_script (http://forum.ubuntu.cz/index.php/topic,38595.msg282696.html#msg282696)?
Trosku me znervoznuji hlasky "Diskový oddíl 2 nekončí na hranici cylindru." a "Diskové oddíly jsou chybně seřazeny" ...
To by neměl být zásadní problém.
-
Pri obnove to zadne chyby nepsalo...
Zde je RESULT.TXT
============================= Boot Info Summary: ==============================
=> No known boot loader is installed in the MBR of /dev/sda
sda1: _________________________________________________________________________
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/dirs: /boot.ini /NTLDR /NTDETECT.COM /boot/grub/core.img
sda2: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /BOOT.INI /NTLDR /NTDETECT.COM
sda3: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 9.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sda4: _________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ _____________________________________________________
Disk /dev/sda: 60,0 GB, 60 022 480 896 bajtů
hlav: 255, sektorů na stopu: 63, cylindrů: 7 297, celkem 117 231 408 sektorů
Jednotky = sektory po 1 * 512 = 512 bajtech
Identifikátor disku: 0xed33ed33
Partition Boot Start End Size Id System
/dev/sda1 * 63 70,300,439 70,300,377 7 HPFS/NTFS
/dev/sda2 102,392,640 117,225,359 14,832,720 7 HPFS/NTFS
/dev/sda3 70,300,440 89,835,479 19,535,040 83 Linux
/dev/sda4 89,835,480 91,795,409 1,959,930 82 Linux swap / Solaris
blkid -c /dev/null: ____________________________________________________________
/dev/sda1: UUID="3D55BC9E6F22A792" LABEL="HDD" TYPE="ntfs"
/dev/sda2: UUID="FAFC5F30FC5EE703" LABEL="HP_RECOVERY" TYPE="ntfs"
/dev/sda3: UUID="0eab6deb-add9-4738-b610-48d32b4e2bba" TYPE="ext4"
/dev/sda4: UUID="a0739fa8-2f25-46d8-b820-f8514e7f66bc" TYPE="swap"
=============================== "mount" output: ===============================
/dev/sda3 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/lojza/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=lojza)
================================ sda1/boot.ini: ================================
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /noexecute=optin /fastdetect
================================ sda2/BOOT.INI: ================================
[boot loader]
timeout=0
default=C:\CMDCONS\BOOTSECT.DAT
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect
C:\CMDCONS\BOOTSECT.DAT="Microsoft Windows Recovery Console" /cmdcons
=========================== sda3/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 /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set 0eab6deb-add9-4738-b610-48d32b4e2bba
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
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=3
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/white
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set 0eab6deb-add9-4738-b610-48d32b4e2bba
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=0eab6deb-add9-4738-b610-48d32b4e2bba ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set 0eab6deb-add9-4738-b610-48d32b4e2bba
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=0eab6deb-add9-4738-b610-48d32b4e2bba ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Home Edition (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set 3d55bc9e6f22a792
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry "Windows NT/2000/XP (on /dev/sda2)" {
insmod ntfs
set root=(hd0,2)
search --no-floppy --fs-uuid --set fafc5f30fc5ee703
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 ###
=============================== sda3/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 defaults 0 0
# / was on /dev/sda3 during installation
UUID=0eab6deb-add9-4738-b610-48d32b4e2bba / ext4 errors=remount-ro 0 1
# swap was on /dev/sda4 during installation
UUID=a0739fa8-2f25-46d8-b820-f8514e7f66bc none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
=================== sda3: Location of files loaded by Grub: ===================
35.9GB: boot/grub/grub.cfg
35.9GB: boot/initrd.img-2.6.31-14-generic
35.9GB: boot/vmlinuz-2.6.31-14-generic
35.9GB: initrd.img
35.9GB: vmlinuz
=========================== Unknown MBRs/Boot Sectors/etc =======================
Unknown MBR on /dev/sda
00000000 eb 63 90 d7 bc 00 7a bb a0 07 8e db 8e c3 be 00 |.c....z.........|
00000010 02 8b ce fc f3 a4 ea a3 00 a0 07 b9 04 00 8b fd |................|
00000020 80 3d 80 74 05 83 c7 10 e2 f6 c3 b9 04 00 8b f5 |.=.t............|
00000030 88 2c 83 c6 10 e2 f9 c6 05 80 c3 60 b4 43 eb 03 |.,.........`.C..|
00000040 60 b4 42 1e 16 1f 16 16 66 52 53 16 32 ed 51 6a |`.B.....fRS.2.Qj|
00000050 10 b0 00 8b f4 b2 80 cd 13 83 00 80 01 00 00 00 |................|
00000060 00 00 00 00 ff fa eb 07 f6 c2 80 75 02 b2 80 ea |...........u....|
00000070 74 7c 00 00 31 c0 8e d8 8e d0 bc 00 20 fb a0 64 |t|..1....... ..d|
00000080 7c 3c ff 74 02 88 c2 52 be 88 7d e8 24 01 be 05 ||<.t...R..}.$...|
00000090 7c f6 c2 80 74 48 b4 41 bb aa 55 cd 13 5a 52 72 ||...tH.A..U..ZRr|
000000a0 3d 81 fb 55 aa 75 37 83 e1 01 74 32 31 c0 89 44 |=..U.u7...t21..D|
000000b0 04 40 88 44 ff 89 44 02 c7 04 10 00 66 8b 1e 5c |.@.D..D.....f..\|
000000c0 7c 66 89 5c 08 66 8b 1e 60 7c 66 89 5c 0c c7 44 ||f.\.f..`|f.\..D|
000000d0 06 00 70 b4 42 cd 13 72 05 bb 00 70 eb 73 b4 08 |..p.B..r...p.s..|
000000e0 cd 13 73 0a f6 c2 80 0f 84 d8 00 e9 82 00 66 0f |..s...........f.|
000000f0 b6 c6 88 64 ff 40 66 89 44 04 0f b6 d1 c1 e2 02 |...d.@f.D.......|
00000100 88 e8 88 f4 40 89 44 08 0f b6 c2 c0 e8 02 66 89 |....@.D.......f.|
00000110 04 66 a1 60 7c 66 09 c0 75 4e 66 a1 5c 7c 66 31 |.f.`|f..uNf.\|f1|
00000120 d2 66 f7 34 88 d1 31 d2 66 f7 74 04 3b 44 08 7d |.f.4..1.f.t.;D.}|
00000130 37 fe c1 88 c5 30 c0 c1 e8 02 08 c1 88 d0 5a 88 |7....0........Z.|
00000140 c6 bb 00 70 8e c3 31 db b8 01 02 cd 13 72 29 8c |...p..1......r).|
00000150 c3 60 1e b9 00 01 8e db 31 f6 bf 00 80 8e c6 fc |.`......1.......|
00000160 f3 a5 1f 61 ff 26 5a 7c be 8e 7d e8 44 00 eb 0e |...a.&Z|..}.D...|
00000170 be 93 7d e8 3c 00 eb 06 be 9d 7d e8 34 00 be a2 |..}.<.....}.4...|
00000180 7d e8 2e 00 cd 18 eb fe 47 52 55 42 20 00 47 65 |}.......GRUB .Ge|
00000190 6f 6d 00 48 61 72 64 20 44 69 73 6b 00 52 65 61 |om.Hard Disk.Rea|
000001a0 64 00 20 45 72 72 6f 72 0d 0a 00 bb 01 00 b4 0e |d. Error........|
000001b0 cd 10 ac 3c 00 75 f4 c3 33 ed 33 ed 00 00 80 01 |...<.u..3.3.....|
000001c0 01 00 07 fe ff ff 3f 00 00 00 d9 b2 30 04 00 00 |......?.....0...|
000001d0 c1 ff 07 ef ff ff 40 63 1a 06 50 54 e2 00 00 fe |......@c..PT....|
000001e0 ff ff 83 fe ff ff 18 b3 30 04 c0 14 2a 01 00 fe |........0...*...|
000001f0 ff ff 82 fe ff ff d8 c7 5a 05 fa e7 1d 00 55 aa |........Z.....U.|
00000200
Sry, ze pisu tak pozde, je to laptop od nasich, uz s nimi nebydlim..., tak je odezva pomalejsi...
-
Zdá se, že by to mohl být problém s "recovery softwarem", který je obsažen ve Win, a který přepisuje část zavaděče Grubu. Podívej se na níže uvedené odkazy, které obsahují možná řešení (spíš možnosti, jak problém obejít :( - pořádný fix je, zdá se, zatím v nedohlednu)
http://ubuntuforums.org/showthread.php?t=1307042
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/441941?comments=all
http://ubuntuforums.org/showthread.php?t=1341624