AGIO
Miętowe nasionko
Reputacja 0
Offline
Distro: 11
Wiadomości: 12
|
 |
« : Grudzień 06, 2011, 11:20:18 » |
|
Mam nastepujacy problem - dwa dyski twarde, na jednym MINT12 a na drugim WIN7. Od pewnego mementu GRUB przestal dzialac - od razu startuje WIN7, po wielu probach ponownej istalacji GRUBA potem MINT-a 11 a potem 12-tki, zupelnie stracilem orientacje co robie zle. Proba zamiany dolejnosci dyskow w BIOSI-e powoduje ze po kilkunastu sekundach startuje MINT, a GRUB-a nadal nie widac. GRUB-a probowalem instalowac i poprawiac RESCUT-axem - bez efektow. Czy problem jest w tym ze po komendzie fdisk - l widac dwie gwiazdki? co one znacza? mint@mint ~ $ sudo fdisk -l
Disk /dev/sda: 203.9 GB, 203928109056 bytes 255 heads, 63 sectors/track, 24792 cylinders, total 398297088 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: 0x216c216b
Device Boot Start End Blocks Id System /dev/sda1 75776 204795903 102360064 83 Linux /dev/sda2 * 204796620 398297087 96750234 7 HPFS/NTFS/exFAT /dev/sda3 2048 75775 36864 82 Linux swap / Solaris
Partition table entries are not in disk order
Disk /dev/sdb: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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: 0xaef2aef3
Device Boot Start End Blocks Id System /dev/sdb1 * 63 268414019 134206978+ 7 HPFS/NTFS/exFAT /dev/sdb2 268414976 625141759 178363392 7 HPFS/NTFS/exFAT mint@mint ~ $
Do umieszczania wyników poleceń z konsoli proszę używać tagów [ code ] treść [ /code ] (przycisk # w opcjach edycji postu). //marcin'82
|
|
|
|
« Ostatnia zmiana: Grudzień 07, 2011, 12:21:18 wysłana przez marcin'82 »
|
Zapisane
|
|
|
|
marcin'82
Globator Moderalny
Pole mięty
   
Reputacja 2
Offline
Płeć: 
Distro: PCLinuxOS 2012 Xfce | Debian Wheezy (testing) Xfce
Wiadomości: 843
echo "Nic nie działa!" && rm -rf /
|
 |
« Odpowiedz #1 : Grudzień 07, 2011, 12:19:21 » |
|
Podaj wynik skryptu: http://sourceforge.net/projects/bootinfoscript/Uruchom Linux Mint w trybie live-cd. Pobierz paczkę na Pulpit. Prawy przycisk myszy -> rozpakuj tutaj. Następnie nadaj plikowi boot_info_script.sh prawo do wykonania. W tym celu uruchom konsolę, przejdź na Pulpit: cd Pulpit Zaloguj się na konto roota: sudo su Nadaj skryptowi prawo do wykonania: chmod a+x boot_info_script.sh Uruchom skrypt: bash boot_info_script.sh Wyniki zostaną zapisane w pliku RESULTS.TXT, który zostanie utworzony na Pulpicie. Wstaw go tutaj w tagach [ code ].
|
|
|
|
« Ostatnia zmiana: Grudzień 07, 2011, 12:22:56 wysłana przez marcin'82 »
|
Zapisane
|
 Ko ko ko ko Debian spoko! | marcin'82 ;]
|
|
|
AGIO
Miętowe nasionko
Reputacja 0
Offline
Distro: 11
Wiadomości: 12
|
 |
« Odpowiedz #2 : Grudzień 07, 2011, 09:26:16 » |
|
[ 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. => Windows is installed in the MBR of /dev/sdb.
sda1: __________________________________________________________________________
File system: ext4 Boot sector type: - Boot sector info: Operating System: Linux Mint 12 Lisa Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sda2: __________________________________________________________________________
File system: ntfs Boot sector type: Windows Vista/7 Boot sector info: No errors found in the Boot Parameter Block. Operating System: Boot files:
sda3: __________________________________________________________________________
File system: swap Boot sector type: - Boot sector info:
sdb1: __________________________________________________________________________
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: /bootmgr /Boot/BCD /Windows/System32/winload.exe /ntldr /NTDETECT.COM
sdb2: __________________________________________________________________________
File system: ntfs Boot sector type: Windows Vista/7 Boot sector info: No errors found in the Boot Parameter Block. Operating System: Boot files:
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 203.9 GB, 203928109056 bytes 255 heads, 63 sectors/track, 24792 cylinders, total 398297088 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 75,776 204,795,903 204,720,128 83 Linux /dev/sda2 * 204,796,620 398,297,087 193,500,468 7 NTFS / exFAT / HPFS /dev/sda3 2,048 75,775 73,728 82 Linux swap / Solaris
Drive: sdb _____________________________________________________________________
Disk /dev/sdb: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sdb1 * 63 268,414,019 268,413,957 7 NTFS / exFAT / HPFS /dev/sdb2 268,414,976 625,141,759 356,726,784 7 NTFS / exFAT / HPFS
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/loop0 squashfs /dev/sda1 270443fa-c0d4-4a25-ade0-bff54b667616 ext4 /dev/sda2 20D1EC8464E0D033 ntfs /dev/sda3 5142ebdc-1d9a-4969-8005-abaceacb832e swap /dev/sdb1 F2C8C9BDC8C97FF9 ntfs /dev/sdb2 39C7DABC6DD9BCF5 ntfs
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/loop0 /rofs squashfs (ro,noatime) /dev/sr0 /cdrom iso9660 (ro,noatime)
=========================== sda1/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,msdos1)' search --no-floppy --fs-uuid --set=root 270443fa-c0d4-4a25-ade0-bff54b667616 if loadfont /usr/share/grub/unicode.pf2 ; then set gfxmode=auto load_video insmod gfxterm insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 270443fa-c0d4-4a25-ade0-bff54b667616 set locale_dir=($root)/boot/grub/locale set lang=en_US 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 0,0,0; then clear fi ### 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 ### 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 'Linux Mint 12 64-bit, 3.0.0-13-generic (/dev/sda1)' --class linuxmint --class gnu-linux --class gnu --class os { recordfail set gfxpayload=$linux_gfx_mode insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 270443fa-c0d4-4a25-ade0-bff54b667616 linux /boot/vmlinuz-3.0.0-13-generic root=UUID=270443fa-c0d4-4a25-ade0-bff54b667616 ro quiet splash vt.handoff=7 initrd /boot/initrd.img-3.0.0-13-generic } menuentry 'Linux Mint 12 64-bit, 3.0.0-13-generic (/dev/sda1) -- recovery mode' --class linuxmint --class gnu-linux --class gnu --class os { recordfail insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 270443fa-c0d4-4a25-ade0-bff54b667616 echo 'Loading Linux 3.0.0-13-generic ...' linux /boot/vmlinuz-3.0.0-13-generic root=UUID=270443fa-c0d4-4a25-ade0-bff54b667616 ro recovery nomodeset echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-3.0.0-13-generic } submenu "Previous Linux versions" { menuentry 'Linux Mint 12 64-bit, 3.0.0-12-generic (/dev/sda1)' --class linuxmint --class gnu-linux --class gnu --class os { recordfail set gfxpayload=$linux_gfx_mode insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 270443fa-c0d4-4a25-ade0-bff54b667616 linux /boot/vmlinuz-3.0.0-12-generic root=UUID=270443fa-c0d4-4a25-ade0-bff54b667616 ro quiet splash vt.handoff=7 initrd /boot/initrd.img-3.0.0-12-generic } menuentry 'Linux Mint 12 64-bit, 3.0.0-12-generic (/dev/sda1) -- recovery mode' --class linuxmint --class gnu-linux --class gnu --class os { recordfail insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 270443fa-c0d4-4a25-ade0-bff54b667616 echo 'Loading Linux 3.0.0-12-generic ...' linux /boot/vmlinuz-3.0.0-12-generic root=UUID=270443fa-c0d4-4a25-ade0-bff54b667616 ro recovery nomodeset echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-3.0.0-12-generic } } ### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/10_lupin ### ### END /etc/grub.d/10_lupin ###
### 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,msdos1)' search --no-floppy --fs-uuid --set=root 270443fa-c0d4-4a25-ade0-bff54b667616 linux16 /boot/memtest86+.bin } menuentry "Memory test (memtest86+, serial console 115200)" { insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 270443fa-c0d4-4a25-ade0-bff54b667616 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/sdb1)" --class windows --class os { 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 ### --------------------------------------------------------------------------------
=============================== sda1/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/sda1 during installation UUID=270443fa-c0d4-4a25-ade0-bff54b667616 / ext4 errors=remount-ro 0 1 # swap was on /dev/sda3 during installation UUID=5142ebdc-1d9a-4969-8005-abaceacb832e none swap sw 0 0 --------------------------------------------------------------------------------
=================== sda1: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
76.183868408 = 81.801805824 boot/grub/core.img 1 2.172863007 = 2.333093888 boot/grub/grub.cfg 1 9.078144073 = 9.747582976 boot/initrd.img-3.0.0-12-generic 2 9.416130066 = 10.110492672 boot/initrd.img-3.0.0-13-generic 2 2.169132233 = 2.329088000 boot/vmlinuz-3.0.0-12-generic 1 9.083442688 = 9.753272320 boot/vmlinuz-3.0.0-13-generic 1 9.078144073 = 9.747582976 initrd.img.old 2 9.083442688 = 9.753272320 vmlinuz 1 2.169132233 = 2.329088000 vmlinuz.old 1
=============================== StdErr Messages: ===============================
unlzma: Decoder error]
|
|
|
|
« Ostatnia zmiana: Grudzień 07, 2011, 09:30:31 wysłana przez AGIO »
|
Zapisane
|
|
|
|
|
Forum Linux Mint
|
 |
« Odpowiedz #2 : Grudzień 07, 2011, 09:26:16 » |
|
|
|
|
|
|
Zapisane
|
|
|
|
marcin'82
Globator Moderalny
Pole mięty
   
Reputacja 2
Offline
Płeć: 
Distro: PCLinuxOS 2012 Xfce | Debian Wheezy (testing) Xfce
Wiadomości: 843
echo "Nic nie działa!" && rm -rf /
|
 |
« Odpowiedz #3 : Grudzień 07, 2011, 09:40:53 » |
|
Pokaż jeszcze wynik polecenia (z uruchomionego Minta): cat /etc/default/grub Czy problem jest w tym ze po komendzie fdisk - l widac dwie gwiazdki? co one znacza? Dla linuksa nie będzie to żadnym problemem. Gwiazdka oznacza, że partycja ma flagę boot - oznaczenie, że tam znajdują się pliki rozruchowe systemu. "Gwiazdka" na dysku /dev/sda oznacza to pozostałość po poprzedniej instalacji Windods.
|
|
|
|
« Ostatnia zmiana: Grudzień 07, 2011, 09:48:39 wysłana przez marcin'82 »
|
Zapisane
|
 Ko ko ko ko Debian spoko! | marcin'82 ;]
|
|
|
AGIO
Miętowe nasionko
Reputacja 0
Offline
Distro: 11
Wiadomości: 12
|
 |
« Odpowiedz #4 : Grudzień 07, 2011, 09:45:13 » |
|
mint Desktop # cat /etc/default/grub # 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" mint Desktop #
|
|
|
|
« Ostatnia zmiana: Grudzień 07, 2011, 09:47:39 wysłana przez marcin'82 »
|
Zapisane
|
|
|
|
marcin'82
Globator Moderalny
Pole mięty
   
Reputacja 2
Offline
Płeć: 
Distro: PCLinuxOS 2012 Xfce | Debian Wheezy (testing) Xfce
Wiadomości: 843
echo "Nic nie działa!" && rm -rf /
|
 |
« Odpowiedz #5 : Grudzień 07, 2011, 09:59:10 » |
|
1. Edytuj plik /etc/default/grub z prawami roota (#): gedit /etc/default/grub Zakomentuj za pomocą znaku # tylko i wyłącznie poniższe DWIE linie: GRUB_HIDDEN_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true W linii: GRUB_TIMEOUT=10 => Zmień wartość na 30 sekund Plik po edycji ma wyglądać tak - jego wycinek:GRUB_DEFAULT=0 #GRUB_HIDDEN_TIMEOUT=0 #GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_TIMEOUT=30 Po edycji zapisz zmiany => Ctrl+S oraz wykonaj jako root polecenie:: update-grub 2. Jako dysk, z którego ma startować komputer ustaw w BIOS dysk /dev/sda, czyli ten o wielkości 203 GB.
|
|
|
|
« Ostatnia zmiana: Grudzień 07, 2011, 11:05:47 wysłana przez marcin'82 »
|
Zapisane
|
 Ko ko ko ko Debian spoko! | marcin'82 ;]
|
|
|
AGIO
Miętowe nasionko
Reputacja 0
Offline
Distro: 11
Wiadomości: 12
|
 |
« Odpowiedz #6 : Grudzień 07, 2011, 10:39:16 » |
|
sorry. ale nie zrozumialem, jakie mam wykonac polecenie jako root po Ctr+S? bo gdy wpisalem mint Desktop # /b bash: /b: No such file or directory mint Desktop # [/b]: bash: [/b]:: No such file or directory a gdy mint Desktop # update-grub /usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
|
|
|
|
« Ostatnia zmiana: Grudzień 07, 2011, 10:46:45 wysłana przez marcin'82 »
|
Zapisane
|
|
|
|
marcin'82
Globator Moderalny
Pole mięty
   
Reputacja 2
Offline
Płeć: 
Distro: PCLinuxOS 2012 Xfce | Debian Wheezy (testing) Xfce
Wiadomości: 843
echo "Nic nie działa!" && rm -rf /
|
 |
« Odpowiedz #7 : Grudzień 07, 2011, 10:43:44 » |
|
Edycję pliku /etc/grub/default oraz polecenie: update-grub trzeba wykonać jako root w uruchomionym z dysku Linux Mint - pisałeś, że system się uruchamia, NIE z live-cd, czyli po zapisaniu zmian w pliku, polecenie ma wyglądać tak: 
|
|
|
|
« Ostatnia zmiana: Grudzień 07, 2011, 10:51:42 wysłana przez marcin'82 »
|
Zapisane
|
 Ko ko ko ko Debian spoko! | marcin'82 ;]
|
|
|
AGIO
Miętowe nasionko
Reputacja 0
Offline
Distro: 11
Wiadomości: 12
|
 |
« Odpowiedz #8 : Grudzień 07, 2011, 11:07:40 » |
|
niestety nadal GRUB nie pojawia się, zamieniłem dyski - to najpierw jest ciemny ekran z komunikatem że jest Niezalecana rozdzielczość, a po kilkunastu sekunadach startuje tylko MINT, nie ma wyboru WIN-a.
|
|
|
|
|
Zapisane
|
|
|
|
marcin'82
Globator Moderalny
Pole mięty
   
Reputacja 2
Offline
Płeć: 
Distro: PCLinuxOS 2012 Xfce | Debian Wheezy (testing) Xfce
Wiadomości: 843
echo "Nic nie działa!" && rm -rf /
|
 |
« Odpowiedz #9 : Grudzień 07, 2011, 11:09:49 » |
|
A co pokazuje polecenie: sudo os-prober ?
|
|
|
|
|
Zapisane
|
 Ko ko ko ko Debian spoko! | marcin'82 ;]
|
|
|
AGIO
Miętowe nasionko
Reputacja 0
Offline
Distro: 11
Wiadomości: 12
|
 |
« Odpowiedz #10 : Grudzień 07, 2011, 11:14:21 » |
|
agio@agio-MS-7597 ~ $ sudo os-prober [sudo] password for agio: /dev/sdb1:Windows 7 (loader):Windows:chain
|
|
|
|
« Ostatnia zmiana: Grudzień 07, 2011, 11:32:07 wysłana przez marcin'82 »
|
Zapisane
|
|
|
|
marcin'82
Globator Moderalny
Pole mięty
   
Reputacja 2
Offline
Płeć: 
Distro: PCLinuxOS 2012 Xfce | Debian Wheezy (testing) Xfce
Wiadomości: 843
echo "Nic nie działa!" && rm -rf /
|
 |
« Odpowiedz #11 : Grudzień 07, 2011, 11:33:12 » |
|
Pokaż teraz wynik polecenia: cat /boot/grub/grub.cfg
|
|
|
|
« Ostatnia zmiana: Grudzień 07, 2011, 11:36:07 wysłana przez marcin'82 »
|
Zapisane
|
 Ko ko ko ko Debian spoko! | marcin'82 ;]
|
|
|
AGIO
Miętowe nasionko
Reputacja 0
Offline
Distro: 11
Wiadomości: 12
|
 |
« Odpowiedz #12 : Grudzień 07, 2011, 11:35:24 » |
|
agio@agio-MS-7597 ~ $ cat /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,msdos1)' search --no-floppy --fs-uuid --set=root 270443fa-c0d4-4a25-ade0-bff54b667616 if loadfont /usr/share/grub/unicode.pf2 ; then set gfxmode=auto load_video insmod gfxterm insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 270443fa-c0d4-4a25-ade0-bff54b667616 set locale_dir=($root)/boot/grub/locale set lang=pl_PL insmod gettext fi terminal_output gfxterm if [ "${recordfail}" = 1 ]; then set timeout=-1 else set timeout=30 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 0,0,0; then clear fi ### 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 ### 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 'Linux Mint 12 64-bit, 3.0.0-13-generic (/dev/sda1)' --class linuxmint --class gnu-linux --class gnu --class os { recordfail set gfxpayload=$linux_gfx_mode insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 270443fa-c0d4-4a25-ade0-bff54b667616 linux /boot/vmlinuz-3.0.0-13-generic root=UUID=270443fa-c0d4-4a25-ade0-bff54b667616 ro quiet splash vt.handoff=7 initrd /boot/initrd.img-3.0.0-13-generic } menuentry 'Linux Mint 12 64-bit, 3.0.0-13-generic (/dev/sda1) -- recovery mode' --class linuxmint --class gnu-linux --class gnu --class os { recordfail insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 270443fa-c0d4-4a25-ade0-bff54b667616 echo 'Wczytywanie systemu Linux 3.0.0-13-generic...' linux /boot/vmlinuz-3.0.0-13-generic root=UUID=270443fa-c0d4-4a25-ade0-bff54b667616 ro recovery nomodeset echo 'Wczytywanie początkowego dysku RAM...' initrd /boot/initrd.img-3.0.0-13-generic } submenu "Previous Linux versions" { menuentry 'Linux Mint 12 64-bit, 3.0.0-12-generic (/dev/sda1)' --class linuxmint --class gnu-linux --class gnu --class os { recordfail set gfxpayload=$linux_gfx_mode insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 270443fa-c0d4-4a25-ade0-bff54b667616 linux /boot/vmlinuz-3.0.0-12-generic root=UUID=270443fa-c0d4-4a25-ade0-bff54b667616 ro quiet splash vt.handoff=7 initrd /boot/initrd.img-3.0.0-12-generic } menuentry 'Linux Mint 12 64-bit, 3.0.0-12-generic (/dev/sda1) -- recovery mode' --class linuxmint --class gnu-linux --class gnu --class os { recordfail insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 270443fa-c0d4-4a25-ade0-bff54b667616 echo 'Wczytywanie systemu Linux 3.0.0-12-generic...' linux /boot/vmlinuz-3.0.0-12-generic root=UUID=270443fa-c0d4-4a25-ade0-bff54b667616 ro recovery nomodeset echo 'Wczytywanie początkowego dysku RAM...' initrd /boot/initrd.img-3.0.0-12-generic } } ### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/10_lupin ### ### END /etc/grub.d/10_lupin ###
### 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,msdos1)' search --no-floppy --fs-uuid --set=root 270443fa-c0d4-4a25-ade0-bff54b667616 linux16 /boot/memtest86+.bin } menuentry "Memory test (memtest86+, serial console 115200)" { insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 270443fa-c0d4-4a25-ade0-bff54b667616 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/sdb1)" --class windows --class os { 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 ### agio@agio-MS-7597 ~ $
|
|
|
|
« Ostatnia zmiana: Grudzień 07, 2011, 11:36:32 wysłana przez marcin'82 »
|
Zapisane
|
|
|
|
marcin'82
Globator Moderalny
Pole mięty
   
Reputacja 2
Offline
Płeć: 
Distro: PCLinuxOS 2012 Xfce | Debian Wheezy (testing) Xfce
Wiadomości: 843
echo "Nic nie działa!" && rm -rf /
|
 |
« Odpowiedz #13 : Grudzień 08, 2011, 12:03:13 » |
|
Wszystko wskazuje na to (Twój wcześniejszy plik /boot/grub/grub.cfg), że Windows nie jest poprawnie wykrywany przez Gruba, a w tym przypadku Grub traktuje Minta jako jedyny zainstalowany system i dlatego nie jest wyświetlana lista menu wyboru systemów. Jak mówi dokumentacja - można ją włączyć klawiszem Shift. Ostatni zatem pomysł ... Z uruchomionego Linux Mint edytuj z prawami roota plik /etc/grub.d/40_custom: sudo gedit /etc/grub.d/40_custom Dodaj do niego taki wpis: menuentry "Windows 7 (loader) (on /dev/sdb1)" { insmod ntfs set root=(hd1,1) search --no-floppy --fs-uuid --set F2C8C9BDC8C97FF9 chainloader +1 } Plik po edycji ma wygladać tak: #!/bin/sh exec tail -n +3 $0 # 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. menuentry "Windows 7 (loader) (on /dev/sdb1)" { insmod ntfs set root=(hd1,1) search --no-floppy --fs-uuid --set F2C8C9BDC8C97FF9 chainloader +1 } Ty masz dokleić tylko to, co jest na niebiesko ;] Zapisz zmiany => Ctrl+S oraz wykonaj polecenie: sudo update-grub Oczywiście komputer musi zostać uruchomiony z dysku z Grubem, czyli 200 GB /dev/sda (kolejność w BIOS). Daj znać, czy cokolwiek się zmieniło ...
|
|
|
|
« Ostatnia zmiana: Grudzień 08, 2011, 12:23:46 wysłana przez marcin'82 »
|
Zapisane
|
 Ko ko ko ko Debian spoko! | marcin'82 ;]
|
|
|
AGIO
Miętowe nasionko
Reputacja 0
Offline
Distro: 11
Wiadomości: 12
|
 |
« Odpowiedz #14 : Grudzień 08, 2011, 11:04:57 » |
|
niestety bez zmian - nadal nie widać GRUB-a , tylko komunikat: Tryb nieopytmalny ...., a po kilkunastu sekunadach startuje MINT, ale zauważyłem dziwna informację po ostatniej komendzie: agio-MS-7597 agio # sudo update-grub Generating grub.cfg ... Found linux image: /boot/vmlinuz-3.0.0-13-generic Found initrd image: /boot/initrd.img-3.0.0-13-generic Found linux image: /boot/vmlinuz-3.0.0-12-generic Found initrd image: /boot/initrd.img-3.0.0-12-generic Found memtest86+ image: /boot/memtest86+.bin Found Windows 7 (loader) on /dev/sdb1 /usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map. done agio-MS-7597 agio #
|
|
|
|
« Ostatnia zmiana: Grudzień 08, 2011, 11:13:23 wysłana przez marcin'82 »
|
Zapisane
|
|
|
|
|