[+] Debian Wheezy obok Windows 8 - nie mog

Pomoc dotycząca instalacji systemu
brahoo
Posty: 3
Rejestracja: 18 listopada 2013, 23:48

[+] Debian Wheezy obok Windows 8 - nie mogę przywrócić Gruba

Post autor: brahoo »

Witam.

Jestem początkującym w Linuksie. Kupiłem laptopa Sony Vaio SVE1713M1EB z preinstalowanym Windowsem 8. Zainstalowałem Debiana przez płytę netinstall. Od tej pory korzystałem wyłącznie z Debiana i nie włączałem Windowsa.

Jednak, po pierwszym włączeniu Windowsa po instalacji Debiana zniknął mi Grub.

Teraz, po włączeniu komputera nie pojawia się okno wyboru tylko od razu uruchamia się Windows.

Korzystając z modułu ratunkowego na płycie instalacyjnej, przywracałem Gruba według tej instrukcji http://dug.net.pl/drukuj/77/przywracani ... ca_chroot/,
instalował się bez błędów ale nadal nie uruchamiał się.

Próbowałem skorzystać również z podpowiedzi zawartych w tym wątku:

content/251-GRUB-instalacja-konfiguracja-naprawa-itp,
ale podczas uruchamiania linii poleceń gruba na płycie instalacyjnej i wpisaniu polecenia:

Kod: Zaznacz cały

root (sd0,7)
wyświetla mi:

Kod: Zaznacz cały

 error:unknown command 'root' 
Podczas używania środowiska chroot i wydania polecenia:

Kod: Zaznacz cały

grub
bash: grub: nie znaleziono polecenia 

Co dziwne, nie pomogła nawet, ponowna instalacja całego systemu z płyty.

Poniżej pozostałe informacje:

Kod: Zaznacz cały

 Linux debian 3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64 GNU/Linux 

Kod: Zaznacz cały

 amd 64 

Kod: Zaznacz cały

 00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
    Subsystem: Sony Corporation Device 90ac
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
    Subsystem: Sony Corporation Device 90ac
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
    Subsystem: Sony Corporation Device 90ac
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
    Subsystem: Sony Corporation Device 90ac
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
    Subsystem: Sony Corporation Device 90ac
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
    Subsystem: Sony Corporation Device 90ac
00:1f.0 ISA bridge: Intel Corporation HM76 Express Chipset LPC Controller (rev 04)
    Subsystem: Sony Corporation Device 90ac
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
    Subsystem: Sony Corporation Device 90ac
00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
    Subsystem: Sony Corporation Device 90ac
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Thames [Radeon 7500M/7600M Series]
    Subsystem: Sony Corporation Device 90ac
01:00.1 Audio device: Advanced Micro Devices [AMD] nee ATI Turks/Whistler HDMI Audio [Radeon HD 6000 Series]
    Subsystem: Sony Corporation Device 90ac
02:00.0 Network controller: Atheros Communications Inc. AR9485 Wireless Network Adapter (rev 01)
    Subsystem: Foxconn International, Inc. Device e044
08:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader (rev 01)
    Subsystem: Sony Corporation Device 90ac
0e:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 07)
    Subsystem: Sony Corporation Device 90ac 

Kod: Zaznacz cały

 00:00.0 0600: 8086:0154 (rev 09)
00:01.0 0604: 8086:0151 (rev 09)
00:14.0 0c03: 8086:1e31 (rev 04)
00:16.0 0780: 8086:1e3a (rev 04)
00:1a.0 0c03: 8086:1e2d (rev 04)
00:1b.0 0403: 8086:1e20 (rev 04)
00:1c.0 0604: 8086:1e10 (rev c4)
00:1c.1 0604: 8086:1e12 (rev c4)
00:1c.2 0604: 8086:1e14 (rev c4)
00:1d.0 0c03: 8086:1e26 (rev 04)
00:1f.0 0601: 8086:1e59 (rev 04)
00:1f.2 0106: 8086:1e03 (rev 04)
00:1f.3 0c05: 8086:1e22 (rev 04)
01:00.0 0300: 1002:6841
01:00.1 0403: 1002:aa90
02:00.0 0280: 168c:0032 (rev 01)
08:00.0 ff00: 10ec:5209 (rev 01)
0e:00.0 0200: 10ec:8168 (rev 07) 

Kod: Zaznacz cały

 
Disk /dev/sda: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 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 identifier: 0x00c0ea10

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1  1465149167   732574583+  ee  GPT
Partition 1 does not start on physical sector boundary.

Disk /dev/sdb: 2011 MB, 2011168768 bytes
15 heads, 14 sectors/track, 18705 cylinders, total 3928064 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x04030201

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1             248     3928063     1963908    b  W95 FAT32 
Wprawdzie fdisk nie wykrywa partycji, ale wykrywa je instalator, nie wyskakują również żadne błędy podczas ich montowania.

W związku z powyższym proszę o pomoc w przywróceniu Gruba.
fnmirk
Senior Member
Posty: 8273
Rejestracja: 03 grudnia 2007, 06:37

Post autor: fnmirk »

brahoo
Posty: 3
Rejestracja: 18 listopada 2013, 23:48

Post autor: brahoo »

Użyłem środowiska chroot z modułu ratunkowego na płycie instalacyjnej i wpisałem:

Kod: Zaznacz cały

grub-mkconfig -o /boot/grub/gurb.cfg
a następnie:

Kod: Zaznacz cały

update-grub
Nie wyświetliły się błędy. Grub nadal się nie uruchamia. Poniżej podaję grub.cfg po użyciu polecenia:

Kod: Zaznacz cały

grub-mkconfig

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
  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 load_video {
  insmod efi_gop
  insmod efi_uga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_gpt
insmod ext2
set root='(/dev/sda,gpt8)'
search --no-floppy --fs-uuid --set=root 49e347b6-3495-4c22-8d23-5bdaf217aa7b
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
  insmod part_gpt
  insmod ext2
  set root='(/dev/sda,gpt7)'
  search --no-floppy --fs-uuid --set=root 6588e392-d61e-4909-b702-042a069f1eae
  set locale_dir=($root)/grub/locale
  set lang=C
  insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, za pomocą systemu Linux 3.2.0-4-amd64' --class debian --class gnu-linux --class gnu --class os {
    load_video
    insmod gzio
    insmod part_gpt
    insmod ext2
    set root='(/dev/sda,gpt7)'
    search --no-floppy --fs-uuid --set=root 6588e392-d61e-4909-b702-042a069f1eae
    echo    'Wczytywanie systemu Linux 3.2.0-4-amd64...'
    linux    /vmlinuz-3.2.0-4-amd64 root=UUID=49e347b6-3495-4c22-8d23-5bdaf217aa7b ro  quiet
    echo    'Wczytywanie początkowego dysku RAM...'
    initrd    /initrd.img-3.2.0-4-amd64
}
menuentry 'Debian GNU/Linux, za pomocą systemu Linux 3.2.0-4-amd64 (tryb ratunkowy)' --class debian --class gnu-linux --class gnu --class os {
    load_video
    insmod gzio
    insmod part_gpt
    insmod ext2
    set root='(/dev/sda,gpt7)'
    search --no-floppy --fs-uuid --set=root 6588e392-d61e-4909-b702-042a069f1eae
    echo    'Wczytywanie systemu Linux 3.2.0-4-amd64...'
    linux    /vmlinuz-3.2.0-4-amd64 root=UUID=49e347b6-3495-4c22-8d23-5bdaf217aa7b ro single 
    echo    'Wczytywanie początkowego dysku RAM...'
    initrd    /initrd.img-3.2.0-4-amd64
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### 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 ### 
fnmirk
Senior Member
Posty: 8273
Rejestracja: 03 grudnia 2007, 06:37

Post autor: fnmirk »

Czy próbowałeś użyć jakiejś dystrybucji narzędziowej aby uruchomić system?
threads/9479-Dystrybucje-narz%C4%99dzio ... #post61503
http://www.sysresccd.org/Download
brahoo
Posty: 3
Rejestracja: 18 listopada 2013, 23:48

Post autor: brahoo »

Nie nie używałem tych dystrybucji.

Przywróciłem gruba ponownie instalując system. Wcześniej przy ponownej instalacji użyłem dotychczasowej partycji /boot, a tym razem ją usunąłem i utworzyłem od nowa. Jednakże po uruchomieniu Windowsa Grub znów nie chce się uruchomić.

Znalazłem połowiczne rozwiązanie. Przełączyłem w ustawieniach BIOS opcję UEFI na Legancy i zainstalowałem Debiana, Grub zainstalował się w głównym rekordzie. Teraz jak mam włączone UEFI to Windows się uruchamia a Debian nie, a jak włączę opcję ,,Legancy'' to Debian się włącza a Windows nie chce się uruchomić. Myślę jednak, że na dłuższą metę takie rozwiązanie nie jest właściwe.

Dodane:
Udało mi się rozwiązać problem.

Bezpośrednio po instalacji Debiana, przed uruchomieniem Windowsa użyłem polecenia:

Kod: Zaznacz cały

 grub-mkconfig -o /boot/grub/grub.cfg 
a następnie:

Kod: Zaznacz cały

 update-grub2 
ponieważ miałem zainstalowany domyślnie grub2.
ODPOWIEDZ