menu.lst

crabhunter

Distinguished Member
I have installed Ubuntu 8.10 on a seperate hardrive.
I have added an entry to it and checked the box which says something about it not being on the boot drive (sorry I'm not on Vista at the moment).
I need to edit my menu.lst file but it is not the same as older versions that I was familiar with.
Here is the file.



# 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 use 'savedefault' 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=17078baa-27d0-4c61-93a2-b9d82b0f899c ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=17078baa-27d0-4c61-93a2-b9d82b0f899c

## 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 8.10, kernel 2.6.27-7-generic
uuid 17078baa-27d0-4c61-93a2-b9d82b0f899c
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=17078baa-27d0-4c61-93a2-b9d82b0f899c ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet

title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid 17078baa-27d0-4c61-93a2-b9d82b0f899c
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=17078baa-27d0-4c61-93a2-b9d82b0f899c ro single
initrd /boot/initrd.img-2.6.27-7-generic

title Ubuntu 8.10, memtest86+
uuid 17078baa-27d0-4c61-93a2-b9d82b0f899c
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST


Any help would be appreciated.
Mike
 
Hello Mike,

Change the uuid lines to "root (hdx,y)" where x is disk and y is your ubuntu partition. If you got two drives in the system and you boot from Vista's drive when you power up the machine, it should be (hd1,y), still having to put in the correct y value depending on how many partitions are on Ubuntu's disk.
 
Thanks

Thanks,can you give me an idea of these settings from the attached pic.
Ubuntu is on the 89.89gb partition on Disk 1,but grub might be on the mbr of that disk as it was the only disk in the pc when I installed it.
Thanks
 

Attachments

  • Partitions.jpg
    Partitions.jpg
    56.2 KB · Views: 9
Resolved!

Well I'm blowed,it's working fine now and I haven't done anything!
Ah well, onto getting OSX to boot now then.
Mike
 
Get EasyBCD 2.0 Beta, which supports use of UUID lines and Grub being installed to the MBR, and then simply point the Linux entry at the drive and partition Ubuntu is installed to in the "Device" menu under the Linux tab in the Add/Remove Entries section (it will most likely be shown as hard drive 1, partition 2), and it should work perfectly fine. :wink:

Cheers.

Jake

EDIT: I see you already have...
 
Last edited:
(hd1,2) or (hd2,2) should be the correct place than.

Addendum:

Well I'm blowed,it's working fine now and I haven't done anything!
Ah well, onto getting OSX to boot now then.
Mike

Working without doing anything? Sweet!

What'd ya do? yell at it? lol
 
Last edited:
Cool, he's got three drives. According to his screenshot, his Ubuntu partition is on drive 2, though it could be drive 3 depending on how the bios/bootmgr sees things at boot time.

Your sigs nice, though it fills up about half my screen and you got an x image at the bottom that could be removed. I got tired of my @ avatar so decided to change things up a little...
 
Last edited:
Cool, he's got three drives. According to his screenshot, his Ubuntu partition is on drive 2, though it could be drive 3 depending on how the bios/bootmgr sees things at boot time.
According to [post=34883]post #3[/post], his Ubuntu partition is his 89.89 GB partition, which happens to be on Disk 1 (not 2), according to the screenshot he posted...
But regardless, he said it was working now anyway. :wink:
 
Last edited:
Disk one in disk management is disk 2... see his OS drive above it? He's even selected the partition to show you where Ubuntu's located. Correct your double post please.
 
Disk one in disk management is disk 2... see his OS drive above it? He's even selected the partition to show you where Ubuntu's located. Correct your double post please.

Already fixed before you posted. :tongueout: In regards to which disk it is, I'm only going by where he said Ubuntu was located (namely the 89.89 GB partition...which, like you noted he selected), which happens to be on Disk 1 (counting begins at 0 even by Windows for drives). Though you could call it Disk 2, I was simply calling it what *Disk Management* is calling it.
 
Back
Top