Announcement

Collapse
No announcement yet.

<SOLVED>After installing Kubuntu i get sh:grub> screen...what to do?? <SOLVED >

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Re: After installing Kubuntu i get sh:grub&gt; screen...what to do??

    I have this in my device.map

    (fd0) /dev/fd0
    (hd0) /dev/sda
    (hd1) /dev/sdb
    (hd2) /dev/sdc


    WHen doing sudo grub install i got Installation finished, no error occured..so everything should be alright..

    But again after reboot i get sh:grub>

    (
    I am getting kind of desperate...this is my third day with ubuntu and it still is not working

    Comment


      #17
      Re: After installing Kubuntu i get sh:grub&gt; screen...what to do??

      I thought you had only TWO hard drives and a CD? Now I see you have 3 HDDs and a floppy? No CD? Do you use the floppy? (I'm not sure how it enters this picture, but I have seen one case where it caused some issues with GRUB 2.)
      With your drives all plugged in, the command
      sudo fdisk -lu
      will list them for you and you can see what OS is on which drive.
      sda is Windows? sdb is Kubuntu? what is sdc?
      As an example, let's say that Kubuntu is on sdb1, Windows in on sda1. Then from the Live Kubuntu CD, let's say that sdb1 is mounted as /media/sdb1. Then the command to use would be
      sudo grub-install --root-directory=/media/sdb1 /dev/sda
      Or, if you boot into Kubuntu, the command to use would be
      sudo grub-install /dev/sda
      (The root directory for GRUB is by default taken to be the current root where you are at, namely, in Kubuntu.)
      An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

      Comment


        #18
        Re: After installing Kubuntu i get sh:grub&gt; screen...what to do??

        /dev/sda1 boot linux
        /dev/sdb1 boot htfs/ntps
        /dev/sdc1 boot w95 fat32

        but i only have two hard drives...dunno what is it!

        I login to kubuntu, using SGD and do the sudo -grub-install /dev/sda
        and i get the message that everything is ok. No error reported..but when i reboot everything is wrong and i get
        sh:grub>

        How come the SGD sees linux at hd(1,0) and grub on linux thinks that linux is on hd(0,0) mayube that is the problem

        Comment


          #19
          Re: After installing Kubuntu i get sh:grub&gt; screen...what to do??

          As for sdc1, I don't know what that is since you have only two drives. How very strange; I've never seen this. Do you have a flash drive plugged in or an external drive plugged in?
          Anyway, we'll ignore sdc for now!


          OK, let's try to get Kubuntu to boot, then later try for Windows.

          You did this:
          sudo-grub-install /dev/sda
          That should set GRUB up correctly. Done.

          ->-> Very important:
          Next, make sure your BIOS is set to boot from drive sda first. Thus, sda will be your first BIOS boot drive.

          Finally, you need the boot flag set on sda1, and it looks like that is done ("boot").
          GParted Live CD can confirm that.
          It will show the boot flag is set on sda1.
          (You set boot flags in GParted Live CD by highlighting the partition, then Partition (tab at top) > Manage Flags and check boot.)

          Now when you reboot, it should work.



          "How come the SGD sees linux at hd(1,0) and grub on linux thinks that linux is on hd(0,0) mayube that is the problem"

          I don't know why SGD sees it that way. BUT, it doesn't matter. If BIOS is set to boot from sda, and WHEN the PC actually boots from sda, THEN sda WILL be hd0, always. (The drive that the PC boots from is always seen by BIOS as hd0 during that booted session.)

          An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

          Comment


            #20
            Re: After installing Kubuntu i get sh:grub&gt; screen...what to do??

            btw:
            sudo-grub-install /dev/sda
            That is correct.
            Make sure it is NOT this:
            sudo-grub-install /dev/sda1
            (note the sda1). Actually, you can do both, but we really only need to use
            sudo-grub-install /dev/sda
            An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

            Comment


              #21
              Re: After installing Kubuntu i get sh:grub&gt; screen...what to do??

              Ok i set bios to boot from the other drive, and everything worked...Kubuntu loaded for me...
              Thank you man...i don't know what to say...


              Only problem is that i don't get asked which OS i want to load..it just goes straight to ubuntu...
              How do i fix that

              Comment


                #22
                Re: After installing Kubuntu i get sh:grub&gt; screen...what to do??

                OK, good.

                Now, you need to generate a new, good boot menu, /boot/grub/grub.cfg.
                You do that as follows:

                Boot into Kubuntu.
                Open Konsole.
                sudo update-grub

                That should make a proper grub.cfg file. You can look at it:
                /boot/grub/grub.cfg.
                Re-boot to test it.

                If it didn't work, try this:

                sudo grub-mkconfig -o /boot/grub/grub.cfg

                It doesn't hurt to do one or the other or both, as often as you like.

                Worst case scenario (but it is easy):
                We need to make a custom (manual) entry for Windows. But first try what I said here.
                An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

                Comment


                  #23
                  Re: After installing Kubuntu i get sh:grub&gt; screen...what to do??

                  "How come the SGD sees linux at hd(1,0) and grub on linux thinks that linux is on hd(0,0) mayube that is the problem"

                  That's why! Because BIOS was set to boot from sdb first. So sda (Kubuntu) was seen as the second hard drive, or hd1, and Kubuntu would be on the first partition (hd1,0). (SGD is using the old GRUB legacy, where the first partition starts numbering at zero, thus (hd1,0). GRUB 2 numbers partitions starting at one, so the first partition of hd0 would be (hd0,1). Get it? ).
                  Now that you have set BIOS to boot first from sda (the Kubuntu drive), sda will be the first HD; that is, sda will be hd0 (from the viewpoint of SGD).


                  An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

                  Comment


                    #24
                    Re: After installing Kubuntu i get sh:grub&gt; screen...what to do??

                    If you have a problem with Windows, just in case I'm not around, here's what I had in mind:

                    Use the how-to:
                    GRUB 2 A Guide for Users
                    http://kubuntuforums.net/forums/inde...opic=3106368.0
                    SECTION 4
                    Boot menu: Create a custom boot entry
                    => Create a custom boot entry for Windows (in your /boot/grub/grub.cfg).
                    Since Windows (in your case) is on a non-first hard drive (that is, it is NOT on hd0), you will need to use this:
                    REPLY #1 (to the how-to) more GRUB 2 topics:
                    Dual booting: How to set it up
                    Windows topics
                    Installing XP (or 7? or Vista?) & Kubuntu:
                    How to set up dual booting (recommended outline)
                    Re-installed XP and now can't boot Kubuntu
                    XP on a non-first hard drive: (hdx,y), x > 1
                    An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

                    Comment


                      #25
                      Re: After installing Kubuntu i get sh:grub&gt; screen...what to do??

                      Dude, i just don't know how to thank you.
                      You were so patient...and u help me, i was desperate...i even downloaded openSUSE OS and was close to installing it .

                      Dunno what to say, except if you are ever in my part of the world, give me a call or something and i am gonna buy u a dinner.

                      Can we declare this thread "solved"

                      Comment


                        #26
                        Re: After installing Kubuntu i get sh:grub&gt; screen...what to do??

                        I forgot to mention the sdc was the USB that i used to log onto Kubuntu (SGD software was on the USB)...


                        I am currently having both Kubuntu and XP on my load, i just have them in screwed up way...
                        When i reboot i get the option to choose versions of kubuntu (4 of them)+windows xp..if i choose Kubuntu everything is cool, but if i choose XP, i get another screen where i get to choose again XP or KUBUNTU ...(this is the screen that i had before i changed BIOS entry)

                        I can live with that, but i would like to change that to normal too

                        Comment


                          #27
                          Re: After installing Kubuntu i get sh:grub&gt; screen...what to do??

                          I'm thinking you could add a custom boot entry for Windows XP in your main boot menu, which is /boot/grub/grub.cfg located in your Kubuntu OS. That would probably fix this.

                          Of course, it's not a bad thing to live with as it is, right?

                          I wonder what your /boot/grub/grub.cfg looks like. Do you want to copy and paste it here? I wonder what the entry for XP looks like.


                          btw, that's very strange that when you pick XP, you get another boot menu offering you XP and KUBUNTU ... unless that might be a Windows boot menu? Does that second boot menu look like a GRUB boot menu?

                          An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

                          Comment


                            #28
                            Re: After installing Kubuntu i get sh:grub&gt; screen...what to do??

                            here it is:

                            #
                            # DO NOT EDIT THIS FILE
                            #
                            # It is automatically generated by /usr/sbin/grub-mkconfig using templates
                            # from /etc/grub.d and settings from /etc/default/grub
                            #

                            ### BEGIN /etc/grub.d/00_header ###
                            if [ -s /boot/grub/grubenv ]; then
                            have_grubenv=true
                            load_env
                            fi
                            set default="0"
                            if [ ${prev_saved_entry} ]; then
                            saved_entry=${prev_saved_entry}
                            save_env saved_entry
                            prev_saved_entry=
                            save_env prev_saved_entry
                            fi
                            insmod ext2
                            set root=(hd1,1)
                            search --no-floppy --fs-uuid --set 3a4a8bfb-1bfb-4b46-9b79-02d7d696f98d
                            if loadfont /usr/share/grub/unicode.pf2 ; then
                            set gfxmode=640x480
                            insmod gfxterm
                            insmod vbe
                            if terminal_output gfxterm ; then true ; else
                            # For backward compatibility with versions of terminal.mod that don't
                            # understand terminal_output
                            terminal gfxterm
                            fi
                            fi
                            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/white
                            ### END /etc/grub.d/05_debian_theme ###

                            ### BEGIN /etc/grub.d/10_linux ###
                            menuentry "Ubuntu, Linux 2.6.31-16-generic" {
                            recordfail=1
                            if [ -n ${have_grubenv} ]; then save_env recordfail; fi
                            set quiet=1
                            insmod ext2
                            set root=(hd1,1)
                            search --no-floppy --fs-uuid --set 3a4a8bfb-1bfb-4b46-9b79-02d7d696f98d
                            linux /boot/vmlinuz-2.6.31-16-generic root=UUID=3a4a8bfb-1bfb-4b46-9b79-02d7d696f98d ro quiet splash
                            initrd /boot/initrd.img-2.6.31-16-generic
                            }
                            menuentry "Ubuntu, Linux 2.6.31-16-generic (recovery mode)" {
                            recordfail=1
                            if [ -n ${have_grubenv} ]; then save_env recordfail; fi
                            insmod ext2
                            set root=(hd1,1)
                            search --no-floppy --fs-uuid --set 3a4a8bfb-1bfb-4b46-9b79-02d7d696f98d
                            linux /boot/vmlinuz-2.6.31-16-generic root=UUID=3a4a8bfb-1bfb-4b46-9b79-02d7d696f98d ro single
                            initrd /boot/initrd.img-2.6.31-16-generic
                            }
                            menuentry "Ubuntu, Linux 2.6.31-14-generic" {
                            recordfail=1
                            if [ -n ${have_grubenv} ]; then save_env recordfail; fi
                            set quiet=1
                            insmod ext2
                            set root=(hd1,1)
                            search --no-floppy --fs-uuid --set 3a4a8bfb-1bfb-4b46-9b79-02d7d696f98d
                            linux /boot/vmlinuz-2.6.31-14-generic root=UUID=3a4a8bfb-1bfb-4b46-9b79-02d7d696f98d ro quiet splash
                            initrd /boot/initrd.img-2.6.31-14-generic
                            }
                            menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
                            recordfail=1
                            if [ -n ${have_grubenv} ]; then save_env recordfail; fi
                            insmod ext2
                            set root=(hd1,1)
                            search --no-floppy --fs-uuid --set 3a4a8bfb-1bfb-4b46-9b79-02d7d696f98d
                            linux /boot/vmlinuz-2.6.31-14-generic root=UUID=3a4a8bfb-1bfb-4b46-9b79-02d7d696f98d ro single
                            initrd /boot/initrd.img-2.6.31-14-generic
                            }
                            ### END /etc/grub.d/10_linux ###

                            ### BEGIN /etc/grub.d/20_memtest86+ ###
                            menuentry "Memory test (memtest86+)" {
                            linux16 /boot/memtest86+.bin
                            }
                            menuentry "Memory test (memtest86+, serial console 115200)" {
                            linux16 /boot/memtest86+.bin console=ttyS0,115200n8
                            }
                            ### END /etc/grub.d/20_memtest86+ ###

                            ### BEGIN /etc/grub.d/30_os-prober ###
                            menuentry "Microsoft Windows XP Professional (on /dev/sdb1)" {
                            insmod ntfs
                            set root=(hd0,1)
                            search --no-floppy --fs-uuid --set 50581e84581e694c
                            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 ###


                            The additional menu looks like this

                            WindowsXP
                            Kubuntu

                            Earlier it was the other way around...i used to choose between XP and Kubuntu, and only if a chose Kubuntu i got the next menu with Kubunut options (recovery mode, generic mode...etc)

                            Now those menu switched place...yes it is not a big deal...tho i'd like to fix it

                            Comment


                              #29
                              Re: After installing Kubuntu i get sh:grub&gt; screen...what to do??

                              Here's what I think is happening, it's the most plausible explanation, BUT I don't know how this could have happened (but maybe you may know):

                              When you boot the PC and select XP from the GRUB menu you see, you then get another menu offering XP and Kubuntu (correct?). I think this second boot menu comes from the Windows bootloader (NTLDR or whatever it is called). Somehow, NTLDR was edited to include and entry for Kubuntu!?!? I can't remember how to edit the XP bootloader, it is not difficult, it is the boot.ini file in Windows XP, discussed here (you gotta scroll down to boot.ini or thereabouts):
                              http://www.vsubhash.com/article.asp?...rating_Systems

                              If you study that (boot.ini) and see that the XP loader includes a boot entry for Kubuntu, then that explains what's happening: XP is giving you a choice where to go next. If that is true, then it shouldn't be too difficult to edit the XP loader so it does not contain the Kubuntu entry; and then we would hope that when you chose XP from the first GRUB boot menu, it would go directly to XP (and NOT give you a second boot menu).

                              btw, in the grub.cfg menu you posted (above), see that entry for Windows that starts with:
                              ### BEGIN /etc/grub.d/30_os-prober ###
                              menuentry "Microsoft Windows XP Professional (on /dev/sdb1)" {
                              etc
                              }

                              When you reboot and select XP from the GRUB boot menu, GRUB does not load XP directly. Instead, GRUB chainloads to the XP bootloader, which means that GRUB turns control over to the XP bootloader and then GRUB steps out of the way and lets the XP loader take it from there (for better or for worse). Thus, you can see why I'm thinking the way I am about this. (There could be other explanations for why you see two boot menus, but other explanations would be even less probable to occur.)

                              So, if you want to pursue this, you can use that link to investigate what's inside your Windows bootloader file and then edit it to remove Kubuntu (if, in fact, that's what you find). I'm sure you could google editing boot.ini and get tons of tutorials on it. Keep posting back to let us know what's up, as I'm sure we have several people watching this thread and are also interested.
                              An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

                              Comment


                                #30
                                Re: After installing Kubuntu i get sh:grub&gt; screen...what to do??

                                Well it could have happened because before i did a full installation of kubuntu, i installed it alongside with windows, just to see how does it look. While kubuntu was "inside" windows i used to get the menu

                                windowsXp
                                Kubuntu

                                And that's the same menu i had back then (like 3-4 days ago)...now for some reason i get that menu too...pretty weird huh ?

                                I will try editing boot.ini and see what happens...

                                Comment

                                Working...
                                X