Find the answer to your Linux question:
Results 1 to 10 of 10
I have installed Kuntu in a Windows XP+ Mandriva 2007 + Fedora 7 PC.. now the difficulty is that the grub has default set as kubuntu but I want to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie dr_smit's Avatar
    Join Date
    Dec 2006
    Location
    Raipur
    Posts
    171

    A twist in the boot but don't want to sprain the ankles


    I have installed Kuntu in a Windows XP+ Mandriva 2007 + Fedora 7 PC..
    now the difficulty is that the grub has default set as kubuntu but I want to default boot into Mandriva 2007..
    I can not do so with bootloader in Mandriva and I cannot make head & tail of menu.lst in kubuntu..
    please suggest way to boot from grub into mandriva 2007 while maintaining other boot options for Windows XP, Fedora and Kubuntu..


    Do I need to post anything that may help you?
    dr_smit
    Registered Linux User # 442381
    You get life once....... If you live right, once is enough!
    Mandriva 2008, CentOS 5, Sabalyon..

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    You should use Kubuntu's GRUB only. There is no need to re-install Mandriva's GRUB for setting Mandriva default OS.
    Boot up Kubuntu and execute this
    Code:
    kdesu kate /boot/grub/menu.lst
    Set default value to Mandriva title line no - 1.
    Let say, Mandriva's title line is 5th title in menu.lst file. Set default 4.

    If its not clear what I am talking about, post the contents of Kubuntu's menu.lst file here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Linux Newbie dr_smit's Avatar
    Join Date
    Dec 2006
    Location
    Raipur
    Posts
    171

    I shall try it and let you know..

    Hi DC,
    you are the one who got me started into linux in dec 2006, I wanted to post this problem as a request to you only (with your name) but thot it would be inappropriate on a public forum and I may offend many including you..
    this is a personal note of thanks for you, DC
    Keep up the good work!!!
    I now have become more than a newb
    dr_smit
    Registered Linux User # 442381
    You get life once....... If you live right, once is enough!
    Mandriva 2008, CentOS 5, Sabalyon..

  4. $spacer_open
    $spacer_close
  5. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    I am glad to help you dr_smit.
    I remember those SuSe problems and You have worked very hard.
    Well Done !
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #5
    Linux Newbie dr_smit's Avatar
    Join Date
    Dec 2006
    Location
    Raipur
    Posts
    171

    here's part of menu.lst

    THIS IS LAST HALF OF TWO PARTS:--

    title Ubuntu, kernel 2.6.20-16-generic
    root (hd0,11)
    kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=260b1f92-e1b6-4b90-a64b-ca9d234a47e5 ro quiet splash
    initrd /boot/initrd.img-2.6.20-16-generic
    quiet
    savedefault

    title Ubuntu, kernel 2.6.20-16-generic (recovery mode)
    root (hd0,11)
    kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=260b1f92-e1b6-4b90-a64b-ca9d234a47e5 ro single
    initrd /boot/initrd.img-2.6.20-16-generic

    title Ubuntu, kernel 2.6.20-15-generic
    root (hd0,11)
    kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=260b1f92-e1b6-4b90-a64b-ca9d234a47e5 ro quiet splash
    initrd /boot/initrd.img-2.6.20-15-generic
    quiet
    savedefault

    title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
    root (hd0,11)
    kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=260b1f92-e1b6-4b90-a64b-ca9d234a47e5 ro single
    initrd /boot/initrd.img-2.6.20-15-generic

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

    ### 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 a non-linux OS
    # on /dev/sda1
    title Microsoft Windows XP Professional
    root (hd0,0)
    savedefault
    makeactive
    chainloader +1


    # This entry automatically added by the Debian installer for an existing
    # linux installation on /dev/sda10.
    title Mandriva 2007 (on /dev/sda10)
    root (hd0,9)
    kernel /boot/vmlinuz root=/dev/hdc10 resume=/dev/hdc6
    initrd (hd0,9)/boot/initrd.img
    savedefault
    boot


    # This entry automatically added by the Debian installer for an existing
    # linux installation on /dev/sda10.
    title Fedora 7 (on /dev/sda10)
    root (hd0,9)
    kernel /boot/vmlinuz-2.6.17-5mdv root=/dev/hdc8 resume=/dev/hdc6
    initrd (hd0,9)/boot/initrd.img
    savedefault
    boot


    # This entry automatically added by the Debian installer for an existing
    # linux installation on /dev/sda10.
    title failsafe (on /dev/sda10)
    root (hd0,9)
    kernel /boot/vmlinuz root=/dev/hdc10 failsafe resume=/dev/hdc6
    initrd (hd0,9)/boot/initrd.img
    savedefault
    boot


    # This entry automatically added by the Debian installer for an existing
    # linux installation on /dev/sda10.
    title Ubuntu (on /dev/sda10)
    root (hd0,9)
    kernel /boot/vmlinuz root=/dev/hdc12
    initrd (hd0,9)/boot/initrd.img
    savedefault
    boot


    # This entry automatically added by the Debian installer for an existing
    # linux installation on /dev/sda8.
    title Fedora (2.6.22.1-41.fc7) (on /dev/sda
    root (hd0,7)
    kernel /boot/vmlinuz-2.6.22.1-41.fc7 ro root=LABEL=/ rhgb quiet
    initrd /boot/initrd-2.6.22.1-41.fc7.img
    savedefault
    boot


    # This entry automatically added by the Debian installer for an existing
    # linux installation on /dev/sda8.
    title Fedora (2.6.21-1.3194.fc7) (on /dev/sda
    root (hd0,7)
    kernel /boot/vmlinuz-2.6.21-1.3194.fc7 ro root=LABEL=/ rhgb quiet
    initrd /boot/initrd-2.6.21-1.3194.fc7.img
    savedefault
    boot
    dr_smit
    Registered Linux User # 442381
    You get life once....... If you live right, once is enough!
    Mandriva 2008, CentOS 5, Sabalyon..

  7. #6
    Linux Newbie dr_smit's Avatar
    Join Date
    Dec 2006
    Location
    Raipur
    Posts
    171

    this part is First half, earlier post is last half

    # menu.lst - See: grub(, info grub, update-grub(
    # grub-install(, grub-floppy(,
    # 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 30

    ## 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=260b1f92-e1b6-4b90-a64b-ca9d234a47e5 ro

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

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

    ## 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

    ## ## End Default Options ##
    dr_smit
    Registered Linux User # 442381
    You get life once....... If you live right, once is enough!
    Mandriva 2008, CentOS 5, Sabalyon..

  8. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Mandrive title line is 8th title in menu.lst file. Set default value to 7.
    Code:
    default 7
    OR
    Your menu.lst file is very cluttered. A lot of useless entries in GRUB menu.
    backup original menu.lst and create new.
    Code:
    cd /boot/grub
    mv menu.lst menu.lst.bak
    kdesu kate menu.lst
    Copy following code and paste in Kate window. Save file and reboot.
    Code:
    default 2
    timeout 30
    color cyan/blue white/blue
    
    title        Ubuntu, kernel 2.6.20-16-generic
    root        (hd0,11)
    kernel        /boot/vmlinuz-2.6.20-16-generic root=UUID=260b1f92-e1b6-4b90-a64b-ca9d234a47e5 ro quiet splash
    initrd        /boot/initrd.img-2.6.20-16-generic
    quiet
    
    title        Microsoft Windows XP Professional
    root        (hd0,0)
    chainloader    +1
    
    title        Mandriva 2007 
    root        (hd0,9)
    kernel        /boot/vmlinuz root=/dev/hdc10 resume=/dev/hdc6 
    initrd        (hd0,9)/boot/initrd.img
    boot
    
     title        Fedora (2.6.22.1-41.fc7) 
    root        (hd0,7)
    kernel        /boot/vmlinuz-2.6.22.1-41.fc7 ro root=LABEL=/ rhgb quiet 
    initrd        /boot/initrd-2.6.22.1-41.fc7.img
    boot
    If anything goes wrong or you dont like it, set backup copy as default menu.lst. Execute this
    Code:
    cd /boot/grub
    sudo rm menu.lst
    mv menu.lst.bak menu.lst
    Last edited by devils casper; 08-14-2007 at 02:59 PM.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  9. #8
    Linux Newbie dr_smit's Avatar
    Join Date
    Dec 2006
    Location
    Raipur
    Posts
    171

    cant su in terminal

    My root password is working well everywhere else but I cant su to root in terminal..
    therefore, I couldn't unclutter menu.lst..
    can you help..

    meanwhile I am trying out by..
    default 7 way
    dr_smit
    Registered Linux User # 442381
    You get life once....... If you live right, once is enough!
    Mandriva 2008, CentOS 5, Sabalyon..

  10. #9
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Use sudo instead of su in KUbuntu.

    Code:
    cd /boot/grub
    sudo mv menu.lst menu.lst.bak
    kdesu kate menu.lst
    Copy menu.lst file from my last post, save file and reboot.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  11. #10
    Linux Newbie dr_smit's Avatar
    Join Date
    Dec 2006
    Location
    Raipur
    Posts
    171

    Default 7 worked

    thanks for help
    will try sudo..
    dr_smit
    Registered Linux User # 442381
    You get life once....... If you live right, once is enough!
    Mandriva 2008, CentOS 5, Sabalyon..

Posting Permissions

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