Fórum Ubuntu CZ/SK
Ubuntu pro osobní počítače => Pracovní prostředí => Téma založeno: skaldacz 29 Března 2012, 11:46:04
-
Ahoj,
mám problém, chtěl bych nastavit windows jako vychozi system pri bootovani, proste aby se automaticky spousteli windousy (mam nainstalovany ubuntu 11.10 a windows 7). Zkousel jsem to pres GRUB customizera, windowsy jsem dal na 1. misto a nastavil je jako vychozi, ale stale se pousti ubuntu jako prvni. I ve windousech mam nastaveny winy jako vychozi a stale nic. Muze mi prosim nekdo poradit jak udelat, aby se mi spousteli windousy ? :)
-
Podívej se nejdřív zde na podobné téma:
http://forum.ubuntu.cz/index.php?topic=61947.0
-
Grub customizer nepomaha a prepsani grub.cfg mi taky nepomohlo.
-
Pošli tedy výpis boot_info_script (http://wiki.ubuntu.cz/boot_info_script).
-
Boot Info Script 0.60 from 17 May 2011
============================= Boot Info Summary: ===============================
=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for on this drive.
sda1: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /bootmgr /Boot/BCD
sda2: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda3: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files: /Windows/System32/winload.exe /ubuntu/winboot/wubildr
/ubuntu/winboot/wubildr.mbr
sda4: __________________________________________________________________________
File system: Extended Partition
Boot sector type: Unknown
Boot sector info:
sda5: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sda6: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 11.10
Boot files: /boot/grub/menu.lst /boot/grub/grub.cfg /etc/fstab
/boot/grub/core.img
sda7: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 640.1 GB, 640135028736 bytes
hlav: 255, sektorů na stopu: 63, cylindrů: 77 825, celkem 1 250 263 728 sektorů
Jednotky = sektory po 1 * 512 = 512 bajtech
Velikost sektoru (logického/fyzického): 512 bajtů / 4096 bajtů
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 * 2,048 206,847 204,800 7 NTFS / exFAT / HPFS
/dev/sda2 206,848 635,859,413 635,652,566 7 NTFS / exFAT / HPFS
/dev/sda3 635,863,040 1,067,508,060 431,645,021 7 NTFS / exFAT / HPFS
/dev/sda4 1,067,509,758 1,250,263,039 182,753,282 5 Extended
/dev/sda5 1,233,678,336 1,250,263,039 16,584,704 82 Linux swap / Solaris
/dev/sda6 1,067,509,760 1,217,091,583 149,581,824 83 Linux
/dev/sda7 1,217,093,632 1,233,663,999 16,570,368 82 Linux swap / Solaris
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/sda1 A41EECC91EEC9598 ntfs
/dev/sda2 A4AE6421AE63E9EE ntfs
/dev/sda3 78AC3057AC30125C ntfs
/dev/sda5 cab5318a-a4f8-4d9c-9c40-eaaff19db350 swap
/dev/sda6 43d2d0cf-887c-45c2-8a41-fdd1dd0f8020 ext4
/dev/sda7 068bfc4f-1c7b-482a-9079-ce234ce0547e swap
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/sda6 / ext4 (rw,errors=remount-ro,commit=0)
=========================== sda6/boot/grub/menu.lst: ===========================
--------------------------------------------------------------------------------
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-legacy-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=43d2d0cf-887c-45c2-8a41-fdd1dd0f8020 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=43d2d0cf-887c-45c2-8a41-fdd1dd0f8020
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu 11.10, kernel 3.0.0-17-generic
uuid 43d2d0cf-887c-45c2-8a41-fdd1dd0f8020
kernel /boot/vmlinuz-3.0.0-17-generic root=UUID=43d2d0cf-887c-45c2-8a41-fdd1dd0f8020 ro quiet splash
initrd /boot/initrd.img-3.0.0-17-generic
title Ubuntu 11.10, kernel 3.0.0-17-generic (recovery mode)
uuid 43d2d0cf-887c-45c2-8a41-fdd1dd0f8020
kernel /boot/vmlinuz-3.0.0-17-generic root=UUID=43d2d0cf-887c-45c2-8a41-fdd1dd0f8020 ro single
initrd /boot/initrd.img-3.0.0-17-generic
title Ubuntu 11.10, kernel 3.0.0-16-generic
uuid 43d2d0cf-887c-45c2-8a41-fdd1dd0f8020
kernel /boot/vmlinuz-3.0.0-16-generic root=UUID=43d2d0cf-887c-45c2-8a41-fdd1dd0f8020 ro quiet splash
initrd /boot/initrd.img-3.0.0-16-generic
title Ubuntu 11.10, kernel 3.0.0-16-generic (recovery mode)
uuid 43d2d0cf-887c-45c2-8a41-fdd1dd0f8020
kernel /boot/vmlinuz-3.0.0-16-generic root=UUID=43d2d0cf-887c-45c2-8a41-fdd1dd0f8020 ro single
initrd /boot/initrd.img-3.0.0-16-generic
title Ubuntu 11.10, kernel 3.0.0-12-generic
uuid 43d2d0cf-887c-45c2-8a41-fdd1dd0f8020
kernel /boot/vmlinuz-3.0.0-12-generic root=UUID=43d2d0cf-887c-45c2-8a41-fdd1dd0f8020 ro quiet splash
initrd /boot/initrd.img-3.0.0-12-generic
title Ubuntu 11.10, kernel 3.0.0-12-generic (recovery mode)
uuid 43d2d0cf-887c-45c2-8a41-fdd1dd0f8020
kernel /boot/vmlinuz-3.0.0-12-generic root=UUID=43d2d0cf-887c-45c2-8a41-fdd1dd0f8020 ro single
initrd /boot/initrd.img-3.0.0-12-generic
title Chainload into GRUB 2
root 43d2d0cf-887c-45c2-8a41-fdd1dd0f8020
kernel /boot/grub/core.img
title Ubuntu 11.10, memtest86+
uuid 43d2d0cf-887c-45c2-8a41-fdd1dd0f8020
kernel /boot/memtest86+.bin
### END DEBIAN AUTOMAGIC KERNELS LIST
--------------------------------------------------------------------------------
=========================== sda6/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="8"
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,msdos6)'
search --no-floppy --fs-uuid --set=root 43d2d0cf-887c-45c2-8a41-fdd1dd0f8020
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 43d2d0cf-887c-45c2-8a41-fdd1dd0f8020
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=4
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 3.0.0-17-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,msdos6)'
search --no-floppy --fs-uuid --set=root 43d2d0cf-887c-45c2-8a41-fdd1dd0f8020
linux /boot/vmlinuz-3.0.0-17-generic root=UUID=43d2d0cf-887c-45c2-8a41-fdd1dd0f8020 ro vga=771 quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-17-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-17-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 43d2d0cf-887c-45c2-8a41-fdd1dd0f8020
echo 'Loading Linux 3.0.0-17-generic ...'
linux /boot/vmlinuz-3.0.0-17-generic root=UUID=43d2d0cf-887c-45c2-8a41-fdd1dd0f8020 ro recovery nomodeset vga=771
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-17-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 3.0.0-16-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,msdos6)'
search --no-floppy --fs-uuid --set=root 43d2d0cf-887c-45c2-8a41-fdd1dd0f8020
linux /boot/vmlinuz-3.0.0-16-generic root=UUID=43d2d0cf-887c-45c2-8a41-fdd1dd0f8020 ro vga=771 quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-16-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-16-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 43d2d0cf-887c-45c2-8a41-fdd1dd0f8020
echo 'Loading Linux 3.0.0-16-generic ...'
linux /boot/vmlinuz-3.0.0-16-generic root=UUID=43d2d0cf-887c-45c2-8a41-fdd1dd0f8020 ro recovery nomodeset vga=771
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-16-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,msdos6)'
search --no-floppy --fs-uuid --set=root 43d2d0cf-887c-45c2-8a41-fdd1dd0f8020
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=43d2d0cf-887c-45c2-8a41-fdd1dd0f8020 ro vga=771 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,msdos6)'
search --no-floppy --fs-uuid --set=root 43d2d0cf-887c-45c2-8a41-fdd1dd0f8020
echo 'Loading Linux 3.0.0-12-generic ...'
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=43d2d0cf-887c-45c2-8a41-fdd1dd0f8020 ro recovery nomodeset vga=771
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,msdos6)'
search --no-floppy --fs-uuid --set=root 43d2d0cf-887c-45c2-8a41-fdd1dd0f8020
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 43d2d0cf-887c-45c2-8a41-fdd1dd0f8020
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/sda1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root A41EECC91EEC9598
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/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/sda6 during installation
UUID=43d2d0cf-887c-45c2-8a41-fdd1dd0f8020 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda7 during installation
UUID=068bfc4f-1c7b-482a-9079-ce234ce0547e none swap sw 0 0
--------------------------------------------------------------------------------
=================== sda6: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
= boot/grub/core.img 1
= boot/grub/grub.cfg 1
= boot/grub/menu.lst 1
= boot/initrd.img-3.0.0-12-generic 2
= boot/initrd.img-3.0.0-16-generic 5
= boot/initrd.img-3.0.0-17-generic 2
= boot/vmlinuz-3.0.0-12-generic 1
= boot/vmlinuz-3.0.0-16-generic 1
= boot/vmlinuz-3.0.0-17-generic 2
= initrd.img 2
= initrd.img.old 5
= vmlinuz 2
= vmlinuz.old 1
======================== Unknown MBRs/Boot Sectors/etc: ========================
Unknown BootLoader on sda4
00000000 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
*
000001b0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00 fe |................|
000001c0 ff ff 82 fe ff ff 02 88 e7 09 00 10 fd 00 00 fe |................|
000001d0 ff ff 05 fe ff ff 01 00 00 00 01 70 ea 08 00 00 |...........p....|
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
=============================== StdErr Messages: ===============================
unlzma: Decoder error
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
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
-
Podle návodu na wiki (pro Grub2) (http://wiki.ubuntu.cz/GRUB2) si oprav údaj v souboru /etc/default/grub.
GRUB_DEFAULT=8
naGRUB_DEFAULT=5
pak sudo update-grub
a zkus restart počítače.
-
hele tak v etc/default/grub mam nastavenou 5. Ale v boot/grub/grub.cfg mam 8. Tak co s tim ? :)
-
sudo update-grub
;)
-
daval jsem aspon 3x :)
-
Co máš nainstalováno za Grub?
dpkg -l '*grub*'
-
(http://www.imghosting.cz/images/36obr.png) (http://www.imghosting.cz/view-36obr.png)
-
Máš v Ubuntu starý Grub (balík grub); nainstaluj nový (balík grub-pc), a systém mi ti měl automaticky nabídnout odinstalaci starého. Pak znovu update-grub
sudo apt-get install grub-pc
# pokud vše OK
sudo update-grub
-
Vyreseno. Dekuji mockrat :)