Co znamená
nastavte soubor /etc/default/grub dle vašeho systému
$ nano /etc/default/grub
? Co mám konkrétně udělat?
Každopádně, když v tomhle kroku nic needituju a pokračuju dál, tak při grub-install /dev/sda i při grub-install --recheck /dev/sda to vyhodí úplně stejnou chybu, tedy Your embedding area is unusually small.
Podle zahraničních fór může být chyba v tom, že sda1 s Windows začíná na cylindru 4, tj. že se před to GRUB jaksi nevejde či co. Jednak tomu nerozumím, jednak nechápu, jak to ty Windows udělaly (když při jejich instalaci jsem ani nenechal formátovat disk) a jednak bych se bál hýbat s tou partišnou - a stejně nevím jak (gparted v live CD má všechny volby změn u disků zašedlé).
Tady jsou výsledky z Boot Info Script:
Boot Info Script 0.60 from 17 May 2011
============================= Boot Info Summary: ===============================
=> Windows is installed in the MBR of /dev/sda.
=> Syslinux MBR (4.04 and higher) is installed in the MBR of /dev/sdb.
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: /boot.ini /ntldr /NTDETECT.COM
sda2: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 11.10
Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sda3: __________________________________________________________________________
File system: Extended Partition
Boot sector type: Unknown
Boot sector info:
sda5: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sdb1: __________________________________________________________________________
File system: vfat
Boot sector type: SYSLINUX 4.05 2011-12-09
Boot sector info: Syslinux looks at sector 15432 of /dev/sdb1 for its
second stage. SYSLINUX is installed in the directory.
The integrity check of the ADV area failed. According
to the info in the boot sector, sdb1 starts at sector
0. But according to the info from fdisk, sdb1 starts
at sector 2048.
Operating System:
Boot files: /syslinux/syslinux.cfg /ldlinux.sys
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 160.0 GB, 160041885696 bytes
hlav: 129, sektorů na stopu: 4, cylindrů: 605 778, celkem 312 581 808 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 * 4 29,331,730 29,331,727 7 NTFS / exFAT / HPFS
/dev/sda2 29,333,504 308,674,559 279,341,056 83 Linux
/dev/sda3 308,676,606 312,580,095 3,903,490 5 Extended
/dev/sda5 308,676,608 312,580,095 3,903,488 82 Linux swap / Solaris
Drive: sdb _____________________________________________________________________
Disk /dev/sdb: 4 043 MB, 4 043 309 056 bajtů
hlav: 146, sektorů na stopu: 38, cylindrů: 1 423, celkem 7 897 088 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/sdb1 * 2,048 7,897,087 7,895,040 b W95 FAT32
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/loop0 squashfs
/dev/sda1 FABCAFB9BCAF6EB7 ntfs
/dev/sda2 51273cb1-1181-4390-82d4-6aca32ded3cd ext4
/dev/sda5 7d7da4e5-7f7a-4303-962c-c111900dfed4 swap
/dev/sdb1 3C1E-15CE vfat PENDRIVE
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/loop0 /rofs squashfs (ro,noatime)
/dev /mnt/dev none (rw,bind)
/dev/sda1 /media/FABCAFB9BCAF6EB7 fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/sda2 /mnt ext4 (rw)
/dev/sdb1 /cdrom vfat (ro,noatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
================================ 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 Professional" /noexecute=optin /fastdetect
--------------------------------------------------------------------------------
=========================== sda2/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='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root 51273cb1-1181-4390-82d4-6aca32ded3cd
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root 51273cb1-1181-4390-82d4-6aca32ded3cd
set locale_dir=($root)/boot/grub/locale
set lang=cs_CZ
insmod gettext
fi
terminal_output gfxterm
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 ###
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 3.0.0-14-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root 51273cb1-1181-4390-82d4-6aca32ded3cd
linux /boot/vmlinuz-3.0.0-14-generic root=UUID=51273cb1-1181-4390-82d4-6aca32ded3cd ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-14-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-14-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root 51273cb1-1181-4390-82d4-6aca32ded3cd
echo 'Loading Linux 3.0.0-14-generic ...'
linux /boot/vmlinuz-3.0.0-14-generic root=UUID=51273cb1-1181-4390-82d4-6aca32ded3cd ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-14-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 3.0.0-13-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root 51273cb1-1181-4390-82d4-6aca32ded3cd
linux /boot/vmlinuz-3.0.0-13-generic root=UUID=51273cb1-1181-4390-82d4-6aca32ded3cd ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-13-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-13-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root 51273cb1-1181-4390-82d4-6aca32ded3cd
echo 'Loading Linux 3.0.0-13-generic ...'
linux /boot/vmlinuz-3.0.0-13-generic root=UUID=51273cb1-1181-4390-82d4-6aca32ded3cd ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-13-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root 51273cb1-1181-4390-82d4-6aca32ded3cd
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=51273cb1-1181-4390-82d4-6aca32ded3cd ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-12-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-12-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root 51273cb1-1181-4390-82d4-6aca32ded3cd
echo 'Loading Linux 3.0.0-12-generic ...'
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=51273cb1-1181-4390-82d4-6aca32ded3cd ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-12-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='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root 51273cb1-1181-4390-82d4-6aca32ded3cd
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root 51273cb1-1181-4390-82d4-6aca32ded3cd
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
### 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 ###
--------------------------------------------------------------------------------
=============================== sda2/etc/fstab: ================================
--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' 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/sda2 during installation
UUID=51273cb1-1181-4390-82d4-6aca32ded3cd / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=7d7da4e5-7f7a-4303-962c-c111900dfed4 none swap sw 0 0
--------------------------------------------------------------------------------
=================== sda2: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
= boot/grub/core.img 1
= boot/grub/grub.cfg 1
= boot/initrd.img-3.0.0-12-generic 1
= boot/initrd.img-3.0.0-13-generic 2
= boot/initrd.img-3.0.0-14-generic 2
= boot/vmlinuz-3.0.0-12-generic 1
= boot/vmlinuz-3.0.0-13-generic 1
= boot/vmlinuz-3.0.0-14-generic 1
= vmlinuz 1
= vmlinuz.old 1
========================= sdb1/syslinux/syslinux.cfg: ==========================
--------------------------------------------------------------------------------
# D-I config version 2.0
include menu.cfg
default vesamenu.c32
prompt 0
timeout 300
ui gfxboot bootlogo
--------------------------------------------------------------------------------
================= sdb1: Location of files loaded by Syslinux: ==================
GiB - GB File Fragment(s)
?? = ?? ldlinux.sys 1
?? = ?? syslinux/gfxboot.c32 1
?? = ?? syslinux/chain.c32 1
?? = ?? syslinux/syslinux.cfg 1
?? = ?? syslinux/vesamenu.c32 1
============== sdb1: Version of COM32(R) files used by Syslinux: ===============
syslinux/gfxboot.c32 : COM32R module (v4.xx)
syslinux/chain.c32 : COM32R module (v4.xx)
syslinux/vesamenu.c32 : COM32R module (v4.xx)
======================== Unknown MBRs/Boot Sectors/etc: ========================
Unknown BootLoader on sda3
00000000 44 3a 14 ff 44 3a 15 ff 44 3a 15 ff 45 3a 15 ff |D:..D:..D:..E:..|
00000010 45 3a 16 ff 46 3a 16 ff 45 3a 16 ff 46 3a 16 ff |E:..F:..E:..F:..|
00000020 46 3b 16 ff 46 3b 16 ff 46 3b 16 ff 47 3b 15 ff |F;..F;..F;..G;..|
00000030 47 3c 15 ff 47 3c 15 ff 47 3c 16 ff 47 3c 16 ff |G<..G<..G<..G<..|
00000040 48 3c 16 ff 47 3c 17 ff 48 3c 16 ff 48 3c 16 ff |H<..G<..H<..H<..|
00000050 48 3c 16 ff 48 3d 16 ff 48 3d 17 ff 49 3e 17 ff |H<..H=..H=..I>..|
00000060 48 3e 17 ff 49 3e 17 ff 49 3d 17 ff 49 3d 17 ff |H>..I>..I=..I=..|
00000070 49 3e 17 ff 49 3e 16 ff 49 3e 16 ff 4a 3e 16 ff |I>..I>..I>..J>..|
00000080 4a 3e 16 ff 4a 3e 16 ff 4a 3e 16 ff 4a 3e 17 ff |J>..J>..J>..J>..|
00000090 4b 3f 18 ff 4b 40 18 ff 4a 3f 18 ff 4a 3f 19 ff |K?..K@..J?..J?..|
000000a0 4b 3f 19 ff 4b 3f 19 ff 4b 3f 19 ff 4b 40 19 ff |K?..K?..K?..K@..|
000000b0 4c 40 19 ff 4c 40 19 ff 4d 40 19 ff 4c 40 19 ff |L@..L@..M@..L@..|
000000c0 4c 40 19 ff 4c 40 18 ff 4d 41 18 ff 4d 41 19 ff |L@..L@..MA..MA..|
000000d0 4d 41 18 ff 4d 41 19 ff 4d 41 1a ff 4d 41 19 ff |MA..MA..MA..MA..|
000000e0 4d 41 19 ff 4d 41 18 ff 4e 42 18 ff 4e 42 18 ff |MA..MA..NB..NB..|
000000f0 4d 42 18 ff 4e 42 19 ff 4e 42 19 ff 4e 42 19 ff |MB..NB..NB..NB..|
00000100 4e 42 1a ff 4f 42 1a ff 4e 42 1a ff 4f 43 1a ff |NB..OB..NB..OC..|
00000110 4f 43 1a ff 4f 43 1a ff 4f 44 1a ff 4f 44 1a ff |OC..OC..OD..OD..|
00000120 4f 43 19 ff 4f 43 19 ff 50 44 19 ff 50 44 19 ff |OC..OC..PD..PD..|
00000130 50 44 19 ff 50 44 1a ff 50 44 19 ff 51 44 1a ff |PD..PD..PD..QD..|
00000140 50 45 1b ff 51 45 1b ff 51 44 1a ff 51 45 1b ff |PE..QE..QD..QE..|
00000150 51 45 1b ff 51 45 1b ff 51 45 1b ff 52 45 1b ff |QE..QE..QE..RE..|
00000160 52 45 1b ff 52 45 1b ff 52 46 1b ff 52 45 1b ff |RE..RE..RF..RE..|
00000170 52 46 1a ff 52 46 1a ff 52 46 1b ff 52 46 1a ff |RF..RF..RF..RF..|
00000180 53 46 1a ff 53 46 1a ff 53 46 1b ff 53 47 1b ff |SF..SF..SF..SG..|
00000190 53 47 1b ff 54 47 1c ff 54 47 1b ff 53 47 1b ff |SG..TG..TG..SG..|
000001a0 54 47 1c ff 54 47 1c ff 54 47 1b ff 54 47 1b ff |TG..TG..TG..TG..|
000001b0 54 47 1b ff 54 48 1b ff 54 48 1b ff 54 48 00 80 |TG..TH..TH..TH..|
000001c0 c4 ff 82 80 c4 ff 02 00 00 00 00 90 3b 00 00 00 |............;...|
000001d0 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
=============================== StdErr Messages: ===============================
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
/home/ubuntu/Desktop/boot_info_script.sh: řádek 1579: [: 2.73495e+09: očekáván celočíselný výraz