[GRUB2] Update-grub nie wykrywa windowsa

Wyłącznie system! Wątpliwości dotyczące aplikacji proszę umieszczać niżej, w odpowiednich forach.
alatar
Piegowaty Guziec
Piegowaty Guziec
Posty: 18
Rejestracja: 21 sie 2011, 20:59
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: Unity
Architektura: x86_64

[GRUB2] Update-grub nie wykrywa windowsa

Post autor: alatar »

Witam
Postanowiłem zmienić kolejność systemów w GRUBie, więc pozmieniałem numerki w nazwach plików w folderze /etc/grub.d. Następnie wykonałem polecenie update-grub:

Kod: Zaznacz cały

Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-34-generic
Found initrd image: /boot/initrd.img-3.2.0-34-generic
Found linux image: /boot/vmlinuz-3.2.0-29-generic
Found initrd image: /boot/initrd.img-3.2.0-29-generic
Found memtest86+ image: /memtest86+.bin
done
Niestety windows 8 nie został wykryty. Proszę o pomoc w naprawieniu mego GRUBa. :)

ls /etc/grub.d

Kod: Zaznacz cały

00_header  05_debian_theme  10_linux  20_linux_xen  20_memtest86+  30_os-prober  40_custom  41_custom  README
cat /etc/default/grub

Kod: Zaznacz cały

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
cat /boot/grub/grub.cfg

Kod: Zaznacz cały

#
# 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 542df093-09ad-4daf-a519-879079d7bb78
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  insmod part_msdos
  insmod ext2
  set root='(hd0,msdos7)'
  search --no-floppy --fs-uuid --set=root a4f3bcda-e7c5-4038-ac74-37fec86eb86a
  set locale_dir=($root)/grub/locale
  set lang=pl_PL
  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, za pomocą systemu Linux 3.2.0-34-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,msdos7)'
	search --no-floppy --fs-uuid --set=root a4f3bcda-e7c5-4038-ac74-37fec86eb86a
	linux	/vmlinuz-3.2.0-34-generic root=UUID=542df093-09ad-4daf-a519-879079d7bb78 ro   quiet splash $vt_handoff
	initrd	/initrd.img-3.2.0-34-generic
}
menuentry 'Ubuntu, za pomocą systemu Linux 3.2.0-34-generic (tryb ratunkowy)' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos7)'
	search --no-floppy --fs-uuid --set=root a4f3bcda-e7c5-4038-ac74-37fec86eb86a
	echo	'Wczytywanie systemu Linux 3.2.0-34-generic...'
	linux	/vmlinuz-3.2.0-34-generic root=UUID=542df093-09ad-4daf-a519-879079d7bb78 ro recovery nomodeset 
	echo	'Wczytywanie początkowego dysku RAM...'
	initrd	/initrd.img-3.2.0-34-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, za pomocą systemu Linux 3.2.0-29-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,msdos7)'
	search --no-floppy --fs-uuid --set=root a4f3bcda-e7c5-4038-ac74-37fec86eb86a
	linux	/vmlinuz-3.2.0-29-generic root=UUID=542df093-09ad-4daf-a519-879079d7bb78 ro   quiet splash $vt_handoff
	initrd	/initrd.img-3.2.0-29-generic
}
menuentry 'Ubuntu, za pomocą systemu Linux 3.2.0-29-generic (tryb ratunkowy)' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos7)'
	search --no-floppy --fs-uuid --set=root a4f3bcda-e7c5-4038-ac74-37fec86eb86a
	echo	'Wczytywanie systemu Linux 3.2.0-29-generic...'
	linux	/vmlinuz-3.2.0-29-generic root=UUID=542df093-09ad-4daf-a519-879079d7bb78 ro recovery nomodeset 
	echo	'Wczytywanie początkowego dysku RAM...'
	initrd	/initrd.img-3.2.0-29-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,msdos7)'
	search --no-floppy --fs-uuid --set=root a4f3bcda-e7c5-4038-ac74-37fec86eb86a
	linux16	/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos7)'
	search --no-floppy --fs-uuid --set=root a4f3bcda-e7c5-4038-ac74-37fec86eb86a
	linux16	/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 ###
namok
Przebojowy Jelonek
Przebojowy Jelonek
Posty: 1703
Rejestracja: 01 mar 2008, 12:21
Płeć: Mężczyzna
Wersja Ubuntu: 16.04
Środowisko graficzne: Unity
Architektura: x86_64
Kontakt:

Re: [GRUB2] Update-grub nie wykrywa windowsa

Post autor: namok »

Podaj wynik boot_info_script.
alatar
Piegowaty Guziec
Piegowaty Guziec
Posty: 18
Rejestracja: 21 sie 2011, 20:59
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: Unity
Architektura: x86_64

Re: [GRUB2] Update-grub nie wykrywa windowsa

Post autor: alatar »

Dodam w takim razie, że windows 8 jest na sda1, a /boot na sda7.

Kod: Zaznacz cały

                  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 
    for (,msdos7)/grub on this drive.

sda1: __________________________________________________________________________

    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:        /bootmgr /Windows/System32/winload.exe

sda2: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  -
    Boot sector info: 

sda5: __________________________________________________________________________

    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:        

sda6: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 12.04.1 LTS
    Boot files:        /etc/fstab

sda7: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        /grub/grub.cfg /grub/core.img

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 256.1 GB, 256060514304 bytes
głowic: 255, sektorów/ścieżkę: 63, cylindrów: 31130, w sumie sektorów: 500118192
Jednostka = sektorów, czyli 1 * 512 = 512 bajtów
Rozmiar sektora (logiczny/fizyczny) w bajtach: 512 / 512

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1    *          2,048   153,602,047   153,600,000   7 NTFS / exFAT / HPFS
/dev/sda2         153,602,048   500,117,503   346,515,456   5 Extended
/dev/sda5         153,604,096   455,071,743   301,467,648   7 NTFS / exFAT / HPFS
/dev/sda6         455,073,792   499,822,591    44,748,800  83 Linux
/dev/sda7         499,824,640   500,117,503       292,864  83 Linux


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda1        5436EBC6328E314C                       ntfs       
/dev/sda5        5A534B7835E6D1B6                       ntfs       
/dev/sda6        542df093-09ad-4daf-a519-879079d7bb78   ext4       
/dev/sda7        a4f3bcda-e7c5-4038-ac74-37fec86eb86a   ext4       

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/sda1        /mnt/windows             fuseblk    (rw,nosuid,nodev,noatime,allow_other,default_permissions,blksize=4096)
/dev/sda5        /mnt/data                fuseblk    (rw,nosuid,nodev,noatime,allow_other,default_permissions,blksize=4096)
/dev/sda6        /                        ext4       (rw,noatime,discard,errors=remount-ro)
/dev/sda7        /boot                    ext4       (rw,noatime,discard)


=============================== 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    noatime,discard,nodev,noexec,nosuid 0       0

# / was on /dev/sda6 during installation
UUID=542df093-09ad-4daf-a519-879079d7bb78 /               ext4    noatime,discard,errors=remount-ro 0       1
# /boot was on /dev/sda7 during installation
UUID=a4f3bcda-e7c5-4038-ac74-37fec86eb86a /boot           ext4    noatime,discard       0       2

#/dev/sda5
UUID=5A534B7835E6D1B6 /mnt/data ntfs noatime,discard,utf8,umask=007,uid=1000,gid=46 0 0
#/dev/sda1
UUID=5436EBC6328E314C /mnt/windows ntfs noatime,discard,utf8,umask=007,gid=46 0 0

tmpfs   /tmp       tmpfs   defaults,noatime,mode=1777   0  0
tmpfs   /var/spool tmpfs   defaults,noatime,mode=1777   0  0
tmpfs   /var/tmp   tmpfs   defaults,noatime,mode=1777   0  0
tmpfs   /var/log   tmpfs   defaults,noatime,mode=0755   0  0--------------------------------------------------------------------------------

=================== sda6: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)

               =                initrd.img                                     3
               =                initrd.img.old                                 2
               =                vmlinuz                                        2
               =                vmlinuz.old                                    2

============================= sda7/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 542df093-09ad-4daf-a519-879079d7bb78
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  insmod part_msdos
  insmod ext2
  set root='(hd0,msdos7)'
  search --no-floppy --fs-uuid --set=root a4f3bcda-e7c5-4038-ac74-37fec86eb86a
  set locale_dir=($root)/grub/locale
  set lang=pl_PL
  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, za pomocą systemu Linux 3.2.0-34-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,msdos7)'
	search --no-floppy --fs-uuid --set=root a4f3bcda-e7c5-4038-ac74-37fec86eb86a
	linux	/vmlinuz-3.2.0-34-generic root=UUID=542df093-09ad-4daf-a519-879079d7bb78 ro   quiet splash $vt_handoff
	initrd	/initrd.img-3.2.0-34-generic
}
menuentry 'Ubuntu, za pomocą systemu Linux 3.2.0-34-generic (tryb ratunkowy)' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos7)'
	search --no-floppy --fs-uuid --set=root a4f3bcda-e7c5-4038-ac74-37fec86eb86a
	echo	'Wczytywanie systemu Linux 3.2.0-34-generic...'
	linux	/vmlinuz-3.2.0-34-generic root=UUID=542df093-09ad-4daf-a519-879079d7bb78 ro recovery nomodeset 
	echo	'Wczytywanie początkowego dysku RAM...'
	initrd	/initrd.img-3.2.0-34-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, za pomocą systemu Linux 3.2.0-29-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,msdos7)'
	search --no-floppy --fs-uuid --set=root a4f3bcda-e7c5-4038-ac74-37fec86eb86a
	linux	/vmlinuz-3.2.0-29-generic root=UUID=542df093-09ad-4daf-a519-879079d7bb78 ro   quiet splash $vt_handoff
	initrd	/initrd.img-3.2.0-29-generic
}
menuentry 'Ubuntu, za pomocą systemu Linux 3.2.0-29-generic (tryb ratunkowy)' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos7)'
	search --no-floppy --fs-uuid --set=root a4f3bcda-e7c5-4038-ac74-37fec86eb86a
	echo	'Wczytywanie systemu Linux 3.2.0-29-generic...'
	linux	/vmlinuz-3.2.0-29-generic root=UUID=542df093-09ad-4daf-a519-879079d7bb78 ro recovery nomodeset 
	echo	'Wczytywanie początkowego dysku RAM...'
	initrd	/initrd.img-3.2.0-29-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,msdos7)'
	search --no-floppy --fs-uuid --set=root a4f3bcda-e7c5-4038-ac74-37fec86eb86a
	linux16	/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos7)'
	search --no-floppy --fs-uuid --set=root a4f3bcda-e7c5-4038-ac74-37fec86eb86a
	linux16	/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 ###
--------------------------------------------------------------------------------

=================== sda7: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)

               =                grub/core.img                                  1
               =                grub/grub.cfg                                  1
               =                initrd.img-3.2.0-29-generic                    2
               =                initrd.img-3.2.0-34-generic                    3
               =                vmlinuz-3.2.0-29-generic                       2
               =                vmlinuz-3.2.0-34-generic                       2

=============================== StdErr Messages: ===============================

xz: (stdin): Dane skompresowane są uszkodzone
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

Awatar użytkownika
jacekalex
Gibki Gibbon
Gibki Gibbon
Posty: 4707
Rejestracja: 17 cze 2007, 02:54
Płeć: Mężczyzna
Wersja Ubuntu: inny OS
Środowisko graficzne: MATE
Architektura: x86_64

Re: [GRUB2] Update-grub nie wykrywa windowsa

Post autor: jacekalex »

Pewnie potrzebujesz:

Kod: Zaznacz cały

apt-cache search os-prober
os-prober - Narzędzie do wykrywania innych systemów operacyjnych na dyskach
Spróbuj:

Kod: Zaznacz cały

sudo apt-get install os-prober 
sudo os-prober
Do czasów Windows 7 to starczało.

Czy zadziała Windows 8?
Nie wiem, - ten wymaga UEFI-boot.

Pozdrawiam
:craz:
Problemy rozwiązujemy na forum nie na PW -> Niech inni na tym skorzystają.
Komputer jest jak klimatyzacja - gdy otworzysz okna, robi się bezużyteczny...
Linux User #499936
Inny OS: Gentoo Linux :)
alatar
Piegowaty Guziec
Piegowaty Guziec
Posty: 18
Rejestracja: 21 sie 2011, 20:59
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: Unity
Architektura: x86_64

Re: [GRUB2] Update-grub nie wykrywa windowsa

Post autor: alatar »

sudo apt-get install os-prober

Kod: Zaznacz cały

Czytanie list pakietów... Gotowe
Budowanie drzewa zależności       
Odczyt informacji o stanie... Gotowe
os-prober jest już w najnowszej wersji.
0 aktualizowanych, 0 nowo instalowanych, 0 usuwanych i 11 nieaktualizowanych.
sudo os-prober
sudo update-grub

Kod: Zaznacz cały

Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-34-generic
Found initrd image: /boot/initrd.img-3.2.0-34-generic
Found linux image: /boot/vmlinuz-3.2.0-29-generic
Found initrd image: /boot/initrd.img-3.2.0-29-generic
Found memtest86+ image: /memtest86+.bin
done
Awatar użytkownika
jacekalex
Gibki Gibbon
Gibki Gibbon
Posty: 4707
Rejestracja: 17 cze 2007, 02:54
Płeć: Mężczyzna
Wersja Ubuntu: inny OS
Środowisko graficzne: MATE
Architektura: x86_64

Re: [GRUB2] Update-grub nie wykrywa windowsa

Post autor: jacekalex »

Rzuć okiem na to:
http://www.linuxbsdos.com/2012/11/05/du ... -hardware/
Może coś wywróżysz z tego sznurka, jak z fusów po herbacie. ;)
Problemy rozwiązujemy na forum nie na PW -> Niech inni na tym skorzystają.
Komputer jest jak klimatyzacja - gdy otworzysz okna, robi się bezużyteczny...
Linux User #499936
Inny OS: Gentoo Linux :)
alatar
Piegowaty Guziec
Piegowaty Guziec
Posty: 18
Rejestracja: 21 sie 2011, 20:59
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: Unity
Architektura: x86_64

Re: [GRUB2] Update-grub nie wykrywa windowsa

Post autor: alatar »

Z tego co się orientuję to Windows 8 nie wymaga UEFI (którego nawet nie posiadam), więc tamten opis raczej niewiele pomoże.

Najpierw instalowałem win8 a potem Ubuntu i wszystko cacy chodziło. Dopiero kiedy zmieniłem kolejność i dałem update-grub to z GRUBa zniknął windows. Przy instalacji musiał zostać jakoś wykryty, a ustawień praktycznie nic nie zmieniałem, więc no idea co jest nie tak...

EDIT:
Walnąłem nowy plik: 30_windows_8:

Kod: Zaznacz cały

#!/bin/sh -e
cat << EOF
menuentry "Windows 8" {
set root=(hd0,1)
chainloader (hd0,1)+1
}
EOF
I dałem update-grub. Systemu nie znalazło, ale w GRUBie pojawił się nowy wpis i kiedy go wybrałem dostałem windowsowy blue screen z napisem "Recovery. wystąpił błąd w rejestrze 0xc0000000f Boot Confirution Data".
Trochę mi się nie chce wierzyć, że coś się skopało z loaderem windowsa akurat w chwili kiedy chciałem zmienić kolejność (wcześniej bez problemów chodziło). Próbować przywracać bootloader windowsowy i potem GRUBa czy ktoś ma jakiś inny pomysł?
Ostatnio zmieniony 14 gru 2012, 08:24 przez alatar, łącznie zmieniany 1 raz.
namok
Przebojowy Jelonek
Przebojowy Jelonek
Posty: 1703
Rejestracja: 01 mar 2008, 12:21
Płeć: Mężczyzna
Wersja Ubuntu: 16.04
Środowisko graficzne: Unity
Architektura: x86_64
Kontakt:

Re: [GRUB2] Update-grub nie wykrywa windowsa

Post autor: namok »

alatar pisze:Trochę mi się nie chce wierzyć, że coś się skopało z loaderem windowsa akurat w chwili kiedy chciałem zmienić kolejność (wcześniej bez problemów chodziło). Próbować przywracać bootloader windowsowy i potem GRUBa czy ktoś ma jakiś inny pomysł?
Niestety bootloader windows jest uszkodzony. Twoje pliki startowe:
sda1: __________________________________________________________________________

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: /bootmgr /Windows/System32/winload.exe
Inne prawidłowe:
sda1: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows Vista
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows Vista
Boot files/dirs: /bootmgr /Boot/BCD /Windows/System32/winload.exe
Uruchom komputer z płyty instalacyjnej windows i wybierz naprawianie podczas uruchamiania. Czasem trzeba to powtórzyć kilkakrotnie.
alatar
Piegowaty Guziec
Piegowaty Guziec
Posty: 18
Rejestracja: 21 sie 2011, 20:59
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: Unity
Architektura: x86_64

Re: [GRUB2] Update-grub nie wykrywa windowsa

Post autor: alatar »

Naprawione. Więcej było gadania niż roboty. Nawet GRUBa nie trzeba było przywracać.

Win8 CD -> Repair PC -> Troubleshooting -> Advanced Options -> Automatic Rapair (Fix some problems that keep windows from loading).

SOLVED.
Dziękuję za pomoc.
ODPOWIEDZ

Wróć do „Instalacja, aktualizacja i konfiguracja Ubuntu”

Kto jest online

Użytkownicy przeglądający to forum: Amazon [Bot] i 16 gości