Announcement

Collapse
No announcement yet.

Making GRUB easier for a true multi-boot system -> CONCEPT

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

  • SecretCode
    replied
    Originally posted by GreyGeek View Post
    Since this is a thread about grub allow me to inject something I picked up on G+ today.

    http://www.noobslab.com/2012/05/inst...omizer-in.html

    I've installed it but I haven't run it yet. The usual caveats apply.
    I use grub-customizer - it's great. (Except visually.)

    It has some more capabilities, like renaming entries and grouping into submenus, that I can't see in kde-config-grub2.

    Leave a comment:


  • vinnywright
    replied
    ok thinking of a few questions now ......

    1-was /mnt/grub (/dev/sda2) a separate partition just containing /grub or an installed OS ?
    and
    2- dose not grub start counting drives as hd0=sda with the msdos1=partition1 or /sda1 if - hd0,msdos1 ?

    if so I see no hd0's in your list ,,,,,do you not use your first hard drive ? and how many are in that box becose you go up to hd3 or /sdd ? yes/no

    maby a fdisk -l output with that would make things clearer

    VINNY

    Leave a comment:


  • oshunluvr
    replied
    Okay: It's pretty much working.

    I had to set up different stanzas for the installs that use separate /boot. I haven't got all the prettiness worked out - like my background image doesn't display. I still need to setup the individual installs to not display their own menus. One behavior I've observed is after you select the boot stanza and the second menu is displayed, you can return to the main menu with ESC - kind of a nice action.

    It's wasn't really much work. I installed grub with grub-install --boot-directory=/mnt/grub /dev/sda (/mnt/grub is /dev/sda2 on my system) then edited the grub.cfg residing there to show stanzas like:

    Code:
    menuentry 'Kubuntu 12.04' {
    search --set root --label Kubuntu_12_04 --hint hd3,msdos2
    configfile /boot/grub/grub.cfg
    }
    
    
    menuentry 'Kubuntu 12.10' {
    search --set root --label Kubuntu_12_10 --hint hd3,msdos4
    configfile /boot/grub/grub.cfg
    }
    
    
    menuentry 'Back Track' {
    search --set root --label BackTrack5_R3 --hint hd3,msdos3
    configfile /boot/grub/grub.cfg
    }
    
    
    menuentry 'Kubuntu 12.04 - previous' {
    set root='(hd1,msdos2)'
    configfile /grub/grub.cfg
    }
    
    
    menuentry 'SDABC7' {
    search --set root --label boot_abc7 --hint hd2,msdos2
    configfile /grub/grub.cfg
    }
    
    
    menuentry 'SDC5' {
    set root='hd2,msdos5'
    configfile /boot/grub/grub.cfg
    }
    
    
    menuentry 'USB' {
    set root='hd4,msdos1'
    chainloader +1
    }
    As an added bonus; I created a chainloader stanza that allows me to boot directly to a thumb drive. On my old (2007) motherboard, you have to boot to BIOS with the thumb drive inserted, select the thumb drive as the boot device (my BIOS sees it as a hard drive), continue the boot. Once you're done you have to re-enter BIOS and re-select the hard drive boot order. Now, I just select the stanza titled "USB" and it chainloads to the thumb drive. The example above has it in it.

    Once I get resolutions, fonts, colors and backgrounds working to my liking I'll post a how-to.

    Works like a charm!

    Leave a comment:


  • vinnywright
    replied
    Originally posted by GreyGeek View Post
    Since this is a thread about grub allow me to inject something I picked up on G+ today.

    http://www.noobslab.com/2012/05/inst...omizer-in.html

    I've installed it but I haven't run it yet. The usual caveats apply.
    we have something vary smiler in the repos called kde-config-grub2 it adds a config module to system settings>startup and shutdown that looks a lot like that

    VINNY

    Leave a comment:


  • GreyGeek
    replied
    Since this is a thread about grub allow me to inject something I picked up on G+ today.

    http://www.noobslab.com/2012/05/inst...omizer-in.html

    I've installed it but I haven't run it yet. The usual caveats apply.

    Leave a comment:


  • Qqmike
    replied
    http://www.kubuntuforums.net/showthr...uide-for-Users

    should work ... let me test it

    Works.

    But, also, Snowhog DID successfully fix the link in my post above!
    Gremlins everywhere ...
    Sorry.

    Where is oshunluvr!
    Last edited by Qqmike; Sep 16, 2012, 12:11 PM. Reason: Clarify

    Leave a comment:


  • Qqmike
    replied
    The link is still broken. What's up with all the 404's around here! In my bookmarks for KFN, I've encountered tons of Not Found's.

    Leave a comment:


  • vinnywright
    replied
    Originally posted by Snowhog View Post
    I fixed the link.
    thank you Sr. ,,,,,and duly bookmarked

    VINNY

    Leave a comment:


  • Snowhog
    replied
    Originally posted by vinnywright View Post
    that link is broken ......

    VINNY
    I fixed the link.

    Leave a comment:


  • vinnywright
    replied
    Originally posted by Qqmike View Post
    yeah, vinny, all that stuff is (I'm pretty sure) in my how-to
    http://www.kubuntuforums.net/showthr...uide-for-Users
    though I readily confess to being rusty on it, not having used it for 4 years or so;
    also, the how-to may be too brief at times, though it should all be there AND I neurotically carefully tested everything in it;

    S-R, thanks for your Post #15; have copied it into my GRUB how-to files!
    that link is broken ......

    VINNY

    Leave a comment:


  • Tabko-00
    replied
    GRUB as always been problematic for me but anyway here is something to consider:
    ?? Why would be need to "update GRUB" . How about a separate text file that contains the stuff to change and then just ">>" in a short script to add the new contents. Error checking could be in the append script.
    Just thoughts
    Tabok-00

    Leave a comment:


  • Qqmike
    replied
    yeah, vinny, all that stuff is (I'm pretty sure) in my how-to
    Grub 2: A Guide for Users
    though I readily confess to being rusty on it, not having used it for 4 years or so;
    also, the how-to may be too brief at times, though it should all be there AND I neurotically carefully tested everything in it;

    S-R, thanks for your Post #15; have copied it into my GRUB how-to files!
    Last edited by Snowhog; Sep 16, 2012, 11:34 AM. Reason: Fixed URL link

    Leave a comment:


  • vinnywright
    replied
    Originally posted by Qqmike View Post
    " ...

    "3. Here's the key part: Install GRUB from each OS to it's own partition PBR. Set the GRUB menu to not appear at all."

    Yes, necessary, of course--and not a bad idea to do in general, being prepared for rescue-booting (manually at the grub prompt) should the need arise.
    yes and/or check and see if you can get the second grub to show it's self by taping the shift key as soon as you start to leave the first grub screen ,,,I dont like the idea of not being able to get to the second grub screen encase you kneed to boot a previous kernel

    Originally posted by Qqmike View Post
    Now, just one thing. Rusty here, as I've only recently started using 12.04 (and still have my trusty 8.04.3 running on my 2nd PC at my desk) ... but I THOUGHT that when a new kernel is installed, the system (not sure where the call comes from) automatically issues a grub update and a new grub.cfg is generated. That is, no need for manual reboots to update the grub menu. I'm certain I read this somewhere?
    that is correct ,,,,but as @oshunluvr sead if you have multiple installs (I have 3) the 2 secondary installs dont control the mane grub install so IT'S boot list dose not know about the new kernel until update-grub is run on the install that controls it ,,,that is the mane install .....I to get tired of doing that some times

    @oshunluvr if your going to be the Ginny pig let us know how it goes for sure as I will follow if it works well
    and remember completely noob friendly directions for the how to ,,,,that means explanations on installing grub to its own partition , reinstalling grub to a partition and how to setup chain loading with examples

    VINNY

    EDDIT oops just saw I missed a bunch of post's LOL
    Last edited by vinnywright; Sep 15, 2012, 09:28 PM.

    Leave a comment:


  • SteveRiley
    replied
    Originally posted by Qqmike View Post
    but I THOUGHT that when a new kernel is installed, the system (not sure where the call comes from) automatically issues a grub update and a new grub.cfg is generated. That is, no need for manual reboots to update the grub menu. I'm certain I read this somewhere?
    .deb files contain, in addition to the bits to be installed, a series of scripts:

    * preinst - run before installation
    * postinst - run after installation
    * prerm - run before removal
    * postrm - run after removal

    The postinst script for kernel images executes all files in /etc/kernel/postinst.d. One of these is zz-update-grub, which in trun calls the "real" update-grub under certain circumstances.

    Leave a comment:


  • Qqmike
    replied
    Yes, looks like I did this in
    GRUB 2: A Guide for Users
    http://www.kubuntuforums.net/showthr...uide-for-Users
    Section 4, Special Topics
    under these topics:
    Boot menu: Making your own custom grub.cfg
    4 ways to boot an OS: configfile, symlinks, direct booting, chainloader
    Dedicated GRUB 2 partition: How to build it

    And, therefore, I tested it very well (at the time), and it should work (though maybe menuentry formats/syntax are now different or more complicated).

    Leave a comment:

Users Viewing This Topic

Collapse

There are 0 users viewing this topic.

Working...
X