|
|
|
#1 (permalink) | ||||||||||||
|
PC Gamer
![]() |
What I want: Windows 7 listed first, then Ubuntu and Mint. Second, I want to remove the recovery copies from the grub boot menu. Third, I want to rename my copies of Mint and Ubuntu to "Mint" and "Ubuntu." Right now the kernel version and whatnot is everywhere.
So, is there any way to do it? Do I have to disable the Automagic kernel list (if that's possible), and do it manually?
__________________
|
||||||||||||
|
|
|
|
|
#2 (permalink) | ||||||||||||
|
4.0 GHz
|
what i do to edit the list is go into the terminal and type this
cd / cd boot cd grub sudo gedit (for gnome) menu.lst it will ask you for a password and open the program for you. it will look something like this (mine is for openSuse so the comment lines reflect that, yours will differ) Code:
# Modified by YaST2. Last modification on Wed Oct 14 12:19:15 PDT 2009
default 1
timeout 8
gfxmenu (hd0,0)/message
##YaST - activate
###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 11.1 - 2.6.27.29-0.1
root (hd0,0)
kernel /vmlinuz-2.6.27.29-0.1-pae root=/dev/disk/by-id/ata-ST340014A_3JX80QV2-part5 resume=/dev/disk/by-id/ata-ST340014A_3JX80QV2-part2 showopts vga=0x348
initrd /initrd-2.6.27.29-0.1-pae
###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
map (hd1) (hd0)
map (hd0) (hd1)
rootnoverify (hd1,0)
makeactive
chainloader +1
###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.1 - 2.6.27.29-0.1
root (hd0,0)
kernel /vmlinuz-2.6.27.29-0.1-pae root=/dev/disk/by-id/ata-ST340014A_3JX80QV2-part5 showopts ide=nodma apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe vga=0x348
initrd /initrd-2.6.27.29-0.1-pae
Code:
# Modified by YaST2. Last modification on Wed Oct 14 12:19:15 PDT 2009
default 1
timeout 8
gfxmenu (hd0,0)/message
##YaST - activate
###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
map (hd1) (hd0)
map (hd0) (hd1)
rootnoverify (hd1,0)
makeactive
chainloader +1
###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 11.1 - 2.6.27.29-0.1
root (hd0,0)
kernel /vmlinuz-2.6.27.29-0.1-pae root=/dev/disk/by-id/ata-ST340014A_3JX80QV2-part5 resume=/dev/disk/by-id/ata-ST340014A_3JX80QV2-part2 showopts vga=0x348
initrd /initrd-2.6.27.29-0.1-pae
if you still want it to default to boot Ubuntu then change the 0 in this line to a 1 Code:
default 0
Last edited by tom.slick : 4 Weeks Ago at 09:19 PM |
||||||||||||
|
|
|
|
|
#3 (permalink) | ||||||||||||
|
PC Gamer
![]() |
Ok, here's what I get from sudo gedit /boot/grub/menu.lst in Mint (where I'm assuming grub boots from; the menu.lst is blank in Ubuntu.)
Code:
# 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-legacy-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 ## Graphical boot menu location gfxmenu=/boot/gfxmenu/linuxmint.message ## timeout sec # Set a timeout, in SEC seconds, before automatically booting the default entry # (normally the first entry defined). timeout 10 # 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 # This entry automatically added by the Debian installer for a non-linux OS # on /dev/sda1 title Windows 7 rootnoverify (hd0,0) savedefault makeactive chainloader +1 ### 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=/dev/sdb1 ro ## default grub root device ## e.g. groot=(hd0,0) # groot=(hd1,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=(single-user) 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 ## specify if running in Xen domU or have grub detect automatically ## update-grub will ignore non-xen kernels when running in domU and vice versa ## e.g. indomU=detect ## indomU=true ## indomU=false # indomU=detect ## should update-grub create memtest86 boot option ## e.g. memtest86=true ## memtest86=false # memtest86=false ## 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 ### 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-legacy-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 ## Graphical boot menu location gfxmenu=/boot/gfxmenu/linuxmint.message ## timeout sec # Set a timeout, in SEC seconds, before automatically booting the default entry # (normally the first entry defined). timeout 10 # 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 # This entry automatically added by the Debian installer for a non-linux OS # on /dev/sda1 title Windows 7 rootnoverify (hd0,0) savedefault makeactive chainloader +1 ### 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=/dev/sdb1 ro ## default grub root device ## e.g. groot=(hd0,0) # groot=(hd1,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=(single-user) 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 ## specify if running in Xen domU or have grub detect automatically ## update-grub will ignore non-xen kernels when running in domU and vice versa ## e.g. indomU=detect ## indomU=true ## indomU=false # indomU=detect ## should update-grub create memtest86 boot option ## e.g. memtest86=true ## memtest86=false # memtest86=false ## 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 Linux Mint 7 root (hd1,0) kernel /boot/vmlinuz-2.6.28-11-generic root=/dev/sdb1 ro quiet splash initrd /boot/initrd.img-2.6.28-11-generic 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 title Linux Mint 7 root (hd1,0) kernel /boot/vmlinuz-2.6.28-11-generic root=/dev/sdb1 ro quiet splash initrd /boot/initrd.img-2.6.28-11-generic 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
__________________
|
||||||||||||
|
|
|
|
|
#4 (permalink) | ||||||||||||
|
4.0 GHz
|
that is your Mint linux menu.lst
you need to edit the Ubuntu menu.lst the menu.lst you posted make no reference to Ubuntu boot into Ubuntu or goto the partition Ubuntu is installed on and the to /boot/grub/menu.lst
|
||||||||||||
|
|
|
|
|
#5 (permalink) | ||||||||||||
|
PC Gamer
![]() |
That's one of the problems. Nothing shows up in Ubuntu's menu.lst.
__________________
|
||||||||||||
|
|
|
|
|
#6 (permalink) | ||||||||||||
|
4.0 GHz
|
please post output of
Code:
sudo fdisk -l
|
||||||||||||
|
|
|
|
|
#7 (permalink) | ||||||||||||
|
PC Gamer
![]() |
I actually just changed my mind; I'm going to reinstall Ubuntu only. Then I'll come back with results if I have any issues. Thanks for helping!
__________________
|
||||||||||||
|
|
|
|
|
#8 (permalink) | ||||||||||||
|
4.0 GHz
|
okay, no problem
|
||||||||||||
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|