Fórum Ubuntu CZ/SK
Ubuntu pro osobní počítače => Instalace, aktualizace a spouštění => Téma založeno: Nomak 20 Února 2012, 22:52:40
-
Dobrý den, mám problém se spuštěním Windows. Měl jsem nainstalovany Windows 7 Professional a dnes jsem doinstaloval Ubuntu 11.10 do dual-bootu. Když se teď ale pokouším v GRUBU vybrat spuštění Windows vypíše mi to unknown filesystem a pak jen konzole grub rescue...Ubuntu se spouští normálně. fsdisk mi vypisuje toto:
sudo fdisk -l /dev/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ů
Velikost I/O (minimální/optimální): 512 bajtů / 512 bajtů
Identifikátor disku: 0x73c092c4
Zařízení Zavádět Začátek Konec Bloky Id Systém
/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 206848 878561355 439177254 7 HPFS/NTFS/exFAT
/dev/sda3 878563326 976771071 49103873 5 Rozšířený
/dev/sda5 968554496 976771071 4108288 82 Linux swap/Solaris
/dev/sda6 878563328 960333823 40885248 83 Linux
/dev/sda7 960335872 968542207 4103168 82 Linux swap/Solaris
Diskové oddíly jsou chybně seřazeny
Oddíl s Windowsem by měl být sda2, když se ale podívám na obsah souboru grub.cfg je tu tento záznam:### 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 549E09CC9E09A796
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
Když jsem se pokusil změnit 5. řádek na se root='(hd0,msdos2)' nemělo to žádný efekt. Když namountuju ten oddíl sda2 tak v něm jsou všechny soubory nepoškozené. Nevíte prosím někdo co se s tím dá dělat? Děkuji
-
Dáš tady prosím výpis z boot_info_script (http://wiki.ubuntu.cz/boot_info_script)?
-
Tady je :)
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: Grub2 (v1.99)
Boot sector info: Grub2 (v1.99) is installed in the boot sector of sda1
and looks at sector 917586888 of the same hard drive
for core.img. core.img is at this location and looks
for 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
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: 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: 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 878,561,355 878,354,508 7 NTFS / exFAT / HPFS
/dev/sda3 878,563,326 976,771,071 98,207,746 5 Extended
/dev/sda5 968,554,496 976,771,071 8,216,576 82 Linux swap / Solaris
/dev/sda6 878,563,328 960,333,823 81,770,496 83 Linux
/dev/sda7 960,335,872 968,542,207 8,206,336 82 Linux swap / Solaris
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/sda1 549E09CC9E09A796 ntfs System Reserved
/dev/sda2 221C0FC81C0F9647 ntfs
/dev/sda5 1b511410-b22b-4fc2-ac86-750727016c10 swap
/dev/sda6 32c7eca0-f994-4f63-8a9c-6575edf1e8d5 ext4
/dev/sda7 3424c245-0871-49e2-b94a-4876756c2f6b swap
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/sda2 /media/221C0FC81C0F9647 fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/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=32c7eca0-f994-4f63-8a9c-6575edf1e8d5 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=32c7eca0-f994-4f63-8a9c-6575edf1e8d5
## 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-16-generic
uuid 32c7eca0-f994-4f63-8a9c-6575edf1e8d5
kernel /boot/vmlinuz-3.0.0-16-generic root=UUID=32c7eca0-f994-4f63-8a9c-6575edf1e8d5 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 32c7eca0-f994-4f63-8a9c-6575edf1e8d5
kernel /boot/vmlinuz-3.0.0-16-generic root=UUID=32c7eca0-f994-4f63-8a9c-6575edf1e8d5 ro single
initrd /boot/initrd.img-3.0.0-16-generic
title Ubuntu 11.10, kernel 3.0.0-12-generic
uuid 32c7eca0-f994-4f63-8a9c-6575edf1e8d5
kernel /boot/vmlinuz-3.0.0-12-generic root=UUID=32c7eca0-f994-4f63-8a9c-6575edf1e8d5 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 32c7eca0-f994-4f63-8a9c-6575edf1e8d5
kernel /boot/vmlinuz-3.0.0-12-generic root=UUID=32c7eca0-f994-4f63-8a9c-6575edf1e8d5 ro single
initrd /boot/initrd.img-3.0.0-12-generic
title Chainload into GRUB 2
root 32c7eca0-f994-4f63-8a9c-6575edf1e8d5
kernel /boot/grub/core.img
title Ubuntu 11.10, memtest86+
uuid 32c7eca0-f994-4f63-8a9c-6575edf1e8d5
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="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,msdos6)'
search --no-floppy --fs-uuid --set=root 32c7eca0-f994-4f63-8a9c-6575edf1e8d5
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=1600x1200
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 32c7eca0-f994-4f63-8a9c-6575edf1e8d5
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
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-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 32c7eca0-f994-4f63-8a9c-6575edf1e8d5
linux /boot/vmlinuz-3.0.0-16-generic root=UUID=32c7eca0-f994-4f63-8a9c-6575edf1e8d5 ro splash vga=799 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 32c7eca0-f994-4f63-8a9c-6575edf1e8d5
echo 'Loading Linux 3.0.0-16-generic ...'
linux /boot/vmlinuz-3.0.0-16-generic root=UUID=32c7eca0-f994-4f63-8a9c-6575edf1e8d5 ro recovery nomodeset splash vga=799
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-16-generic
}
submenu "Previous Linux versions" {
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 32c7eca0-f994-4f63-8a9c-6575edf1e8d5
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=32c7eca0-f994-4f63-8a9c-6575edf1e8d5 ro splash vga=799 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 32c7eca0-f994-4f63-8a9c-6575edf1e8d5
echo 'Loading Linux 3.0.0-12-generic ...'
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=32c7eca0-f994-4f63-8a9c-6575edf1e8d5 ro recovery nomodeset splash vga=799
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 32c7eca0-f994-4f63-8a9c-6575edf1e8d5
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 32c7eca0-f994-4f63-8a9c-6575edf1e8d5
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/sda2)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root 549E09CC9E09A796
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=32c7eca0-f994-4f63-8a9c-6575edf1e8d5 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda7 during installation
UUID=3424c245-0871-49e2-b94a-4876756c2f6b 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 2
= boot/vmlinuz-3.0.0-12-generic 1
= boot/vmlinuz-3.0.0-16-generic 1
= initrd.img 2
= initrd.img.old 2
= vmlinuz 1
= vmlinuz.old 1
======================== Unknown MBRs/Boot Sectors/etc: ========================
Unknown BootLoader on sda3
00000000 0f 84 c7 39 25 0a 0a 00 a2 7b 9a b0 6a 8f 7b b7 |...9%....{..j.{.|
00000010 70 8c 30 84 aa f7 55 55 be 93 e5 60 77 c9 9b bc |p.0...UU...`w...|
00000020 91 8c 30 84 0a bf bd f7 cf 9e db e4 b6 49 f2 ff |..0..........I..|
00000030 92 8c 51 8c 00 ab 55 55 cc 9a 92 40 92 ff f3 ff |..Q...UU...@....|
00000040 92 8c 51 8c 00 88 55 55 bd 00 98 83 f1 12 2b 69 |..Q...UU......+i|
00000050 51 84 c7 39 60 c0 80 00 07 56 00 60 db d4 94 36 |Q..9`....V.`...6|
00000060 cf 73 e7 39 ff 55 aa 00 03 62 80 6d 00 b6 d1 c8 |.s.9.U...b.m....|
00000070 ef 7b a7 31 ff ff dd 70 55 02 89 90 90 cd d4 77 |.{.1...pU......w|
00000080 8c 7b 81 10 0f 07 0c 08 71 48 83 94 ff d4 f6 96 |.{......qH......|
00000090 0f 84 ce 7b aa 55 fb fd 6b 50 90 94 24 da c6 96 |...{.U..kP..$...|
000000a0 0f 84 ce 7b aa 55 ff ff 6d 01 70 b2 27 72 22 27 |...{.U..m.p.'r"'|
000000b0 ce 7b 05 52 e8 68 68 68 01 00 48 82 24 48 82 24 |.{.R.hhh..H.$H.$|
000000c0 27 52 00 00 a8 a9 aa aa 00 01 00 00 00 00 00 00 |'R..............|
000000d0 08 42 c6 39 b9 a9 b9 a9 00 01 00 00 00 00 00 00 |.B.9............|
000000e0 08 42 e7 39 aa fe aa aa 07 00 49 94 a4 49 9e 24 |.B.9......I..I.$|
000000f0 28 4a e7 39 3f bf ff ff 9d 02 b1 90 bb 49 92 24 |(J.9?........I.$|
00000100 30 84 65 29 09 ad 57 ff 0b 9b 49 b2 6d b6 0d 00 |0.e)..W...I.m...|
00000110 51 8c 65 29 00 aa 55 ff ce 07 13 60 b7 49 92 24 |Q.e)..U....`.I.$|
00000120 91 8c 65 29 00 aa 55 ff 0d c5 49 b2 6d b6 0d 00 |..e)..U...I.m...|
00000130 b2 94 65 29 00 aa 55 ff 0f c0 49 b2 6d b6 0d 00 |..e)..U...I.m...|
00000140 92 94 85 29 00 aa 55 ff 0f c1 49 b2 6d b6 0d 00 |...)..U...I.m...|
00000150 92 94 85 29 00 aa 55 ff 0c c6 49 b2 6d b6 0d 00 |...)..U...I.m...|
00000160 b2 94 65 29 00 aa 55 ff 0e c4 49 b2 6d b6 0d 00 |..e)..U...I.m...|
00000170 b2 94 45 21 00 aa 55 ff 10 bd 49 b2 6d b6 0d 00 |..E!..U...I.m...|
00000180 b2 94 05 19 00 aa 55 ff 0e bf 49 b2 6d b6 0d 00 |......U...I.m...|
00000190 b2 94 05 19 00 aa 55 ff b5 00 00 d0 96 c9 1b 8f |......U.........|
000001a0 71 8c 83 08 00 2a a5 0b a4 35 80 54 27 b7 cf d6 |q....*...5.T'...|
000001b0 51 84 8e 6b 00 5f fd fa 11 97 49 a2 6d b2 00 fe |Q..k._....I.m...|
000001c0 ff ff 82 fe ff ff 02 28 5d 05 00 60 7d 00 00 fe |.......(]..`}...|
000001d0 ff ff 05 fe ff ff 01 00 00 00 01 b8 df 04 00 00 |................|
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
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
-
Pro jistotu obnov Grub
sudo grub-install /dev/sda
sudo update-grub
Pokud se ani potom sda2 v grub.cfg neobjeví, zkus ten Windows záznam opravit takto (jen dané dva řádky): set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root 221C0FC81C0F9647
Jiný problém je, že sis nainstaloval Grub do /dev/sda1, kde je Windows Recovery Partition, to bys měl taky opravit, jinak ti nebude fungovat, ale jak, to nevím, bude na to potřeba nějaký Win nástroj ;(
-
Tak když jsem se pokusil o tu reinstalaci grubu napsalo to: /dev/sda does not have any corresponding BIOS drive. Zkusil jsem tedy alespon tu editaci souboru grub.cfg a při pokusu o bootvání to vypíše: error: no argument specified...
-
Co vypíše
dpkg -l *grub*
sudo grub-install --recheck /dev/sda
-
Ten první vypíše :
Požadované=Neznámé/Instalovat/Odinstalovat/Vyčistit/Podržet
| Stav=Ne/Instalován/Konfigurační soubory/Rozbalen/Nezkonfigurován/Nekompletní
| instalace/Očekávané spouštěče/Nevyřízené spouštěče
|/ Chyba?=(nic)/Nutná přeinstalace (Stav,Chyba: velké písmeno=chyba)
||/ Název Verze Popis
+++-==============-==============-============================================
un espresso-grub <none> (popis není k dispozici)
ii grub 0.97-29ubuntu6 GRand Unified Bootloader (Legacy version)
ii grub-common 1.99-12ubuntu5 GRand Unified Bootloader (common files)
un grub-coreboot <none> (popis není k dispozici)
un grub-doc <none> (popis není k dispozici)
un grub-efi <none> (popis není k dispozici)
un grub-efi-amd64 <none> (popis není k dispozici)
un grub-efi-ia32 <none> (popis není k dispozici)
un grub-emu <none> (popis není k dispozici)
un grub-gfxpayloa <none> (popis není k dispozici)
un grub-ieee1275 <none> (popis není k dispozici)
un grub-legacy <none> (popis není k dispozici)
un grub-legacy-do <none> (popis není k dispozici)
un grub-linuxbios <none> (popis není k dispozici)
rc grub-pc 1.99-12ubuntu5 GRand Unified Bootloader, version 2 (PC/BIOS
ii grub-pc-bin 1.99-12ubuntu5 GRand Unified Bootloader, version 2 (PC/BIOS
un grub-yeeloong <none> (popis není k dispozici)
un grub2 <none> (popis není k dispozici)
un grub2-common <none> (popis není k dispozici)
a ten druhý: Probing devices to guess BIOS drives. This may take a long time.
Searching for GRUB installation directory ... found: /boot/grub
Installing GRUB to /dev/sda as (hd0)...
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
(fd0) /dev/fd0
(hd0) /dev/sda
ale když jsem to zkoušel nastartovat pak, nebyla tam ani taková ta klasická nabídka ta se objevila až po rychlém stisknuti Esc, ale byla černá místo fialové a Windows tam ani nebylo.
-
Bohužel v tom máš binec, máš nainstalován mix starého Grubu (1, legacy) a nového (2, 1.99). Měl by ses rozhodnout pro jeden.
Předpokládejme, že ses rozhodl pro (v Ubuntu) výchozí Grub, tedy Grub2, pak tedysudo apt-get purge grub #tím se odinstaluje starý, legacy
sudo apt-get install grub-pc
Pokud vše v pořádku, pak znovu nahrání do MBRsudo grub-install --recheck /dev/sda
sudo update-grub
-
Ahoj. Nechci zakládat nové téma, když mám podobný problém, tak snad mě neukamenujete za kryptopost :)
Měl jsem dualboot Win7 a Linux Mint 18.1, všechno fungovalo ok, jenže jsem si při instalaci Mintu zvolil šifrování dom. složky a nerozdělil si disk na dostatečně velký oddíl, takže mi včera začal hlásit, že zbývá málo místa na disku.
Win7 používám vpodstatě jen kvůli jedinému specifickému programu a měl jsem disk rozdělený ještě na jednu logickou jednotku cca 20GB kvůli datům a aby se mi ty všechny pracovní věci neválely na C: u Windows. Takže jsem měl 3 disky: Win, data a Mint
Když jsem zjistil, že má Mint málo místa, rozhodl jsem se jít tou nejsnažšší cestou, protože se mi nechtělo další 3dny přeinstalovávat win, když je linux přeinstalovaný za pár minut. Rozhodl jsem se, že si z Win disku ještě kousek ukrojím, odeberu diskové oddíly s daty a linuxem a udělám z toho jeden velký, na který znova nainstaluju Mint.
To jsem udělal ve Windows ve správě disků, ale asi jsem měl restartovat a ještě jednou nechat naběhnout win, aby si to porovnal. Bohužel jsem restartoval a rovnou z flashky znova nainstaloval Mint. Tentokrát bez šifrování dom. složky.
Disk rozdělen, Mint šlape, ale když v Grubu vyberu spuštění Windows, obrazovka na vteřinu zčerná a vrátí mě to do Grubu.
Zkoušel jsem už snad všechno možné, co jsem na internetu našel, co se týkalo problémů spuštění windows. V Grub-customizeru měnit co se dalo, ale stejně ty prokleté Windows prostě nenastartují a vrací se to do Grubu.
Vím, že to bude jen nějaká hovadina, někde to bude chtít jen přepsat jedno číslo, ale já fakt nevím. Můžete mi na to prosím někdo mrknout a poradit?
fdisk -l:
Disk /dev/ram0: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram1: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram2: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram3: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram4: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram5: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram6: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram7: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram8: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram9: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram10: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram11: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram12: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram13: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram14: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram15: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/sda: 223,6 GiB, 240057409536 bytes, 468862128 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x0ef61ca8
Zařízení Zaveditelný Start Konec Sektory Size Id Druh
/dev/sda1 * 2048 1024061 1022014 499M 7 HPFS/NTFS/exFAT
/dev/sda2 1026048 344878512 343852465 164G 7 HPFS/NTFS/exFAT
/dev/sda3 344879104 388675583 43796480 20,9G 7 HPFS/NTFS/exFAT
/dev/sda4 388677630 468860927 80183298 38,2G 5 Rozšířený
/dev/sda5 388677632 452257791 63580160 30,3G 83 Linux
/dev/sda6 452259840 468860927 16601088 7,9G 82 Linux swap/Solaris
Partition 4 does not start on physical sector boundary.
boot info script:
Boot Info Script 0.61 [1 April 2012]
============================= 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
in partition 97 for .
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 406230992 of the same hard drive
for core.img. core.img is at this location and looks
in partition 97 for . 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:
Boot files: /Windows/System32/winload.exe
sda3: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda4: __________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Linux Mint 18.1 Serena
Boot files: /boot/grub/grub.cfg /etc/fstab
sda6: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 223,6 GiB, 240057409536 bytes, 468862128 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 * 2,048 1,024,061 1,022,014 7 NTFS / exFAT / HPFS
/dev/sda2 1,026,048 344,878,512 343,852,465 7 NTFS / exFAT / HPFS
/dev/sda3 344,879,104 388,675,583 43,796,480 7 NTFS / exFAT / HPFS
/dev/sda4 388,677,630 468,860,927 80,183,298 5 Extended
/dev/sda5 388,677,632 452,257,791 63,580,160 83 Linux
/dev/sda6 452,259,840 468,860,927 16,601,088 82 Linux swap / Solaris
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/sda1 9A32EC0732EBE5EB ntfs Rezervováno systémem
/dev/sda2 CE2AF26E2AF252C7 ntfs
/dev/sda3 28607BDB607BADE6 ntfs Nový svazek
/dev/sda5 c7845b28-9c91-4c08-b8f8-ffcc9f4aaaea ext4
/dev/sda6 e12e33c9-864d-452d-b5ac-eedaffb7d0e3 swap
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/sda2 /media/apin/CE2AF26E2AF252C7 fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)
/dev/sda5 / ext4 (rw,relatime,errors=remount-ro,data=ordered)
=========================== 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
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="${saved_entry}"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
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 {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 c7845b28-9c91-4c08-b8f8-ffcc9f4aaaea
else
search --no-floppy --fs-uuid --set=root c7845b28-9c91-4c08-b8f8-ffcc9f4aaaea
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=cs_CZ
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=10
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=10
fi
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/06_mint_theme ###
set menu_color_normal=white/black
set menu_color_highlight=white/light-gray
### END /etc/grub.d/06_mint_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
menuentry 'Linux Mint 18.1 Cinnamon 64-bit' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-c7845b28-9c91-4c08-b8f8-ffcc9f4aaaea' {
recordfail
savedefault
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 c7845b28-9c91-4c08-b8f8-ffcc9f4aaaea
else
search --no-floppy --fs-uuid --set=root c7845b28-9c91-4c08-b8f8-ffcc9f4aaaea
fi
linux /boot/vmlinuz-4.4.0-53-generic root=UUID=c7845b28-9c91-4c08-b8f8-ffcc9f4aaaea ro quiet splash $vt_handoff
initrd /boot/initrd.img-4.4.0-53-generic
}
submenu 'Advanced options for Linux Mint 18.1 Cinnamon 64-bit' $menuentry_id_option 'gnulinux-advanced-c7845b28-9c91-4c08-b8f8-ffcc9f4aaaea' {
menuentry 'Linux Mint 18.1 Cinnamon 64-bit, with Linux 4.4.0-53-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-53-generic-advanced-c7845b28-9c91-4c08-b8f8-ffcc9f4aaaea' {
recordfail
savedefault
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 c7845b28-9c91-4c08-b8f8-ffcc9f4aaaea
else
search --no-floppy --fs-uuid --set=root c7845b28-9c91-4c08-b8f8-ffcc9f4aaaea
fi
echo 'Loading Linux 4.4.0-53-generic ...'
linux /boot/vmlinuz-4.4.0-53-generic root=UUID=c7845b28-9c91-4c08-b8f8-ffcc9f4aaaea ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.4.0-53-generic
}
menuentry 'Linux Mint 18.1 Cinnamon 64-bit, with Linux 4.4.0-53-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-53-generic-init-upstart-c7845b28-9c91-4c08-b8f8-ffcc9f4aaaea' {
recordfail
savedefault
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 c7845b28-9c91-4c08-b8f8-ffcc9f4aaaea
else
search --no-floppy --fs-uuid --set=root c7845b28-9c91-4c08-b8f8-ffcc9f4aaaea
fi
echo 'Loading Linux 4.4.0-53-generic ...'
linux /boot/vmlinuz-4.4.0-53-generic root=UUID=c7845b28-9c91-4c08-b8f8-ffcc9f4aaaea ro quiet splash $vt_handoff init=/sbin/upstart
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.4.0-53-generic
}
menuentry 'Linux Mint 18.1 Cinnamon 64-bit, with Linux 4.4.0-53-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-53-generic-recovery-c7845b28-9c91-4c08-b8f8-ffcc9f4aaaea' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 c7845b28-9c91-4c08-b8f8-ffcc9f4aaaea
else
search --no-floppy --fs-uuid --set=root c7845b28-9c91-4c08-b8f8-ffcc9f4aaaea
fi
echo 'Loading Linux 4.4.0-53-generic ...'
linux /boot/vmlinuz-4.4.0-53-generic root=UUID=c7845b28-9c91-4c08-b8f8-ffcc9f4aaaea ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.4.0-53-generic
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/11_lupin ###
### END /etc/grub.d/11_lupin ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/21_memtest86+ ###
menuentry 'Memory test (memtest86+)' {
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 c7845b28-9c91-4c08-b8f8-ffcc9f4aaaea
else
search --no-floppy --fs-uuid --set=root c7845b28-9c91-4c08-b8f8-ffcc9f4aaaea
fi
knetbsd /boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 c7845b28-9c91-4c08-b8f8-ffcc9f4aaaea
else
search --no-floppy --fs-uuid --set=root c7845b28-9c91-4c08-b8f8-ffcc9f4aaaea
fi
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/21_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober_proxy ###
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
fi
### END /etc/grub.d/30_os-prober_proxy ###
### BEGIN /etc/grub.d/40_custom_proxy ###
menuentry "Windows 7 (loader) (on /dev/sda1) stary" --class windows --class os $menuentry_id_option 'osprober-chain-9A32EC0732EBE5EB' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci1,msdos1 9A32EC0732EBE5EB
else
search --no-floppy --fs-uuid --set=root 9A32EC0732EBE5EB
fi
parttool ${root} hidden-
chainloader +1
}
### END /etc/grub.d/40_custom_proxy ###
### BEGIN /etc/grub.d/41_uefi-firmware ###
### END /etc/grub.d/41_uefi-firmware ###
### BEGIN /etc/grub.d/42_custom_proxy ###
# 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/42_custom_proxy ###
### BEGIN /etc/grub.d/43_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/43_custom ###
### BEGIN /etc/grub.d/44_os-prober_proxy ###
menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os $menuentry_id_option 'osprober-chain-9A32EC0732EBE5EB' {
savedefault
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 9A32EC0732EBE5EB
else
search --no-floppy --fs-uuid --set=root 9A32EC0732EBE5EB
fi
parttool ${root} hidden-
chainloader +1
}
### END /etc/grub.d/44_os-prober_proxy ###
--------------------------------------------------------------------------------
=============================== 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>
# / was on /dev/sda5 during installation
UUID=c7845b28-9c91-4c08-b8f8-ffcc9f4aaaea / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=e12e33c9-864d-452d-b5ac-eedaffb7d0e3 none swap sw 0 0
--------------------------------------------------------------------------------
=================== sda5: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
=============================== StdErr Messages: ===============================
cat: /tmp/BootInfo-6JTNdstI/Tmp_Log: Adresář nebo soubor neexistuje
-
1. Proč jsi ty úpravy oddílů neudělal z GParted (live), ale z běžících win??
2. Proč si (rozumně) dělíš win. na systém a data, zatímco v mintu to plácáš dohromady??
-----------------------------
Co teď:
1. Nejprve nabootuj instalačku (nebo opravný disk) Windows.
Vyber "Opravit spouštění počítače"
Tím bude opraveno spoutštění win, nicméně přepíše to grub, takže se nedostaneš do Mintu.
2. Nabootuj tento nástroj https://sourceforge.net/projects/boot-repair-cd/
nebo live Mint a doinstaluj si do něj
sudo apt-add-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair
boot-repair
3. Proveď opravu grubu. Zvol "advanced" a zruš zatržítko u položky "Purge grub"
Po provedení opravy restartuj a vše bude fungovat jako dřív.
Pokud sis ovšem oddíly s Windows poškodil, oprava se nezdaří a budeš muset vše "od píky" přeinstalovat...
-
Zapomněl jsem dodat, že opravu spouštění win z instalačního cd jsem samozřejmě zkoušel. Bohužel to žádný problém nenašlo :(
-
Zapomněl jsem dodat, že opravu spouštění win z instalačního cd jsem samozřejmě zkoušel. Bohužel to žádný problém nenašlo :(
V tom případě budeš muset win přeinstalovat a pak opravit grub. Zálohu win. náhodou nemáš - proč?
Ušetřilo by ti to spoutu práce a času...
-
Bitovou kopii win někde mám na domácím serveru. Ale právěže reinstalu win jsem se chtěl vyhnout.
No nic, pokavaď není jiná možnost...
Každopádně díky :)
-
Bitové kopii se nedaří udělat obnovu kvůli tomu, že jsem ten win disk ukrojil...
Nicméně pokud nastartuju notebook z Hiren's Boot Cd a vyberu první volbu Boot OS from HDD, tak windows normálně naběhnou.
Takže to opravdu bude chtít jen přepsat něco v konfiguraci grubu. Dokázal by mě někdo nakopnout správným směrem? Pokud zkusím vytvořit novou položku nebo upravit tu stávající v Grub Customizeru, tak se to odmítá uložit a vyhodí okno Chyba při ukládání konfigurace grubu:
Podívejte se prosím na výstup příkazové řádky níže. Pokud si myslíte, že je to chyba Grub Customizeru, prosím založte ji v https://launchpad.net/grub-customizer! Obecně by Grub Customizer měl předcházet chybám jako je tato.
failed running 'grub-mkconfig -o "/boot/grub/grub.cfg"' output:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.0-53-generic
Found initrd image: /boot/initrd.img-4.4.0-53-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
File descriptor 9 (/proc/2487/mounts) leaked on lvs invocation. Parent PID 22707: /bin/sh
Found Windows 7 (loader) on /dev/sda1
File descriptor 9 (/proc/2487/mounts) leaked on lvs invocation. Parent PID 23343: /bin/sh
Found Windows 7 (loader) on /dev/sda1
chyba: syntax error.
chyba: Incorrect command.
chyba: syntax error.
Syntax error at line 263
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
done
Snažil jsem se tam nacpat ten spuštěcí příkaz, kterým se spouští win z Hirens CD:
find --set-root --ignore-floppies --ignore-cd /bootmgr || find --set-root --ignore-floppies --ignore-cd /ntldr || rootnoverify (hd0) && chainloader +1 && boot
map () (hd0) && map (hd0) () && map --rehook
find --set-root --devices=h /bootmgr || find --set-root --ignore-floppies --ignore-cd /ntldr
chainloader /bootmgr || chainloader /ntldr
Poradí někdo, co je špatně?
-
Nevím, co řešíš - návod na opravu grubu jsi dostal před čtyřmi dny.....
-
Aha sry, já to přehlédnul kvůli nefunkční obnově z win disku :)
Každopádně zdá se, že ted už to běží jak má :)
Ještě jednou díky :)