Skip to main content

Thread: Grub boots into shell


i finished dual booting windows 7 after first having ubuntu, led grub not showing. expected had made live disk booted update grub... took longer expected, after following various guides on google ended installing grub see boot shell prompt.
appreciated, grub.cfg(grub2's menu.lst i've been told)
if need else let me know, i'd problem fixed possible because of can't load windows or ubuntu grub booting in shell


code:
# # not edit file # # automatically generated grub-mkconfig using templates # /etc/grub.d , settings /etc/default/grub #  ### begin /etc/grub.d/00_header ### if [ -s $prefix/grubenv ];   set have_grubenv=true   load_env fi set default="0" if [ "${prev_saved_entry}" ];   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}" ];     saved_entry="${chosen}"     save_env saved_entry   fi }  function recordfail {   set recordfail=1   if [ -n "${have_grubenv}" ]; if [ -z "${boot_once}" ]; 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='(/dev/sda,msdos1)' search --no-floppy --fs-uuid --set=root f9c98ca4-edf8-4075-9c85-8bd7a2717858 if loadfont /usr/share/grub/unicode.pf2 ;   set gfxmode=auto   load_video   insmod gfxterm fi terminal_output gfxterm insmod part_msdos insmod ext2 set root='(/dev/sda,msdos1)' search --no-floppy --fs-uuid --set=root f9c98ca4-edf8-4075-9c85-8bd7a2717858 set locale_dir=($root)/boot/grub/locale set lang=en_us insmod gettext if [ "${recordfail}" = 1 ];   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,71,115;   clear fi ### end /etc/grub.d/05_debian_theme ###  ### begin /etc/grub.d/10_linux ### if [ ${recordfail} != 1 ];   if [ -e ${prefix}/gfxblacklist.txt ];     if hwmatch ${prefix}/gfxblacklist.txt 3;       if [ ${match} = 0 ];         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" ]; load_video; fi menuentry 'ubuntu, linux 2.6.38-8-generic' --class ubuntu --class gnu-linux --class gnu --class os {     recordfail     set gfxpayload=$linux_gfx_mode     insmod part_msdos     insmod ext2     set root='(/dev/sda,msdos1)'     search --no-floppy --fs-uuid --set=root f9c98ca4-edf8-4075-9c85-8bd7a2717858     linux    /boot/vmlinuz-2.6.38-8-generic root=uuid=f9c98ca4-edf8-4075-9c85-8bd7a2717858 ro   quiet splash vt.handoff=7     initrd    /boot/initrd.img-2.6.38-8-generic } menuentry 'ubuntu, linux 2.6.38-8-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {     recordfail     set gfxpayload=$linux_gfx_mode     insmod part_msdos     insmod ext2     set root='(/dev/sda,msdos1)'     search --no-floppy --fs-uuid --set=root f9c98ca4-edf8-4075-9c85-8bd7a2717858     echo    'loading linux 2.6.38-8-generic ...'     linux    /boot/vmlinuz-2.6.38-8-generic root=uuid=f9c98ca4-edf8-4075-9c85-8bd7a2717858 ro single      echo    'loading initial ramdisk ...'     initrd    /boot/initrd.img-2.6.38-8-generic } submenu "previous linux versions" { menuentry 'ubuntu, linux 2.6.35-28-generic' --class ubuntu --class gnu-linux --class gnu --class os {     recordfail     set gfxpayload=$linux_gfx_mode     insmod part_msdos     insmod ext2     set root='(/dev/sda,msdos1)'     search --no-floppy --fs-uuid --set=root f9c98ca4-edf8-4075-9c85-8bd7a2717858     linux    /boot/vmlinuz-2.6.35-28-generic root=uuid=f9c98ca4-edf8-4075-9c85-8bd7a2717858 ro   quiet splash vt.handoff=7     initrd    /boot/initrd.img-2.6.35-28-generic } menuentry 'ubuntu, linux 2.6.35-28-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {     recordfail     set gfxpayload=$linux_gfx_mode     insmod part_msdos     insmod ext2     set root='(/dev/sda,msdos1)'     search --no-floppy --fs-uuid --set=root f9c98ca4-edf8-4075-9c85-8bd7a2717858     echo    'loading linux 2.6.35-28-generic ...'     linux    /boot/vmlinuz-2.6.35-28-generic root=uuid=f9c98ca4-edf8-4075-9c85-8bd7a2717858 ro single      echo    'loading initial ramdisk ...'     initrd    /boot/initrd.img-2.6.35-28-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='(/dev/sda,msdos1)'     search --no-floppy --fs-uuid --set=root f9c98ca4-edf8-4075-9c85-8bd7a2717858     linux16    /boot/memtest86+.bin } menuentry "memory test (memtest86+, serial console 115200)" {     insmod part_msdos     insmod ext2     set root='(/dev/sda,msdos1)'     search --no-floppy --fs-uuid --set=root f9c98ca4-edf8-4075-9c85-8bd7a2717858     linux16    /boot/memtest86+.bin console=ttys0,115200n8 } ### end /etc/grub.d/20_memtest86+ ###  ### begin /etc/grub.d/30_os-prober ### menuentry "opensuse 11.3 (on /dev/sda4)" --class gnu-linux --class gnu --class os {     insmod part_msdos     insmod ext2     set root='(/dev/sda,msdos4)'     search --no-floppy --fs-uuid --set=root 8ec258c2-2d04-4c48-82e5-e423daf94102     linux /boot/vmlinuz-2.6.34-12-desktop root=/dev/disk/by-id/ata-hitachi_hdt721010sla360_stf607mh303umk-part4 resume=/dev/disk/by-id/ata-hitachi_hdt721010sla360_stf607mh303umk-part5 splash=silent quiet showopts vga=0x317     initrd /boot/initrd-2.6.34-12-desktop } menuentry "failsafe -- opensuse 11.3 (on /dev/sda4)" --class gnu-linux --class gnu --class os {     insmod part_msdos     insmod ext2     set root='(/dev/sda,msdos4)'     search --no-floppy --fs-uuid --set=root 8ec258c2-2d04-4c48-82e5-e423daf94102     linux /boot/vmlinuz-2.6.34-12-desktop root=/dev/disk/by-id/ata-hitachi_hdt721010sla360_stf607mh303umk-part4 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x317     initrd /boot/initrd-2.6.34-12-desktop } ### end /etc/grub.d/30_os-prober ###  ### begin /etc/grub.d/40_custom ### # file provides easy way add custom menu entries.  type # menu entries want add after comment.  careful not change # 'exec tail' line above. ### end /etc/grub.d/40_custom ###  ### begin /etc/grub.d/41_custom ### if [ -f  $prefix/custom.cfg ];   source $prefix/custom.cfg; fi ### end /etc/grub.d/41_custom ###

code:
sudo mount /dev/sda1 /mnt  sudo grub-install --root-directory=/mnt /dev/sda

assume ubuntu on sda1

these commands live cd

https://help.ubuntu.com/community/gr...stalling grub2

once in

code:
sudo grub-install /dev/sda  sudo update-grub


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Grub boots into shell


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support