it.kroplis Ierakstīts Novembris 16, 2015 Share Ierakstīts Novembris 16, 2015 Sveiki! Mocos ar vienu Debiani. Pie OS startēšanas (zilais izveles logs) sak lādet un tā arī paliek. Ja no zilā loga eju "e" un tad F2 tad no grub shell izpildu : grub> linux /boot/vmlinuz-3.3.3-3-amd64 root=/dev/sda1 grub> initrd /boot/initrd.img-3.3.3-3-amd64 grub> boot Ielādējos normāli. Meklēju kur tad ir problēma, un nevaru atrast grub reinstals neko nedod. Vadījos pēc šī FAQ https://www.linux.com/learn/tutorials/776643-how-to-rescue-a-non-booting-grub-2-on-linux/ Kad izpildu šo: grep menuentry /boot/grub/grub.cfg iegūstu: menuentry 'Debian GNU/Linux, with Linux 3.3.3-3-amd64' --class debian --class gnu-linux --class gnu --class os { menuentry 'Debian GNU/Linux, with Linux 3.3.3-3-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os { Mani mulsina ka nevienā vietā nemanu /dev/sda1 grub-install -v 1.99-27+deb7u2 Ir idejas kā labot? Moš provēt nodzēst grub konfigus noinstalēt grub un tad instalet no jauna. Moš tad izveidos korektu konfigu? Link to comment Share on other sites More sharing options...
LSTP Novembris 16, 2015 Share Novembris 16, 2015 Liec win 10 un nemocies Link to comment Share on other sites More sharing options...
AlCohol Novembris 16, 2015 Share Novembris 16, 2015 grub obligāts pasākums? Link to comment Share on other sites More sharing options...
it.kroplis Novembris 16, 2015 Author Share Novembris 16, 2015 izpētes nolūkos var būt arī kas cits Link to comment Share on other sites More sharing options...
MIGs Novembris 16, 2015 Share Novembris 16, 2015 Man stāv šādi: Uzmanību pievērs BIOS/Msdos partīcijai un UUID ! 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 2c9d8639-7925-44ea-87bb-da4b9a640757 else search --no-floppy --fs-uuid --set=root 2c9d8639-7925-44ea-87bb-da4b9a640757 fi echo 'Loading Linux 3.16.0-4-amd64 ...' linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=2c9d8639-7925-44ea-87bb-da4b9a640757 ro quiet echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-3.16.0-4-amd64 Pilnais grub configs: # # 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="0" 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 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,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 2c9d8639-7925-44ea-87bb-da4b9a640757 else search --no-floppy --fs-uuid --set=root 2c9d8639-7925-44ea-87bb-da4b9a640757 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 if [ "${recordfail}" = 1 ] ; then set timeout=-1 else if [ x$feature_timeout_style = xy ] ; then set timeout_style=menu set timeout=5 # Fallback normal timeout code in case the timeout_style feature is # unavailable. else set timeout=5 fi fi ### 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 ### function gfxmode { set gfxpayload="${1}" } set linux_gfx_mode= export linux_gfx_mode menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-2c9d8639-7925-44ea-87bb-da4b9a640757' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 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 2c9d8639-7925-44ea-87bb-da4b9a640757 else search --no-floppy --fs-uuid --set=root 2c9d8639-7925-44ea-87bb-da4b9a640757 fi echo 'Loading Linux 3.16.0-4-amd64 ...' linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=2c9d8639-7925-44ea-87bb-da4b9a640757 ro quiet echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-3.16.0-4-amd64 } submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-2c9d8639-7925-44ea-87bb-da4b9a640757' { menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-advanced-2c9d8639-7925-44ea-87bb-da4b9a640757' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 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 2c9d8639-7925-44ea-87bb-da4b9a640757 else search --no-floppy --fs-uuid --set=root 2c9d8639-7925-44ea-87bb-da4b9a640757 fi echo 'Loading Linux 3.16.0-4-amd64 ...' linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=2c9d8639-7925-44ea-87bb-da4b9a640757 ro quiet echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-3.16.0-4-amd64 } menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-recovery-2c9d8639-7925-44ea-87bb-da4b9a640757' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 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 2c9d8639-7925-44ea-87bb-da4b9a640757 else search --no-floppy --fs-uuid --set=root 2c9d8639-7925-44ea-87bb-da4b9a640757 fi echo 'Loading Linux 3.16.0-4-amd64 ...' linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=2c9d8639-7925-44ea-87bb-da4b9a640757 ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-3.16.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/30_uefi-firmware ### ### END /etc/grub.d/30_uefi-firmware ### ### 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 ### root@debianweb82:~# 1 Link to comment Share on other sites More sharing options...
McB Novembris 16, 2015 Share Novembris 16, 2015 Liec win 10 un nemocies ļurkā savu anālo dildu un nelien tehniskās sarunās! grub obligāts pasākums? Tad varbūt uzreiz piedāvā alternatīvu? Nevis tukši ļerksti... Ja no zilā loga eju "e" un tad F2 tad no grub shell izpildu : grub> linux /boot/vmlinuz-3.3.3-3-amd64 root=/dev/sda1 grub> initrd /boot/initrd.img-3.3.3-3-amd64 grub> boot Nu tādā veidā tu norādi root pēc burtu secības. grub reinstals neko nedod. Vadījos pēc šī FAQ Vadijies pēc nepareizā, tapēc arī nedod. Vispirms vajag os-probe, pēc tam make config, pēc tam to install vai setup. Bet ja teu menu logs parādās tad tas viss nah nav vaidzīgs. Salīdzini vai partīciju UUID ir pareizi! lsblk vai blkid pēc tam pico /boot/grub/grub.cfg un izeditē kā vajag. P.S. Pirms pico var šita: blkid >> /boot/grub/grub.cfg Link to comment Share on other sites More sharing options...
HIGH-Zen Novembris 16, 2015 Share Novembris 16, 2015 (labots) Ja labo /etc/default/grub, tad neaizmirsti palaist update-grub, kurš tad uzģenerē /boot/grub/grub.cfg. Labots Novembris 16, 2015 - HIGH-Zen Link to comment Share on other sites More sharing options...
it.kroplis Novembris 17, 2015 Author Share Novembris 17, 2015 Ja no zilā loga eju "e" un tad F2 tad no grub shell izpildu : grub> linux /boot/vmlinuz-3.3.3-3-amd64 root=/dev/sda1 grub> initrd /boot/initrd.img-3.3.3-3-amd64 grub> boot Nu tādā veidā tu norādi root pēc burtu secības. Tas ta skaidrs, salīdzināju UUID, ir vienādi. Ja samainu UUID pret /dev/sda1 tad vairs nevar iebūtoties nekādi. Tad atjaunoju grub un vecā bilde. Var iebūtoties ar komandām. Moš aizvietojot UUID pret sda1 ir savādāka sintakse? Vai moš trūkst kāds modulis? Link to comment Share on other sites More sharing options...
NewAge Novembris 17, 2015 Share Novembris 17, 2015 pēc tam pico /boot/grub/grub.cfg un izeditē kā vajag. Burtiski pirmā rinda failā: # DO NOT EDIT THIS FILE Grub2 nedrīkst to failu rediģēt manuāli, jo pēc grub2 update tas viss tiks pārrakstīts uz defaultajiem settingiem. Link to comment Share on other sites More sharing options...
it.kroplis Novembris 17, 2015 Author Share Novembris 17, 2015 Atrisināts ar šo: apt-get purge grub apt-get purge grub-common apt-get purge grub-pc apt-get purge grub* apt-get install grub2 Link to comment Share on other sites More sharing options...
Recommended Posts
Izveido kontu, vai pieraksties esošajā, lai komentētu
Jums ir jābūt šī foruma biedram, lai varētu komentēt tēmas
Izveidot jaunu kontu
Piereģistrējies un izveido jaunu kontu, tas būs viegli!
Reģistrēt jaunu kontuPierakstīties
Jums jau ir konts? Pierakstieties tajā šeit!
Pierakstīties tagad!