Vizer Napisano Marzec 18, 2013 Zgłoszenie Share Napisano Marzec 18, 2013 Witam, Jestem poczatkujacym uzytkownikiem tegoz systemu i mam nie lada problem. "Inteligentnie" zrobilem przywracanie systemu na windowsie 7 (cos tam nie hulalo). Jako, ze mam zainstalowana takze fedorke, posypal mi sie grub ... Komputer startuje i zatrzymuje sie na grub loading ... i mieli w nieskonczonosc. Zdobylem plytke live cd z fedora i kierowalem instrukcja na tej stronce : http://wiki.fedora.pl/wiki/GRUB, niestety sypie mi sie na ostatnim poleceniu, czyli : grub2-install /dev/sda Niestety wysypuje sie masa bledow, ktorych nie rozumiem : Error: could not load module part_msdos: No such file or directory Error: could not load module ext2: No such file or directory /etc/default/grub: line 60: search: command not found /etc/default/grub: line 65: loadfont: command not found /etc/default/grub: line 73: terminal_output: command not found /etc/default/grub: line 78: menuentry: command not found Error: could not load module efi_gop: No such file or directory Error: could not load module efi_uga: No such file or directory Error: could not load module ieee1275_fb: No such file or directory Error: could not load module vbe: No such file or directory Error: could not load module vga: No such file or directory Error: could not load module video_bochs: No such file or directory Error: could not load module video_cirrus: No such file or directory Error: could not load module gzio: No such file or directory Error: could not load module part_msdos: No such file or directory Error: could not load module ext2: No such file or directory /etc/default/grub: line 88: search: command not found Loading Linux 3.6.3-1.fc17.x86_64 ... /etc/default/grub: line 91: linux: command not found Loading initial ramdisk ... /etc/default/grub: line 93: initrd: command not found /etc/default/grub: line 94: syntax error near unexpected token `}' /etc/default/grub: line 94: `}' /usr/sbin/grub2-probe: error: cannot find a GRUB drive for root=hd0,msdos7. Check your device.map. Bardzo prosilbym o jakakolwiek pomoc, bo potrzebuje kompa na studia i nie moge sobie pozwolic na dluga przerwe. Moze dam jeszcze spis moich partycji z polecenia fdisk -l : Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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: 0xff87823f Device Boot Start End Blocks Id System /dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT /dev/sda2 206848 193634303 96713728 7 HPFS/NTFS/exFAT /dev/sda3 214116352 929875967 357879808 f W95 Ext'd (LBA) /dev/sda4 929875968 976762879 23443456 27 Hidden NTFS WinRE /dev/sda5 214118400 479331404 132606502+ 7 HPFS/NTFS/exFAT /dev/sda6 479332352 899153919 209910784 7 HPFS/NTFS/exFAT /dev/sda7 899155968 929875967 15360000 83 Linux Disk /dev/mapper/live-rw: 4294 MB, 4294967296 bytes 255 heads, 63 sectors/track, 522 cylinders, total 8388608 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 /dev/mapper/live-osimg-min: 4294 MB, 4294967296 bytes 255 heads, 63 sectors/track, 522 cylinders, total 8388608 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 Dobrze zrozumialem, ze partycja / jest u mnie sda7, a partycji /boot nie mam ? Napisze polecenia jakie wpisywalem : su - % do roota mount /dev/sda7 /mnt mount --bind /dev /mnt/dev mount --bind /sys /mnt/sys mount --bind /proc /mnt/proc chroot /mnt grub2-install /dev/sda % tu sie krzaczy Moj laptop : Samsung RF511 S04pl i7 Prosze Was bardzo jeszcze raz o pomoc. PS. Przepraszam za brak polskich znakow, jest tu wersja angielska. Odnośnik do komentarza Udostępnij na innych stronach More sharing options...
@WalDo Napisano Marzec 18, 2013 Zgłoszenie Share Napisano Marzec 18, 2013 Przede wszystkim sprawdź co masz w /etc/default/grub bo przecież widzisz, że to tam są błędy. Ilośc linii w tym pliku - minimum 94 - jest nieco absurdalna. U mnie cały plik ma ich raptem 8 A mogłoby być jeszcze mniej bez themes i pustej. GRUB_TIMEOUT="5" GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT="saved" GRUB_CMDLINE_LINUX="rd.md=0 rd.lvm=0 rd.dm=0 rd.luks=0 $([ -x /usr/sbin/rhcrashkernel-param ] && /usr/sbin/rhcrashkernel-param || vconsole.keymap=pl2 quiet nouveau.modeset=0 rd.driver.blacklist=nouveau ipv6.disable=1 vconsole.font=latarcyrheb-sun16 vconsole.lang=pl_PL.UTF-8 " GRUB_DISABLE_RECOVERY="true" GRUB_THEME="/boot/grub2/themes/starfield/theme.txt" GRUB_GFXMODE="auto" Może masz rozwalony file system. Zanim zaczniesz montować zróbfsck -f /dev/sda7 Odnośnik do komentarza Udostępnij na innych stronach More sharing options...
Vizer Napisano Marzec 18, 2013 Autor Zgłoszenie Share Napisano Marzec 18, 2013 Dziekuje ze ktos mi odpowiedzial, bo juz mnie nosi, od wczoraj wytrzeszczam slepia nad tym lapkiem i ciezko to idzie... To co tam mam moze umieszcze tutaj, bo dla mnie to istna magia, ale jest tego troche ... [root@localhost default]# cat grub # # DO NOT EDIT THIS FILE # # It is automatically generated by grub2-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="4" 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 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,msdos7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 --hint='hd0,msdos7' bac49e37-87af-4800-aeb2-7dcf418ce16d else search --no-floppy --fs-uuid --set=root bac49e37-87af-4800-aeb2-7dcf418ce16d 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=en_US insmod gettext fi terminal_output gfxterm set timeout=60 ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/10_linux ### menuentry 'Fedora' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-bac49e37-87af-4800-aeb2-7dcf418ce16d' { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 --hint='hd0,msdos7' bac49e37-87af-4800-aeb2-7dcf418ce16d else search --no-floppy --fs-uuid --set=root bac49e37-87af-4800-aeb2-7dcf418ce16d fi echo 'Loading Linux 3.6.3-1.fc17.x86_64 ...' linux /boot/vmlinuz-3.6.3-1.fc17.x86_64 root=UUID=bac49e37-87af-4800-aeb2-7dcf418ce16d ro rd.md=0 rd.lvm=0 rd.dm=0 SYSFONT=True KEYTABLE=pl2 rd.luks=0 LANG=en_US.UTF-8 rhgb quiet echo 'Loading initial ramdisk ...' initrd /boot/initramfs-3.6.3-1.fc17.x86_64.img } submenu 'Advanced options for Fedora' $menuentry_id_option 'gnulinux-advanced-bac49e37-87af-4800-aeb2-7dcf418ce16d' { menuentry 'Fedora, with Linux 3.6.3-1.fc17.x86_64' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.6.3-1.fc17.x86_64-advanced-bac49e37-87af-4800-aeb2-7dcf418ce16d' { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 --hint='hd0,msdos7' bac49e37-87af-4800-aeb2-7dcf418ce16d else search --no-floppy --fs-uuid --set=root bac49e37-87af-4800-aeb2-7dcf418ce16d fi echo 'Loading Linux 3.6.3-1.fc17.x86_64 ...' linux /boot/vmlinuz-3.6.3-1.fc17.x86_64 root=UUID=bac49e37-87af-4800-aeb2-7dcf418ce16d ro rd.md=0 rd.lvm=0 rd.dm=0 SYSFONT=True KEYTABLE=pl2 rd.luks=0 LANG=en_US.UTF-8 rhgb quiet echo 'Loading initial ramdisk ...' initrd /boot/initramfs-3.6.3-1.fc17.x86_64.img } menuentry 'Fedora, with Linux 3.6.3-1.fc17.x86_64 (recovery mode)' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.6.3-1.fc17.x86_64-recovery-bac49e37-87af-4800-aeb2-7dcf418ce16d' { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 --hint='hd0,msdos7' bac49e37-87af-4800-aeb2-7dcf418ce16d else search --no-floppy --fs-uuid --set=root bac49e37-87af-4800-aeb2-7dcf418ce16d fi echo 'Loading Linux 3.6.3-1.fc17.x86_64 ...' linux /boot/vmlinuz-3.6.3-1.fc17.x86_64 root=UUID=bac49e37-87af-4800-aeb2-7dcf418ce16d ro single rd.md=0 rd.lvm=0 rd.dm=0 SYSFONT=True KEYTABLE=pl2 rd.luks=0 LANG=en_US.UTF-8 rhgb quiet echo 'Loading initial ramdisk ...' initrd /boot/initramfs-3.6.3-1.fc17.x86_64.img } menuentry 'Fedora, with Linux 3.3.4-5.fc17.x86_64' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.3.4-5.fc17.x86_64-advanced-bac49e37-87af-4800-aeb2-7dcf418ce16d' { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 --hint='hd0,msdos7' bac49e37-87af-4800-aeb2-7dcf418ce16d else search --no-floppy --fs-uuid --set=root bac49e37-87af-4800-aeb2-7dcf418ce16d fi echo 'Loading Linux 3.3.4-5.fc17.x86_64 ...' linux /boot/vmlinuz-3.3.4-5.fc17.x86_64 root=UUID=bac49e37-87af-4800-aeb2-7dcf418ce16d ro rd.md=0 rd.lvm=0 rd.dm=0 SYSFONT=True KEYTABLE=pl2 rd.luks=0 LANG=en_US.UTF-8 rhgb quiet echo 'Loading initial ramdisk ...' initrd /boot/initramfs-3.3.4-5.fc17.x86_64.img } menuentry 'Fedora, with Linux 3.3.4-5.fc17.x86_64 (recovery mode)' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.3.4-5.fc17.x86_64-recovery-bac49e37-87af-4800-aeb2-7dcf418ce16d' { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 --hint='hd0,msdos7' bac49e37-87af-4800-aeb2-7dcf418ce16d else search --no-floppy --fs-uuid --set=root bac49e37-87af-4800-aeb2-7dcf418ce16d fi echo 'Loading Linux 3.3.4-5.fc17.x86_64 ...' linux /boot/vmlinuz-3.3.4-5.fc17.x86_64 root=UUID=bac49e37-87af-4800-aeb2-7dcf418ce16d ro single rd.md=0 rd.lvm=0 rd.dm=0 SYSFONT=True KEYTABLE=pl2 rd.luks=0 LANG=en_US.UTF-8 rhgb quiet echo 'Loading initial ramdisk ...' initrd /boot/initramfs-3.3.4-5.fc17.x86_64.img } } ### 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_ppc_terminfo ### ### END /etc/grub.d/20_ppc_terminfo ### ### BEGIN /etc/grub.d/30_os-prober ### menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-10F4E239F4E22128' { 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 --hint='hd0,msdos1' 10F4E239F4E22128 else search --no-floppy --fs-uuid --set=root 10F4E239F4E22128 fi chainloader +1 } menuentry 'Windows 7 (loader) (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-chain-309ADF5E9ADF1F62' { insmod part_msdos insmod ntfs set root='hd0,msdos2' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 --hint='hd0,msdos2' 309ADF5E9ADF1F62 else search --no-floppy --fs-uuid --set=root 309ADF5E9ADF1F62 fi chainloader +1 } menuentry 'Windows Recovery Environment (loader) (on /dev/sda4)' --class windows --class os $menuentry_id_option 'osprober-chain-E4E401F5E401CB2E' { insmod part_msdos insmod ntfs set root='hd0,msdos4' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 --hint='hd0,msdos4' E4E401F5E401CB2E else search --no-floppy --fs-uuid --set=root E4E401F5E401CB2E fi drivemap -s (hd0) ${root} 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 ${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/41_custom ### Zaraz zrobie reboota i sprawdze Twoja druga rade PS. Dalem ten sam problem na inne forum : http://forum.dobreprogramy.pl/problem-grubem2-fedorze-t526083.html, tu troche bardziej opisalem problem w ostatnim poscie. @EDIT Zrobilem reboota i wpisalem to polecenie ale i tak sie scrashowalo, ale jak teraz mysle mozesz miec racje z tym plikiem, bo kolega jak mi instalowal na poczatku fedore, grzebal chyba w nim, zeby ustawic mi wybor windowsa w grubie na pierwszym miejscu, mozliwe ze cos sie teraz posypalo ... Odnośnik do komentarza Udostępnij na innych stronach More sharing options...
@WalDo Napisano Marzec 18, 2013 Zgłoszenie Share Napisano Marzec 18, 2013 No to podziękuj koledze serdecznie, bo w wyniku jego działalności do /etc/default/grub wpisał Ci to co zazwyczaj jest w /boot/grub2/grub.cfgUsuń ten plik, następnie:Zrób mount /dev/sda7 /mnt mount --bind /dev /mnt/dev mount --bind /sys /mnt/sys mount --bind /proc /mnt/proc chroot /mnt Potem wpisz do /etc/default/grub to co poniżej GRUB_TIMEOUT="5" GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT="saved" GRUB_CMDLINE_LINUX="rd.md=0 rd.lvm=0 rd.dm=0 vconsole.keymap=pl2 vconsole.font=latarcyrheb-sun16 vconsole.lang=pl_PL.UTF-8 rhgb quiet" GRUB_DISABLE_RECOVERY="true" GRUB_GFXMODE="auto" Następnie grub2-mkconfig -o /boot/grub2/grub.cfg Jeśli zakończy się bez błędów to grub2-install /dev/sda Jeśli będą błędy, to wklej je tutaj razem z wyjściem polecenia ls -l /boot/grub2 Odnośnik do komentarza Udostępnij na innych stronach More sharing options...
Vizer Napisano Marzec 18, 2013 Autor Zgłoszenie Share Napisano Marzec 18, 2013 Jestes wielki stary ! Jak napiszesz mi adres to 6-pak się należy jak nic ! Wszystko ładnie bez błędów się udało Tylko teraz mam w grubie jakby duble, bo dwa razy mam to samo a mam namysli windows 7 sda1 windows 7 sda 2 i windows 7 recovery i te 3 wystepuja dwukrotnie, ale chyba mniejsza z tym, bardzo Ci dziekuje za pomoc PS. Jeszcze korzystając z tematu, to jak zrobic poprawnie to by pierwszy w grubie uruchamiał sie windows ? Pozdrawiam serdecznie PS2. Teraz troche posypala mi sie winda, nie ma np. napisów pod ikonkami i inne smieszne rzeczy, ale to juz chyba głupio pytać na forum linuksowym Odnośnik do komentarza Udostępnij na innych stronach More sharing options...
@WalDo Napisano Marzec 18, 2013 Zgłoszenie Share Napisano Marzec 18, 2013 grub2-set-default <numer pozycji w menu> Tylko nie pamiętam czy linie w menu trzeba liczyć od 1 czy pierwsza linia to 0, druga 1 itd., ale dużo opcji do sprawdzania nie jest, to możesz przećwiczyć. "Podwójne wpisy", to prawdopodobnie dlatego, że na każdej z tych partycji NTFS masz sektor rozruchowy. Chyba... Odnośnik do komentarza Udostępnij na innych stronach More sharing options...
Vizer Napisano Marzec 19, 2013 Autor Zgłoszenie Share Napisano Marzec 19, 2013 Spróbowałem i pozycjonowanie zaczyna się od cyfry 0, dzięki za tą komendę, nie wiem co to był za pomysł by grzebać w plikach i tam coś zmieniać ... Mam do Ciebie kolejne pytanie (wiem zamęczam, ale chcę już to dociągnąć do końca) : Zrobiłem sobie format dysku C:\ w Windowsie ( w związku z problemem, który napisałem w jednym z PS.) i wszystko ładnie naprawił się Windows i teraz za każdym razem jak uruchamiam ponownie komputer w grubie wybierając windows 7 sda 1 pojawia się "error : no such device <jakiś ciąg liczb>" i pod spodem "Press any key to continue..." Klikając cokolwiek albo odczekując z 5 sek. uruchamia się normalnie windows. Mam niżej jeszcze windows 7 sda 2 i wybierając ten z kolei, pojawia się problem z bootmgr (jak coś to mogę dać dokładną treść błędu). Czy jest to sprawa, którą trzeba się martwić ?. Próbowałem znowu przeinstalowywać gruba i to nie pomogło. Pozdrawiam Odnośnik do komentarza Udostępnij na innych stronach More sharing options...
Rekomendowane odpowiedzi
Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto
Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.
Zarejestruj nowe konto
Załóż nowe konto. To bardzo proste!
Zarejestruj sięZaloguj się
Posiadasz już konto? Zaloguj się poniżej.
Zaloguj się