Blank screen booting Linux

Discussion in 'EasyBCD Support' started by tastewar, Feb 26, 2009.

  1. tastewar

    tastewar New Member

    Joined:
    Feb 26, 2009
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    0
    My setup is as follows:

    Dell Mini 9 with 64 GB disk. The disk is GPT and has 4 partitions:

    EFI
    Mac OS X 10.5.6 HFS+
    Win 7 NTFS
    Ubuntu ext3

    This has taken me a couple of weeks to get to this point, including reinstalling Windows and Linux multiple times. Thankfully, I've been able to keep the initial Mac OS install.

    Thanks to EASYBCD 2.0 (Beta Build 55), I am able to boot into Win7 and MacOS with no problem. Very cool.

    The MacOS boot option seems to use NeoGRUB, and I'd like to think I can just simply (hah!) boot Linux. In the current Linux install, I told it not to install GRUB, and even so it made my computer unbootable. But never mind that, I got around that and as I said I can now successfully boot Win+Mac. From the wiki Linux article, I learned how to install GRUB to the Linux partition, and I tried that, but it did come up with an error.:

    Running "embed /boot/grub/fat_stage1_5 (hd0,3)"... failed (this is not fatal)

    Since your article said I might get an error, and to just run the setup command a second time, I did so, but got the same error. And again and again. Searching on this error didn't turn up much useful information. GRUB did, however, go on to report:

    Running "install /boot/grub/stage1 (hd0,3) /boot/grub/stage2 p /boot/grub/menu.lst "... succeeded.

    So, I added a Linux entry that pointed to this partition, but when I attempt to boot it, I get a blank screen.

    One thing I notice is that in the settings, for entry #3, it shows a Drive of C:\ and a Bootloader Path of \NST\nst_ .mbr

    That's right, there's a space between the _ and the . which I assume should have been filled in with something else. In the \NST directory, there exist three files, a menu.lst which appears to be the NeoGRUB data for the MacOS partition, the NeoGrub.mbr file, and the nst_mac.efi file.

    What went wrong, and what can I do to fix it?
     
  2. JustinW

    JustinW Super Moderator Staff Member

    Joined:
    Apr 21, 2008
    Messages:
    4,367
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Phoenix, AZ US
    You need to add an entry for your linux install to \nst\menu.lst. Since you've installed grub to your linux partition, it would be much easier to have it point to that menu.lst for your linux entry if it already contains entries for booting your linux install. Have you tried re-adding the linux entry in the Windows bootloader using EasyBCD?
     
  3. Coolname007

    Coolname007 New Member

    Joined:
    Dec 15, 2008
    Messages:
    2,903
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Nowhere
    Yeah, like Justin said, just add a new entry for Linux under the Linux tab in EasyBCD's Add/Remove Entries section, making sure to check that box that reads "Grub isn't installed to the bootsector", and this will give you a version of NeoGrub that reads the menu.lst on the Linux partition.

    Cheers and best of luck. :)

    -Coolname007
     
  4. tastewar

    tastewar New Member

    Joined:
    Feb 26, 2009
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    0
    When I just add a Linux entry, pointing to the appropriate partition, it just boots to a blank screen. When I check the box that says Grub isn't installed, I end up booted to a grub prompt, and I have no clue what to type there. I don't think this is what's intended.

    What's the next troubleshooting step?
     
  5. Coolname007

    Coolname007 New Member

    Joined:
    Dec 15, 2008
    Messages:
    2,903
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Nowhere
    Post your Ubuntu menu.lst, located at /boot/grub/menu.lst on your Ubuntu partition (you can use your LiveCD to access the partition, while you're booting with it).

    -Coolname007

    Addendum:

    And while you're at it, please post the output of:

    while you're booted with the LiveCD. Just navigate to Applications>Accessories>Terminal, and then run that command. And that last letter is a lowercase "L", btw, not an capital "i"...;)

    -Coolname007
     
    Last edited: Feb 26, 2009
  6. tastewar

    tastewar New Member

    Joined:
    Feb 26, 2009
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    0
    This is mildly confusing, of course, because when booted from the LiveUSB stick, /boot/grub is referring to a location on the stick. I assume what you are really interested in is the menu.lst on the linux partition that I want to boot from. Assuming that the folder "boot" in the root directory of that partition is what Linux would mount as /boot, then my sad report is that there is no grub folder there at all.

    Here is the fdisk output:

     
    Last edited: Feb 26, 2009
  7. JustinW

    JustinW Super Moderator Staff Member

    Joined:
    Apr 21, 2008
    Messages:
    4,367
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Phoenix, AZ US
    Please edit your post if you can and use
     
  8. Coolname007

    Coolname007 New Member

    Joined:
    Dec 15, 2008
    Messages:
    2,903
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Nowhere
    Well, there's at least part of your problem! :brows: With no Grub folder on your Linux partition, then there's no way for your computer to boot Ubuntu. ;) You will need to reinstall Grub (with the USB stick *out* of your computer), and make sure it gets installed to the Ubuntu partition...unless of course you're trying to boot Ubuntu from the USB stick. :)

    -Coolname007
     
  9. tastewar

    tastewar New Member

    Joined:
    Feb 26, 2009
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    0
    OK, how would I do this? I need the USB stick to boot...

    If I pull it out, grub can't find /boot/grub/stage1
     
    Last edited: Feb 26, 2009
  10. Coolname007

    Coolname007 New Member

    Joined:
    Dec 15, 2008
    Messages:
    2,903
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Nowhere
    Boot with a LiveCD, unless your Mini computer doesn't have a CD drive, which now that I think about it, it probably doesn't...:brows: Since I have never used one of those, I'm not sure how you can solve this problem...
    If you're using your USB stick to (attempt to) boot Ubuntu, then obviously your menu.lst on that USB stick is configured wrong...;) You need it to point back at your Ubuntu partition, which according to the fdisk output you posted, is sda4, which translates as (hd0,3) in Grub syntax...;) So please post the menu.lst on your USB stick then.

    -Coolname007
     
    Last edited: Feb 26, 2009
  11. tastewar

    tastewar New Member

    Joined:
    Feb 26, 2009
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    0
    OK, so given past experiences, I was reluctant to reinstall linux, but I took a deep breath and did it, following your guide for installing linux after vista and installing grub to the partition rather than the disk. Held my breath while it rebooted, and it successfully booted into Windows! Yeah! Next I went into easybcd and added a simple linux entry pointing at the correct partition. I still get a blank screen.

    Here's what my menu.lst looks like now in linux:
    Back in easybcd, I note that I still have the same curious artifact I did initially. The bootloader path shows \NST\nst_ .mbr, with a space between the underscore and the period. Also, there is no file like that in the NST directory.

    I assume that easybcd is supposed to be extracting the boot sector from the selected partition and create a copy of it in a file in the NST directory, perhaps with a numeric subscript, and something here is failing silently?

    Please let me help you figure out what's going wrong here -- I am a developer as well, and have written some fairly low level code. I don't have any tools installed on this new system, but please let me know what I can do to help and I'll try.

    Thanks for your help so far. I feel so close to having the "holy grail" -- a triple boot of Win, Mac, Linux on this little guy.
     
  12. mqudsi

    mqudsi Mostly Harmless Staff Member

    Joined:
    Apr 5, 2006
    Messages:
    13,597
    Likes Received:
    4
    Trophy Points:
    38
    Location:
    Chicago
    Can you post the output of EasyBCD's "detailed mode" here?
     
  13. tastewar

    tastewar New Member

    Joined:
    Feb 26, 2009
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    0
    Thanks for taking an interest. Here it is:

    Code:
    Windows Boot Manager
    --------------------
    identifier              {9dea862c-5cdd-4e70-acc1-f32b344d4795}
    device                  partition=C:
    description             Windows Boot Manager
    locale                  en-US
    inherit                 {7ea2e1ac-2e61-4728-aaa3-896d9d0a9f0e}
    default                 {848733d1-03ab-11de-89e6-f03db04a6e3f}
    resumeobject            {848733c4-03ab-11de-89e6-f03db04a6e3f}
    displayorder            {848733d1-03ab-11de-89e6-f03db04a6e3f}
                            {848733c5-03ab-11de-89e6-f03db04a6e3f}
                            {848733d3-03ab-11de-89e6-f03db04a6e3f}
    toolsdisplayorder       {b2721d73-1db4-4c62-bf78-c548a880142d}
    timeout                 30
    
    Real-mode Boot Sector
    ---------------------
    identifier              {848733d1-03ab-11de-89e6-f03db04a6e3f}
    device                  partition=C:
    path                    \NST\NeoGrub.mbr
    description             Mac OS X
    
    Windows Boot Loader
    -------------------
    identifier              {848733c5-03ab-11de-89e6-f03db04a6e3f}
    device                  partition=C:
    path                    \Windows\system32\winload.exe
    description             Windows 7
    locale                  en-US
    inherit                 {6efb52bf-1766-41db-a6b3-0ee5eff72bd7}
    recoverysequence        {848733c6-03ab-11de-89e6-f03db04a6e3f}
    recoveryenabled         Yes
    osdevice                partition=C:
    systemroot              \Windows
    resumeobject            {848733c4-03ab-11de-89e6-f03db04a6e3f}
    nx                      OptIn
    
    Real-mode Boot Sector
    ---------------------
    identifier              {848733d3-03ab-11de-89e6-f03db04a6e3f}
    device                  partition=C:
    path                    \NST\nst_.mbr
    description             NeoSmart Linux
    
     
  14. JustinW

    JustinW Super Moderator Staff Member

    Joined:
    Apr 21, 2008
    Messages:
    4,367
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Phoenix, AZ US
    Ok, notice the last entry in your menu.lst:

    See how it doesn't have root=... lines like the others? I think its becuase you got both root and uuid lines or the root lines are not formatted properly. Can you boot into memtest (last entry) ok? Go ahead and remove those from your other entries as well that are in bold above and see if you can get it to work.
     
  15. tastewar

    tastewar New Member

    Joined:
    Feb 26, 2009
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    0
    I don't think we're getting that far. Seems to me that when the booting process attempts to reference the file from this section:

    Real-mode Boot Sector
    ---------------------
    identifier {848733d3-03ab-11de-89e6-f03db04a6e3f}
    device partition=C:
    path \NST\nst_.mbr
    description NeoSmart Linuxit will be disappointed because there is no such file. Looking at this pasted output, it seems that I was wrong about the space between the underscore and the period in the filename, and rather it is an ascii 1. Could it be that easybcd is attempting to construct a filename indicating this is the first such boot entry, but failed to convert an int 1 into a char 1? Perhaps it was able to read the bootsector from my linux partition just fine, but failed creating the file due to an illegal filename, but it was still able to create the entry in the bcd file?
     
  16. JustinW

    JustinW Super Moderator Staff Member

    Joined:
    Apr 21, 2008
    Messages:
    4,367
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Phoenix, AZ US
    It doesnt need to "create" a file as its booting. It "needs" the right files in the right locations in order to boot.

    Now unless you actually have a file by the name "\nst\nst_ .mbr" with two spaces between the _ and the .mbr on your C: drive when viewed in Windows than theres going to be issues. Uninstall NeoGrub, delete this file, and re-install by removing the linux entry and adding a new one.
     
  17. mqudsi

    mqudsi Mostly Harmless Staff Member

    Joined:
    Apr 5, 2006
    Messages:
    13,597
    Likes Received:
    4
    Trophy Points:
    38
    Location:
    Chicago
    Clearly there's a bug that's causing it to reference 'nst_ .mbr' for some inexplicable reason.

    If you delete the Linux entry and try again, does that still happen?
     
  18. tastewar

    tastewar New Member

    Joined:
    Feb 26, 2009
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    0
    Thanks, C.G.

    Looks the same to me after deleting and re-creating, but again, I think it's not a space as I had originally indicated. From the debug info, as pasted here, the font that shows in my browser suggests it's an ASCII 1 character.

    Code:
    <snipped>
    Real-mode Boot Sector
    ---------------------
    identifier              {848733d4-03ab-11de-89e6-f03db04a6e3f}
    device                  partition=C:
    path                    \NST\nst_.mbr
    description             NeoSmart Linux
    
    Let me know how I can help.
     
  19. Terry60

    Terry60 Coastline Designer Staff Member

    Joined:
    Nov 9, 2007
    Messages:
    9,541
    Likes Received:
    1
    Trophy Points:
    38
    Occupation:
    Retired System Programmer
    Location:
    Wiltshire, England
    I don't normally get involved in these Linux problems, but I do see them all as I go through all the new posts, and I remember noticing this (nst_.mbr) several times in the past.
    Here and here for example.
     
  20. tastewar

    tastewar New Member

    Joined:
    Feb 26, 2009
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    0
    Interestingly, in both cases it seemed as though the user ended up having to use neogrub, when it seems as though a Linux selection should have worked.

    I think my situation is relatively straightforward (doesn't everyone think that about their situation?), excepting that I'm running Win7 and my disk is partitioned GPT (but with a "sync'd" MBR). Certainly, EasyBCD recognizes it enough to show the correct partition in the menu, and recognizes it as a Linux partition...
     

Share This Page