Announcement

Collapse
No announcement yet.

upgrade feisty to gutsy 3 partitions and a confused grub - 'The Unfaungibbon'

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

    upgrade feisty to gutsy 3 partitions and a confused grub - 'The Unfaungibbon'

    AMD 64 1x200GB sata
    sda1 gutsy but running feisty kernel
    sda2 shm
    sda3 edgy but seems to be where boot loader goes for boot menu


    I have an old edgy on sda3 which is my first installed OS I kept the old system when I did an upgrade/reinstall to feisty.

    After upgrading to gutsy kernel 2.6.22-14 was installed ok in /boot on sda3 but it seems grub uses the boot menu on sda3 and the menu.list in /boot on sda3 does not have 2.6.22-14.

    Before I make my system un mountable mess can someone tell me if I should edit the menu.list in sda3 by copying and pasting the menu.list for sda1 or do I need to edit it too?

    Also do I need to do anything else to get the gutsy kernel running on sda1?

    Here are the 2 menu.lists

    /dev/sda1 gutsy upgrade still running feisty kernel

    # menu.lst - See: grub(8), info grub, update-grub(8)
    # grub-install(8), grub-floppy(8),
    # grub-md5-crypt, /usr/share/doc/grub
    # and /usr/share/doc/grub-doc/.

    ## default num
    # Set the default entry to the entry number NUM. Numbering starts from 0, and
    # the entry number 0 is the default if the command is not used.
    #
    # You can specify 'saved' instead of a number. In this case, the default entry
    # is the entry saved with the command 'savedefault'.
    # WARNING: If you are using dmraid do not change this entry to 'saved' or your
    # array will desync and will not let you boot your system.
    default 0

    ## timeout sec
    # Set a timeout, in SEC seconds, before automatically booting the default entry
    # (normally the first entry defined).
    timeout 10

    ## hiddenmenu
    # Hides the menu by default (press ESC to see the menu)
    #hiddenmenu

    # Pretty colours
    #color cyan/blue white/blue

    ## password ['--md5'] passwd
    # If used in the first section of a menu file, disable all interactive editing
    # control (menu entry editor and command-line) and entries protected by the
    # command 'lock'
    # e.g. password topsecret
    # password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
    # password topsecret

    #
    # examples
    #
    # title Windows 95/98/NT/2000
    # root (hd0,0)
    # makeactive
    # chainloader +1
    #
    # title Linux
    # root (hd0,1)
    # kernel /vmlinuz root=/dev/hda2 ro
    #

    #
    # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

    ### BEGIN AUTOMAGIC KERNELS LIST
    ## lines between the AUTOMAGIC KERNELS LIST markers will be modified
    ## by the debian update-grub script except for the default options below

    ## DO NOT UNCOMMENT THEM, Just edit them to your needs

    ## ## Start Default Options ##
    ## default kernel options
    ## default kernel options for automagic boot options
    ## If you want special options for specific kernels use kopt_x_y_z
    ## where x.y.z is kernel version. Minor versions can be omitted.
    ## e.g. kopt=root=/dev/hda1 ro
    ## kopt_2_6_8=root=/dev/hdc1 ro
    ## kopt_2_6_8_2_686=root=/dev/hdc2 ro
    # kopt=root=UUID=ee79377e-dd5e-4dda-bd4c-b50597868088 ro
    # kopt_2_6=root=/dev/sda3 ro

    ## default grub root device
    ## e.g. groot=(hd0,0)
    # groot=(hd0,2)

    ## should update-grub create alternative automagic boot options
    ## e.g. alternative=true
    ## alternative=false
    # alternative=true

    ## should update-grub lock alternative automagic boot options
    ## e.g. lockalternative=true
    ## lockalternative=false
    # lockalternative=false

    ## additional options to use with the default boot option, but not with the
    ## alternatives
    ## e.g. defoptions=vga=791 resume=/dev/hda5
    # defoptions=quiet splash

    ## should update-grub lock old automagic boot options
    ## e.g. lockold=false
    ## lockold=true
    # lockold=false

    ## altoption boot targets option
    ## multiple altoptions lines are allowed
    ## e.g. altoptions=(extra menu suffix) extra boot options
    ## altoptions=(recovery) single
    # altoptions=(recovery mode) single

    ## controls how many kernels should be put into the menu.lst
    ## only counts the first occurence of a kernel, not the
    ## alternative kernel options
    ## e.g. howmany=all
    ## howmany=7
    # howmany=all

    ## should update-grub create memtest86 boot option
    ## e.g. memtest86=true
    ## memtest86=false
    # memtest86=true

    ## should update-grub adjust the value of the default booted system
    ## can be true or false
    # updatedefaultentry=false

    ## ## End Default Options ##

    title Ubuntu, kernel 2.6.17-10-generic
    root (hd0,2)
    kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/sda3 ro quiet splash
    initrd /boot/initrd.img-2.6.17-10-generic
    quiet
    savedefault
    boot

    title Ubuntu, kernel 2.6.17-10-generic (recovery mode)
    root (hd0,2)
    kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/sda3 ro single
    initrd /boot/initrd.img-2.6.17-10-generic
    boot

    title Ubuntu, memtest86+
    root (hd0,2)
    kernel /boot/memtest86+.bin
    quiet
    boot

    ### END DEBIAN AUTOMAGIC KERNELS LIST

    # This is a divider, added to separate the menu items below from the Debian
    # ones.
    title Other operating systems:
    root


    # This entry automatically added by the Debian installer for an existing
    # linux installation on /dev/sda1.
    title Ubuntu, kernel 2.6.20-16-generic (on /dev/sda1)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=3581f941-21b9-442c-bf75-9ba1d986b9f0 ro quiet splash
    initrd /boot/initrd.img-2.6.20-16-generic
    savedefault
    boot


    # This entry automatically added by the Debian installer for an existing
    # linux installation on /dev/sda1.
    title Ubuntu, kernel 2.6.20-16-generic (recovery mode) (on /dev/sda1)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=3581f941-21b9-442c-bf75-9ba1d986b9f0 ro single
    initrd /boot/initrd.img-2.6.20-16-generic
    savedefault
    boot


    # This entry automatically added by the Debian installer for an existing
    # linux installation on /dev/sda1.
    title Ubuntu, kernel 2.6.20-15-generic (on /dev/sda1)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=3581f941-21b9-442c-bf75-9ba1d986b9f0 ro quiet splash
    initrd /boot/initrd.img-2.6.20-15-generic
    savedefault
    boot


    # This entry automatically added by the Debian installer for an existing
    # linux installation on /dev/sda1.
    title Ubuntu, kernel 2.6.20-15-generic (recovery mode) (on /dev/sda1)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=3581f941-21b9-442c-bf75-9ba1d986b9f0 ro single
    initrd /boot/initrd.img-2.6.20-15-generic
    savedefault
    boot


    # This entry automatically added by the Debian installer for an existing
    # linux installation on /dev/sda1.
    title Ubuntu, kernel 2.6.17-11-generic (on /dev/sda1)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.17-11-generic root=UUID=3581f941-21b9-442c-bf75-9ba1d986b9f0 ro quiet splash
    initrd /boot/initrd.img-2.6.17-11-generic
    savedefault
    boot


    # This entry automatically added by the Debian installer for an existing
    # linux installation on /dev/sda1.
    title Ubuntu, kernel 2.6.17-11-generic (recovery mode) (on /dev/sda1)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.17-11-generic root=UUID=3581f941-21b9-442c-bf75-9ba1d986b9f0 ro single
    initrd /boot/initrd.img-2.6.17-11-generic
    savedefault
    boot


    # This entry automatically added by the Debian installer for an existing
    # linux installation on /dev/sda1.
    title Ubuntu, kernel 2.6.17-10-generic (on /dev/sda1)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.17-10-generic root=UUID=3581f941-21b9-442c-bf75-9ba1d986b9f0 ro quiet splash
    initrd /boot/initrd.img-2.6.17-10-generic
    savedefault
    boot


    # This entry automatically added by the Debian installer for an existing
    # linux installation on /dev/sda1.
    title Ubuntu, kernel 2.6.17-10-generic (recovery mode) (on /dev/sda1)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.17-10-generic root=UUID=3581f941-21b9-442c-bf75-9ba1d986b9f0 ro single
    initrd /boot/initrd.img-2.6.17-10-generic
    savedefault
    boot


    # This entry automatically added by the Debian installer for an existing
    # linux installation on /dev/sda1.
    title Ubuntu, memtest86+ (on /dev/sda1)
    root (hd0,0)
    kernel /boot/memtest86+.bin
    savedefault
    boot

    AND HERE IS

    /dev/sda1 (old Edgy with boot menu.list for current version of feisty running on sda3

    # menu.lst - See: grub(8), info grub, update-grub(8)
    # grub-install(8), grub-floppy(8),
    # grub-md5-crypt, /usr/share/doc/grub
    # and /usr/share/doc/grub-doc/.

    ## default num
    # Set the default entry to the entry number NUM. Numbering starts from 0, and
    # the entry number 0 is the default if the command is not used.
    #
    # You can specify 'saved' instead of a number. In this case, the default entry
    # is the entry saved with the command 'savedefault'.
    # WARNING: If you are using dmraid do not change this entry to 'saved' or your
    # array will desync and will not let you boot your system.
    default 0

    ## timeout sec
    # Set a timeout, in SEC seconds, before automatically booting the default entry
    # (normally the first entry defined).
    timeout 3

    ## hiddenmenu
    # Hides the menu by default (press ESC to see the menu)
    hiddenmenu

    # Pretty colours
    #color cyan/blue white/blue

    ## password ['--md5'] passwd
    # If used in the first section of a menu file, disable all interactive editing
    # control (menu entry editor and command-line) and entries protected by the
    # command 'lock'
    # e.g. password topsecret
    # password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
    # password topsecret

    #
    # examples
    #
    # title Windows 95/98/NT/2000
    # root (hd0,0)
    # makeactive
    # chainloader +1
    #
    # title Linux
    # root (hd0,1)
    # kernel /vmlinuz root=/dev/hda2 ro
    #

    #
    # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

    ### BEGIN AUTOMAGIC KERNELS LIST
    ## lines between the AUTOMAGIC KERNELS LIST markers will be modified
    ## by the debian update-grub script except for the default options below

    ## DO NOT UNCOMMENT THEM, Just edit them to your needs

    ## ## Start Default Options ##
    ## default kernel options
    ## default kernel options for automagic boot options
    ## If you want special options for specific kernels use kopt_x_y_z
    ## where x.y.z is kernel version. Minor versions can be omitted.
    ## e.g. kopt=root=/dev/hda1 ro
    ## kopt_2_6_8=root=/dev/hdc1 ro
    ## kopt_2_6_8_2_686=root=/dev/hdc2 ro
    # kopt=root=UUID=3581f941-21b9-442c-bf75-9ba1d986b9f0 ro

    ## Setup crashdump menu entries
    ## e.g. crashdump=1
    # crashdump=0

    ## default grub root device
    ## e.g. groot=(hd0,0)
    # groot=(hd0,0)

    ## should update-grub create alternative automagic boot options
    ## e.g. alternative=true
    ## alternative=false
    # alternative=true

    ## should update-grub lock alternative automagic boot options
    ## e.g. lockalternative=true
    ## lockalternative=false
    # lockalternative=false

    ## additional options to use with the default boot option, but not with the
    ## alternatives
    ## e.g. defoptions=vga=791 resume=/dev/hda5
    # defoptions=quiet splash

    ## should update-grub lock old automagic boot options
    ## e.g. lockold=false
    ## lockold=true
    # lockold=false

    ## Xen hypervisor options to use with the default Xen boot option
    # xenhopt=

    ## Xen Linux kernel options to use with the default Xen boot option
    # xenkopt=console=tty0

    ## altoption boot targets option
    ## multiple altoptions lines are allowed
    ## e.g. altoptions=(extra menu suffix) extra boot options
    ## altoptions=(recovery) single
    # altoptions=(recovery mode) single

    ## controls how many kernels should be put into the menu.lst
    ## only counts the first occurence of a kernel, not the
    ## alternative kernel options
    ## e.g. howmany=all
    ## howmany=7
    # howmany=all

    ## should update-grub create memtest86 boot option
    ## e.g. memtest86=true
    ## memtest86=false
    # memtest86=true

    ## should update-grub adjust the value of the default booted system
    ## can be true or false
    # updatedefaultentry=false

    ## should update-grub add savedefault to the default options
    ## can be true or false
    # savedefault=false

    ## ## End Default Options ##

    title Ubuntu 7.10, kernel 2.6.22-14-server
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.22-14-server root=UUID=3581f941-21b9-442c-bf75-9ba1d986b9f0 ro quiet splash
    initrd /boot/initrd.img-2.6.22-14-server
    quiet

    title Ubuntu 7.10, kernel 2.6.22-14-server (recovery mode)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.22-14-server root=UUID=3581f941-21b9-442c-bf75-9ba1d986b9f0 ro single
    initrd /boot/initrd.img-2.6.22-14-server

    title Ubuntu 7.10, kernel 2.6.22-14-rt
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.22-14-rt root=UUID=3581f941-21b9-442c-bf75-9ba1d986b9f0 ro quiet splash
    initrd /boot/initrd.img-2.6.22-14-rt
    quiet

    title Ubuntu 7.10, kernel 2.6.22-14-rt (recovery mode)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.22-14-rt root=UUID=3581f941-21b9-442c-bf75-9ba1d986b9f0 ro single
    initrd /boot/initrd.img-2.6.22-14-rt

    title Ubuntu 7.10, kernel 2.6.22-14-generic
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=3581f941-21b9-442c-bf75-9ba1d986b9f0 ro quiet splash
    initrd /boot/initrd.img-2.6.22-14-generic
    quiet

    title Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=3581f941-21b9-442c-bf75-9ba1d986b9f0 ro single
    initrd /boot/initrd.img-2.6.22-14-generic

    title Ubuntu 7.10, kernel 2.6.20-16-generic
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=3581f941-21b9-442c-bf75-9ba1d986b9f0 ro quiet splash
    initrd /boot/initrd.img-2.6.20-16-generic
    quiet

    title Ubuntu 7.10, kernel 2.6.20-16-generic (recovery mode)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=3581f941-21b9-442c-bf75-9ba1d986b9f0 ro single
    initrd /boot/initrd.img-2.6.20-16-generic

    title Ubuntu 7.10, kernel 2.6.17-11-generic
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.17-11-generic root=UUID=3581f941-21b9-442c-bf75-9ba1d986b9f0 ro quiet splash
    initrd /boot/initrd.img-2.6.17-11-generic
    quiet

    title Ubuntu 7.10, kernel 2.6.17-11-generic (recovery mode)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.17-11-generic root=UUID=3581f941-21b9-442c-bf75-9ba1d986b9f0 ro single
    initrd /boot/initrd.img-2.6.17-11-generic

    title Ubuntu 7.10, kernel 2.6.17-10-generic
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.17-10-generic root=UUID=3581f941-21b9-442c-bf75-9ba1d986b9f0 ro quiet splash
    initrd /boot/initrd.img-2.6.17-10-generic
    quiet

    title Ubuntu 7.10, kernel 2.6.17-10-generic (recovery mode)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.17-10-generic root=UUID=3581f941-21b9-442c-bf75-9ba1d986b9f0 ro single
    initrd /boot/initrd.img-2.6.17-10-generic

    title Ubuntu 7.10, memtest86+
    root (hd0,0)
    kernel /boot/memtest86+.bin
    quiet

    ### END DEBIAN AUTOMAGIC KERNELS LIST

    #2
    Re: upgrade feisty to gutsy 3 partitions and a confused grub

    I’m on the run here and didn’t have time to sort out exactly what you have there.

    But once *you* know what you want, this is simple to do.
    I notice you have a lot of older entries, kernels, including a server and one I didn’t recognize (rt?).
    If it were me, the first thing I’d do is clean that up, unless, of course, you want to carry all those. I have no experience with that since I do frequent fresh installs: wipe with GParted, re-partition/format, install fresh with CD. However, Rog131 has written a How-to on erasing old kernels (not just erasing the entries in the menu.lst):

    HOWTO: Removing unnecessary entries from the grub menu list
    http://kubuntuforums.net/forums/inde...opic=3082556.0
    Rog131

    So let’s say you have cleaned up (the way you want it to be) both menu.lsts (and the kernels in the /boot directories of sda1 and sda3).

    You have a GRUB in sda1 and a GRUB in sda3. You can choose to have either one of those run the boot show when you turn on the PC. It doesn’t matter which one, but arbitrarily you may wish to go with the newest GRUB on sda1 = (hd0,0).

    To get a GRUB prompt, grub>, at Konsole, type sudo grub, press Enter. You probably know that.

    -- To have sda1= (hd0,0) run the boot show, make sure GRUB is setup from there to the MBR of that hard drive:

    Get GRUB prompt
    grub> root (hd0,0)
    grub> setup (hd0)
    grub> quit
    $exit

    -- Or, you other choice, to have sda3= (hd0,2) run the boot show, make sure GRUB is setup from there to the MBR of that hard drive:

    Get GRUB prompt
    grub> root (hd0,2)
    grub> setup (hd0)
    grub> quit
    $exit



    After doing one of those, then clean up the menu.lst in the partition you chose to go with (either sda1 or sda3, in /boot/grub/menu.lst).

    -- If you chose to use sda1 to run the boot show. Then:

    clean up the menu.lst at /boot/grub in sda1, removing boot entries for which you removed old kernels (as per Rog131). If you do not have a workable boot entry for sda3 in your sda1 menu.lst, get into sda3, copy the boot stanza entries you kept that apply to sda3 (including Recovery etc.) and—as root--paste them into the sda1 menu.lst, placing them either before the *** Begin Automagic kernels list line or after the *** End Automagic kernels list line (which is probably preferable). Then File > Save, File > Quit that sda1 menu.lst.

    -- Similarly, if you chose to use sda3 to run the boot show, Then, etc.


    That’s it. You won’t damage anything that you can’t fix using root-setup-quit and copying menu.lst entries to and fro (even by live CD if necessary, but that probably won’t happen to you here).
    An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

    Comment


      #3
      Re: upgrade feisty to gutsy 3 partitions and a confused grub - 'The Unfaungibbon

      Thankyou so much. All working wonderfully now. Very nice to learn about grub

      Comment


        #4
        Re: upgrade feisty to gutsy 3 partitions and a confused grub - 'The Unfaungibbon

        Wow, Good job, luh3417!


        How To GRUB Methods - Toolkit
        http://kubuntuforums.net/forums/inde...opic=3081671.0
        (the basics, dual booting, techniques)

        How To Make GRUB Thumb Drive
        http://kubuntuforums.net/forums/inde...opic=3081748.0
        How to install K/Ubuntu 7.04 to an external USB hard disk drive (HDD), 8-14-07
        (and other posts that follow in that thread)

        Bigpond, home: http://users.bigpond.net.au/hermanzone/
        (a standard reference for GRUB and Linux, filesystems, etc.)

        Tuxfiles: http://www.tuxfiles.org/
        (the place to start for command-line stuff, filesystems, etc.)

        Psychocats: http://www.psychocats.net/ubuntu/index.php
        (a classic and standard Linux/Ubuntu reference that also applies to Kubuntu)

        Super Grub Disk, new site: http://supergrub.forjamari.linex.org/
        (a leading GRUB rescue live CD)

        GParted: http://gparted.sourceforge.net/
        GParted how-to: http://www.howtoforge.com/partitioning_with_gparted
        (the leading partition editor most of us use--get the live CD download--works on your internal drives, your external USB drives, and your flash drives)



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

        Comment

        Working...
        X