Results 1 to 8 of 8

Thread: Linux Doesn't Boot

  1. #1

    Default Linux Doesn't Boot

    Hi Everybody

    Long time ago , I moved from Ubuntu to Linux OpenSUSE . I formatted my laptop , then installed Linux OpenSUSE . It had had Ubuntu + Windows . I sent a while without Windows . After that, I've installed Windows , and the problem happened .

    As we all know , when there's Windows and Linux on the same computer , there's a menu appears when booting up to choose which OS We want . In my laptop , after I installed Windows , this menu doesn't appear , as well as Windows boots up directly .

    I didn't have such problem before , because I always used to install Linux after I install windows . However this time I did the opposite !
    I tried to remove Windows , but the laptop said : There is no operating system .

    As there anyway to recover that menu , and let Windows and Linux work side by side ??

  2. #2

    Default Re: Linux Doesn't Boot

    Of course there is.
    First off, do you have a live CD handy?
    And, do you want GRUB (the Linux menu), the Windows Boot Manager, or do you just want something that works?
    Vaio F11: i7-720QM 8GB RAM Nvidia GT 330m
    Win 7 Pro 64 bit | openSuse 11.4 64 bit | Arch Linux 64 bit

  3. #3

    Default Re: Linux Doesn't Boot

    I've got the live DVD . I want the to install the grub (Linux Boot Loader) , besides I want the menu , so I can take my freedom in working in both OS

  4. #4
    Join Date
    Jun 2008
    Location
    Prescott, AZ
    Posts
    1,191

    Default Re: Linux Doesn't Boot

    You need to boot a live linux (from CD or DVD) then browse to your main OpenSuSE installation and get your /boot/grub/menu.lst file and make a copy and save it somewhere.

    Then you use the OpenSuSE CD/DVD to "repair" - actually, to reinstall the GRUB bootloader. But this will not find your Windows or other OpenSuSE installation. That information is in your menu.lst file. So after you do the repair / reinstallGRUB, then you copy the old /boot/grub/menu.lst over the one that was "repaired." Then when you reboot, you should be able to see the other OS's.

    I think there may also be a "browse" option when repairing to locate other OS's but I've never used that and wouldn't want to get the syntax wrong. Someone else will probably chime in here and let me know if I've missed anything...

  5. #5

    Default Re: Linux Doesn't Boot

    I didn't understand your way perfectly . Why do I have to copy the old menu.lst file over the new one ??

    May that affect my Windows ??

    How can I reinstall the Grub itself ?? In fact I do not know how to do that !

    About locating other OS's , does that mean if there's no such option , or there's an error with this , I may have the same problem I had but with Windows ??

  6. #6

    Default Re: Linux Doesn't Boot

    What you are going to do:
    Boot up into the LiveCD.
    Mount a flash drive (if it doesn't get autodetected)
    In a terminal:
    Code:
    sudo mkdir /mnt/flash
    sudo mount /dev/sdb1 /mnt/flash
    then
    Code:
    sudo cp /boot/grub/menu.lst /mnt/flash/
    If it is autodetected, just drag & drop.

    The reason copying the menu.lst is important is that when you reinstall Grub (which is what you're doing) it will not auto-detect Windows (or we think it won't). It will allow you to boot into Linux where you will copy the menu.lst from the flash drive (this menu.lst has windows) to the new Grub. Then you can dual-boot again. No matter what happens, you won't lose Windows. You're not even touching it.

    Onto reinstalling Grub:
    In a terminal:
    Code:
    sudo grub
    This will launch you into a grub shell.
    Code:
    find /boot/grub/stage1
    The output should be something like (hd0,3)
    Substitute that value in for the following:
    Code:
    root (hd0,3)
    setup (hd0)
    exit
    Now you recopy your menu.lst
    Code:
    sudo mv /boot/grub/menu.lst /boot/grub/menu.lst.old
    sudo cp /mnt/flash/menu.lst /boot/grub/menu.lst
    Good luck.
    Vaio F11: i7-720QM 8GB RAM Nvidia GT 330m
    Win 7 Pro 64 bit | openSuse 11.4 64 bit | Arch Linux 64 bit

  7. #7

    Default Re: Linux Doesn't Boot

    Quote Originally Posted by bprogrammer View Post
    Hi Everybody

    Long time ago , I moved from Ubuntu to Linux OpenSUSE . I formatted my laptop , then installed Linux OpenSUSE . It had had Ubuntu + Windows . I sent a while without Windows . After that, I've installed Windows , and the problem happened .

    As we all know , when there's Windows and Linux on the same computer , there's a menu appears when booting up to choose which OS We want . In my laptop , after I installed Windows , this menu doesn't appear , as well as Windows boots up directly .

    I didn't have such problem before , because I always used to install Linux after I install windows . However this time I did the opposite !
    I tried to remove Windows , but the laptop said : There is no operating system .

    As there anyway to recover that menu , and let Windows and Linux work side by side ??
    Here's a couple of links to topic threads about reinstalling grub. Generally, they're the same general method:

    Re-Install Grub Quickly with Parted Magic

    openSuse dual boot loader gone after Windows reinstallation

    HowTo Boot into openSUSE when it won't Boot from the Grub Code on the Hard Drive by Swerdna

    Parted Magic:
    http://dl.dropbox.com/u/10573557/pmagic-4.5.iso
    Box 1: OpenSuse 11.1/Win7 | Linux 2.6.27 Gnome | AMD 64 X2 6000+ | nVidia 8600GT | 2GB RAM
    Box 2: OpenSuse 11.2 | Linux 2.6.31 Gnome | AMD 64 3000+ | ATI X800 Pro | 1GB RAM
    Box 3: Win7 Premium Home | Intel P4 3.0Gz | ATI AIW 2006 | 2GB RAM

  8. #8

    Default Re: Linux Doesn't Boot

    Thank you all guys
    I searched in google and didn't find the answer I need . However , here I think I did .

    I'll try to apply these tips as soon as possible , because I'm busy in these two days

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •