Fórum Ubuntu CZ/SK
Ubuntu pro osobní počítače => Instalace, aktualizace a spouštění => Téma založeno: ufo 06 Srpna 2012, 18:02:18
-
Nainštaloval som si ubuntu 12.04 na disk v ktorom bol win 7.
V gparted vyzera delenie disku nasledovne(vid priloha)
ubuntu funguje OK ale win nejde v grube spustit, znovu sa spusti grub.
Ked som vyberal kde ma ist grub tak som dal sda1 (kde bol aj boot win)
Da sa to nejako spojazdnit?
Zabudol som napisat ze ide o netebook HP probook4530s core i 5
[příloha smazaná administrátorem]
-
Zkus sem napsat, co vypíše:
sudo update-grub
-
napíše vid priloha
[příloha smazaná administrátorem]
-
To vypadá jakoby tam byl GRUB legacy i GRUB 2.
Zkus
sudo apt-get remove grub
sudo apt-get install grub2
sudo update-grub
-
teraz pise (priloha)
[příloha smazaná administrátorem]
-
To vypadá jakoby tam byl GRUB legacy i GRUB 2.
Zkus
sudo apt-get remove grub
sudo apt-get install grub2
sudo update-grub
Zprávu jsem editoval. Udělej prvně sudo apt-get install grub2 a pak sudo update-grub
-
vypisalo:
jan@jan-HP-ProBook-4530s:~$ sudo apt-get remove grub
[sudo] password for jan:
Načítavajú sa zoznamy balíkov... Hotovo
Vytvára sa strom závislostí
Načítavajú sa stavové informácie... Hotovo
Balík grub nie je nainštalovaný, nedá sa teda odstrániť
0 aktualizovaných, 0 nových nainštalovaných, 0 na odstránenie a 340 neaktualizovaných.
jan@jan-HP-ProBook-4530s:~$ sudo apt-get install grub2
Načítavajú sa zoznamy balíkov... Hotovo
Vytvára sa strom závislostí
Načítavajú sa stavové informácie... Hotovo
Nainštalujú sa nasledovné extra balíky:
grub-gfxpayload-lists grub-pc grub2-common
Nainštalujú sa nasledovné NOVÉ balíky:
grub-gfxpayload-lists grub-pc grub2 grub2-common
0 aktualizovaných, 4 nových nainštalovaných, 0 na odstránenie a 340 neaktualizovaných.
Je potrebné stiahnuť 240 kB archívov.
Po tejto operácii sa na disku použije ďalších 697 kB.
Chcete pokračovať [Y/n]? y
Získava sa:1 http://sk.archive.ubuntu.com/ubuntu/ precise-updates/main grub2-common amd64 1.99-21ubuntu3.1 [94,3 kB]
Získava sa:2 http://sk.archive.ubuntu.com/ubuntu/ precise-updates/main grub-pc amd64 1.99-21ubuntu3.1 [140 kB]
Získava sa:3 http://sk.archive.ubuntu.com/ubuntu/ precise/main grub-gfxpayload-lists amd64 0.6 [3 506 B]
Získava sa:4 http://sk.archive.ubuntu.com/ubuntu/ precise-updates/universe grub2 amd64 1.99-21ubuntu3.1 [2 514 B]
240 kB sa stiahlo za 6 s (37,2 kB/s)
Pripravuje sa nastavenie balíkov ...
Selecting previously unselected package grub2-common.
(Číta sa databáza ... momentálne je nainštalovaných 144070 súborov alebo adresárov.
Rozbaľuje sa grub2-common (z .../grub2-common_1.99-21ubuntu3.1_amd64.deb) ...
Selecting previously unselected package grub-pc.
Rozbaľuje sa grub-pc (z .../grub-pc_1.99-21ubuntu3.1_amd64.deb) ...
Selecting previously unselected package grub-gfxpayload-lists.
Rozbaľuje sa grub-gfxpayload-lists (z .../grub-gfxpayload-lists_0.6_amd64.deb) ...
Selecting previously unselected package grub2.
Rozbaľuje sa grub2 (z .../grub2_1.99-21ubuntu3.1_amd64.deb) ...
Spracúvajú sa spúšťače install-info ...
Spracúvajú sa spúšťače man-db ...
Nastavuje sa balík grub2-common (1.99-21ubuntu3.1) ...
Nastavuje sa balík grub-pc (1.99-21ubuntu3.1) ...
/usr/sbin/grub-setup: upozornenie: Pokus o inštaláciu zavádzača GRUB na disk bez oddielov alebo na oddiel. Toto je ZLÝ nápad..
/usr/sbin/grub-setup: upozornenie: Začlenenie nie je možné. GRUB je možné v tomto inštalačnom programe nainštalovať len použitím zoznamu blokov. Zoznam blokov je však NESPOĽAHLIVÝ a jeho použitie sa neodporúča..
Installation finished. No error reported.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-23-generic
Found initrd image: /boot/initrd.img-3.2.0-23-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
done
Nastavuje sa balík grub-gfxpayload-lists (0.6) ...
Nastavuje sa balík grub2 (1.99-21ubuntu3.1) ...
jan@jan-HP-ProBook-4530s:~$ sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-23-generic
Found initrd image: /boot/initrd.img-3.2.0-23-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
done
jan@jan-HP-ProBook-4530s:~$
-
Pridavam vypis
Boot Info Script 0.61 [1 April 2012]
============================= Boot Info Summary: ===============================
=> Windows is installed in the MBR of /dev/sda.
sda1: __________________________________________________________________________
File system: ntfs
Boot sector type: Grub2 (v1.99)
Boot sector info: Grub2 (v1.99) is installed in the boot sector of sda1
and looks at sector 667514248 of the same hard drive
for core.img. core.img is at this location and looks
for (,msdos5)/boot/grub on this drive. 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: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files: /Windows/System32/winload.exe
sda3: __________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 12.04 LTS
Boot files: /boot/grub/menu.lst /boot/grub/grub.cfg /etc/fstab
/boot/grub/core.img
sda6: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sda7: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sda4: __________________________________________________________________________
File system: vfat
Boot sector type: Windows 7: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 500.1 GB, 500107862016 bytes
hlav: 255, sektorů na stopu: 63, cylindrů: 60 801, celkem 976 773 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 * 2,048 206,847 204,800 7 NTFS / exFAT / HPFS
/dev/sda2 206,848 516,208,639 516,001,792 7 NTFS / exFAT / HPFS
/dev/sda3 516,210,686 966,266,879 450,056,194 f W95 Extended (LBA)
/dev/sda5 516,210,688 680,050,687 163,840,000 83 Linux
/dev/sda6 680,052,736 927,205,079 247,152,344 83 Linux
/dev/sda7 927,205,376 966,266,879 39,061,504 82 Linux swap / Solaris
/dev/sda4 966,268,928 976,754,687 10,485,760 c W95 FAT32 (LBA)
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/sda1 90FA869BFA867CEA ntfs Riservato per il sistema
/dev/sda2 1C428AC4428AA25E ntfs
/dev/sda4 6CF1-3E85 vfat HP_TOOLS
/dev/sda5 0eb93aee-ef1b-4c6f-aadb-73ce9e474f76 ext4
/dev/sda6 f79114f8-7171-4b96-a7f8-4702d9865ce0 ext4
/dev/sda7 d74f76b5-7672-473e-90ea-1a853e278325 swap
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/sda5 / ext4 (rw,errors=remount-ro)
/dev/sda6 /home ext4 (rw)
=========================== sda5/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=0eb93aee-ef1b-4c6f-aadb-73ce9e474f76 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=0eb93aee-ef1b-4c6f-aadb-73ce9e474f76
## 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 12.04 LTS, kernel 3.2.0-23-generic
uuid 0eb93aee-ef1b-4c6f-aadb-73ce9e474f76
kernel /boot/vmlinuz-3.2.0-23-generic root=UUID=0eb93aee-ef1b-4c6f-aadb-73ce9e474f76 ro quiet splash
initrd /boot/initrd.img-3.2.0-23-generic
title Ubuntu 12.04 LTS, kernel 3.2.0-23-generic (recovery mode)
uuid 0eb93aee-ef1b-4c6f-aadb-73ce9e474f76
kernel /boot/vmlinuz-3.2.0-23-generic root=UUID=0eb93aee-ef1b-4c6f-aadb-73ce9e474f76 ro single
initrd /boot/initrd.img-3.2.0-23-generic
title Chainload into GRUB 2
root 0eb93aee-ef1b-4c6f-aadb-73ce9e474f76
kernel /boot/grub/core.img
title Ubuntu 12.04 LTS, memtest86+
uuid 0eb93aee-ef1b-4c6f-aadb-73ce9e474f76
kernel /boot/memtest86+.bin
### END DEBIAN AUTOMAGIC KERNELS LIST
--------------------------------------------------------------------------------
=========================== sda5/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,msdos5)'
search --no-floppy --fs-uuid --set=root 0eb93aee-ef1b-4c6f-aadb-73ce9e474f76
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 0eb93aee-ef1b-4c6f-aadb-73ce9e474f76
set locale_dir=($root)/boot/grub/locale
set lang=sk_SK
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
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
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, s jadrom Linux 3.2.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 0eb93aee-ef1b-4c6f-aadb-73ce9e474f76
linux /boot/vmlinuz-3.2.0-23-generic root=UUID=0eb93aee-ef1b-4c6f-aadb-73ce9e474f76 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-23-generic
}
menuentry 'Ubuntu, s jadrom Linux 3.2.0-23-generic (režim pre obnovu)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 0eb93aee-ef1b-4c6f-aadb-73ce9e474f76
echo 'Načítava sa Linux 3.2.0-23-generic ...'
linux /boot/vmlinuz-3.2.0-23-generic root=UUID=0eb93aee-ef1b-4c6f-aadb-73ce9e474f76 ro recovery nomodeset
echo 'Načítava sa počiatočný ramdisk ...'
initrd /boot/initrd.img-3.2.0-23-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,msdos5)'
search --no-floppy --fs-uuid --set=root 0eb93aee-ef1b-4c6f-aadb-73ce9e474f76
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 0eb93aee-ef1b-4c6f-aadb-73ce9e474f76
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 90FA869BFA867CEA
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 ###
--------------------------------------------------------------------------------
=============================== sda5/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/sda5 during installation
UUID=0eb93aee-ef1b-4c6f-aadb-73ce9e474f76 / ext4 errors=remount-ro 0 1
# /home was on /dev/sda6 during installation
UUID=f79114f8-7171-4b96-a7f8-4702d9865ce0 /home ext4 defaults 0 2
# swap was on /dev/sda7 during installation
UUID=d74f76b5-7672-473e-90ea-1a853e278325 none swap sw 0 0
--------------------------------------------------------------------------------
=================== sda5: 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.2.0-23-generic 1
= boot/vmlinuz-3.2.0-23-generic 1
= initrd.img 1
= vmlinuz 1
=============================== StdErr Messages: ===============================
xz: (stdin): Komprimovaná data jsou poškozená
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
-
Ten 2. post nebyl potřeba. Vypadá, že to bude ok.
Zkus pro jistotu ještě
sudo grub-install /dev/sdaa restart ;)
-
Po restarte stale nebootuje win 7
ked dam v grube e na win 7
zobrazi sa
insmod part_msdos
insmod ntfs
set root=´(hd0, msdos1)´
search --no-floopy --fs-uuid set=root 90FA869BFA867CEA
chainloader +1
-
Tak, opravdu poslední nápad.
Nabootuj instalační disk Windows 7 a proveď obnovu MBR (obrázkový návod tady: http://www.sevenforums.com/tutorials/20864-mbr-restore-windows-7-master-boot-record.html (http://www.sevenforums.com/tutorials/20864-mbr-restore-windows-7-master-boot-record.html) ).
Zkus zapnout počítač (Ubuntu to nenabídne).
A ted 2 možnosti:
a) stáhnout http://neosmart.net/EasyBCD/ (http://neosmart.net/EasyBCD/). Po spuštění tam přidej Ubuntu (pokud umíš Anglicky, přijdeš jak na to, když ne, udělám nějaký obrázkový návod).
b) nabootovat LiveCD Ubuntu a provést obnovu GRUB(návod je na wiki)
PS - u možnosti b riskuješ, že zase window snenaběhne a budeš to muset celé opakovat s možností a. U možnosti a zase může dojít při upgradu Ubuntu k opětovnému přepsání MBR a windows tak nemusí fungovat po upgradu. Já osobně doporučuji vyzkoušet prvně řešení s možností b.
-
Uprava winloaderu prebehla OK ale stale spustalo grub.
Po reinštalacii win 7 nešlo nič okrem biosu
potom som cez inštalačné ubuntu spistil gparted a sformátoval som sda1
znovu som nainštaloval win 7 a následne spavil upravu grubu podla tvojho navodu b
teraz funguje vsetko OK.
vdaka za pomoc