Page 10 of 94 FirstFirst ... 891011122060 ... LastLast
Results 91 to 100 of 931

Thread: Grub 2 Basics

  1. #91
    Join Date
    Sep 2006
    Beans
    39

    Re: Grub 2 Basics

    @ drs305,

    scenario, jaunty with grub2 1.96 installed and working ok1 with all previous kernels as well as karmic.

    just installed in karmic grub2 (1.97 beta4) and updated --> everything ok, all kernels 'seen'. however,

    sudo grub-install /dev/sda

    that's MBR not run. how safe is the last 1.97 beta4 ?

    should I run it or hold a little longer ?

    thanks.

  2. #92
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Grub 2 Basics

    Quote Originally Posted by peter b View Post
    that's MBR not run. how safe is the last 1.97 beta4 ?
    should I run it or hold a little longer ?
    I am not sure I understand that first part. If jaunty was also on sda I would say it is very safe. If jaunty was on another device I would still run the command - especially since all your G2 menus have installed without issue so far. Of course, that's just one opinion.
    Back to Xorg...

    Retired.

  3. #93
    Join Date
    Sep 2006
    Beans
    39

    Re: Grub 2 Basics

    yes, jaunty and the other kernels, karmic included, are all on sda (logical part) with/had their own PBR. grub2 1.96 upgrade brought MBR in my situation into the play.

  4. #94
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Grub 2 Basics

    Quote Originally Posted by peter b View Post
    yes, jaunty and the other kernels, karmic included, are all on sda (logical part) with/had their own PBR. grub2 1.96 upgrade brought MBR in my situation into the play.
    Grub2 can be installed in a partition but it will complain first and isn't recommended. The reason is that it uses blocklists and the system is subject to failure if things change position on the drive/partition. The chances of this are probably much higher than having problems from installing Grub 2 to the MBR.
    Back to Xorg...

    Retired.

  5. #95
    Join Date
    Feb 2008
    Beans
    46

    Re: Grub 2 Basics

    So, what is the trick to get 40_custom entries to load? The file, 40_custom is set to execute, I have disabled 30_os-prober, but the custom file is nerver "read." I am at my wits end!!

    What the hell am I forgetting?

    Here is the 40_custom file:
    Code:
    #!/bin/sh
    exec tail -n +3 $0
    # 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.
    
    echo "Adding Arch Linux" >$2
    menuentry "Arch Linux" {
    	set root=(hd2,1)
    	linux /vmlinuz26 root=/dev/sdg2 ro
    	initrd /kernel26.img
    }
    
    menuentry "Arch Linux Fallback" {
    	set root=(hd2,1)
    	linux /vmlinuz26 root=/dev/sdg2 ro
    	initrd /kernel26-fallback.img
    }
    Thanks,
    Mark.

  6. #96
    Join Date
    Dec 2006
    Beans
    1,806

    Re: Grub 2 Basics

    Quote Originally Posted by n6yga View Post
    So, what is the trick to get 40_custom entries to load? The file, 40_custom is set to execute, I have disabled 30_os-prober, but the custom file is nerver "read." I am at my wits end!!

    What the hell am I forgetting?
    Did you run:

    Code:
    sudo update-grub
    Then have a look at /boot/grub/grub.cfg to see if your Arch entries are there.

    By the way, you should remove that echo command OR move it to the top of the file and increment the tail command line number, like this:

    Code:
    #!/bin/sh
    echo "Adding Arch Linux" >$2
    exec tail -n +4 $0
    # 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.
    
    
    menuentry "Arch Linux" {
        set root=(hd2,1)
        linux /vmlinuz26 root=/dev/sdg2 ro
        initrd /kernel26.img
    }
    
    menuentry "Arch Linux Fallback" {
        set root=(hd2,1)
        linux /vmlinuz26 root=/dev/sdg2 ro
        initrd /kernel26-fallback.img
    }

  7. #97
    Join Date
    Aug 2008
    Location
    South East Montana
    Beans
    6,153

    Re: Grub 2 Basics

    Your origan entries look prefect. Except you need to ADD one thing to each of them;
    Code:
    echo "Adding Arch Linux" >$2
    menuentry "Arch Linux" {
        set root=(hd2,1)
        linux /vmlinuz26 root=/dev/sdg2 ro
        initrd /kernel26.img
    }
    EOF
    That "EOF" addeed to both of them and running "sudo update-grub" should do it.

    Let us know.
    Dell 480 XPS 3G ram Quad Core 2.40GHz, Radeon HD 2400 PRO, Audigy1, 3x320G HDD, 320G External, Debian Testing for use, Debian Squeeze for secure use, Debian Sid for FUN

  8. #98
    Join Date
    Dec 2006
    Beans
    1,806

    Re: Grub 2 Basics

    Quote Originally Posted by ranch hand View Post
    Your origan entries look prefect. Except you need to ADD one thing to each of them;
    Code:
    echo "Adding Arch Linux" >$2
    menuentry "Arch Linux" {
        set root=(hd2,1)
        linux /vmlinuz26 root=/dev/sdg2 ro
        initrd /kernel26.img
    }
    EOF
    That "EOF" addeed to both of them and running "sudo update-grub" should do it.
    The EOF is not needed in this case. That is only required when you used the cat command. See my earlier post here.

  9. #99
    Join Date
    Feb 2008
    Beans
    46

    Re: Grub 2 Basics

    Well, it turns out that the file was being added to grub.cfg. What's weird is I can boot the initrd for Arch, but Arch craps out looking for either the UUID of the root partition, or the "/dev/sdg2." Both of which are correct.

    I may just try chainloading to Arch on the external USB drive.

    Thanks, guys!

    Mark.

  10. #100
    Join Date
    Mar 2007
    Location
    Boston
    Beans
    17
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Grub 2 Basics

    The new version of grub through me off a little, but after reading this guide I am defiantly a fan of Grub 2.

    Great guide very easy to follow!

Page 10 of 94 FirstFirst ... 891011122060 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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