Error converting lilo.conf file to grub menu.lst

Dear UBUNTU people,This file is mainly ment for the UBUNTU development people, section GRUB, but it may be of use to other people with problems starting their old lilo booted system after installing Ubuntu and grub.After installing ubunto on an empty patition I couldn't start my old system.  It turned out that ubunto made an error in converting my lilo.conf file to the grub.1fst file.  (See underlined parts below). The problem seems to be that my lilo.conf file uses 'root = current' , but current in grub is /dev/hda7 while for lilo current was /dev/hda6.<!--break-->For new linux users this might have been the end of their enthousiasm for Ububto, so I think it would be nice if you can change the lilo converting procedure in grub.These lilo.conf entries were made by installing a new kernel using make bzlilo, which is a rather standard procedure, so more users may encounter this problem.Somehow I didn't have a root password for my Ubuntu system either, so I was very happy my old emergency system ( the hda1 partition part) still worked. This way I could change the grub.1st file and the the /etc/passwd file by hand after restarting in my old Slackware system. I was a bit sleepy when installing Ubuntu, but installing without making a root password would better be more difficult. I couldn't reach the intenet for finding a default value because I couldnt work as root and I couldn't start my old system.After writing this in my old system, I go on exploring my new Ubuntu system :)<code> #======================================================================= # Lilo.conf file : (Sorry, it is messy #========================================================================# LILO configuration created by QuickInst 22.5  vr aug 12 21:50:31 CEST 2005boot = /dev/hdaprompt        # always expect prompttimeout = 150    # wait 15 secondsvga = normal    # force sane statelba32        # 'linear' is deprecateddelay = 30    # delay 3 seconds if there is a stored command line#serial = 0,1200n8    # uncomment to use COM1 tooread-only    # initailly mount roots r/oroot = current    # use "current" rootimage = /boot/vmlinuz  label = linuxread-only    # initailly mount roots r/o#root = current    # use "current" rootimage = /boot/vmlinuz_618  label = linux618read-only    # initailly mount roots r/oroot = current    # use "current" rootimage = /boot/vmlinuz_2615  label = linux2615read-only    # initailly mount roots r/oroot = current    # use "current" rootimage = /boot/vmlinuz_oud  label = linux_oud#tweede    read-only    root = current    image = /boot/vmlinuz-ide-2.4.26    label=linuxoud# oude werkende    image = /boot/bzImage    root=/dev/hda6    label = slack10-b    read-only# eind nr 4a    image = /boot/vmlinuz2    root = /dev/hda1    # use "current" root    read-only    # initailly mount roots r/o    label = linux67#    image = /boot/vmlinuz.suse    root = /dev/hdb6    initrd=/boot/initrd    append = "enableapic"    read-only# suse    image = /boot/vmlinuz.suse    root = /dev/hdb6    initrd=/boot/initrd    append = "enableapic"    label = suse    read-only#========================================================================# Ubuntu 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 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=3b43f156-304c-44c4-b1a8-cf3b85ca00fd ro# kopt_2_6=root=/dev/hda7 ro## default grub root device## e.g. groot=(hd0,0)# groot=(hd0,6)## 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-genericroot        (hd0,6)kernel        /boot/vmlinuz-2.6.17-10-generic root=/dev/hda7 ro quiet splashinitrd        /boot/initrd.img-2.6.17-10-genericquietsavedefaultboottitle        Ubuntu, kernel 2.6.17-10-generic (recovery mode)root        (hd0,6)kernel        /boot/vmlinuz-2.6.17-10-generic root=/dev/hda7 ro singleinitrd        /boot/initrd.img-2.6.17-10-genericboottitle        Ubuntu, memtest86+root        (hd0,6)kernel        /boot/memtest86+.binquietboot### 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/hda1.title        slack10-b (on /dev/hda1)root        (hd0,0)kernel        /boot/bzImage root=/dev/hda6 ro savedefaultboot# This entry automatically added by the Debian installer for an existing# linux installation on /dev/hda1.title        slack10 (on /dev/hda1)root        (hd0,0)kernel        /boot/vmlinuz root=/dev/hda6 ro savedefaultboot# This entry automatically added by the Debian installer for an existing# linux installation on /dev/hda1.title        linux65 (on /dev/hda1)root        (hd0,0)kernel        /boot/vmlinuz.6.5 root=/dev/hda1 ro savedefaultboot# This entry automatically added by the Debian installer for an existing# linux installation on /dev/hda1.title        l65metscso (on /dev/hda1)root        (hd0,0)kernel        /boot/vmlinuz.6.5 root=/dev/hda1 ro append = "enableapic initrd        /boot/initrdsavedefaultboot# This entry automatically added by the Debian installer for an existing# linux installation on /dev/hda6.title        linux (on /dev/hda6)root        (hd0,5)# good one, after manual editing :kernel        /boot/vmlinuz root=/dev/hda6 ro # Wrong one, made by UBUNTU GRUB:#kernel        /boot/vmlinuz root=current ro savedefaultboot# This entry automatically added by the Debian installer for an existing# linux installation on /dev/hda6.title        linux618 (on /dev/hda6)root        (hd0,5)kernel        /boot/vmlinuz_618 root=current ro savedefaultboot# This entry automatically added by the Debian installer for an existing# linux installation on /dev/hda6.title        linux2615 (on /dev/hda6)root        (hd0,5)kernel        /boot/vmlinuz_2615 root=current ro savedefaultboot# This entry automatically added by the Debian installer for an existing# linux installation on /dev/hda6.title        linux_oud (on /dev/hda6)root        (hd0,5)kernel        /boot/vmlinuz_oud root=current ro savedefaultboot# This entry automatically added by the Debian installer for an existing# linux installation on /dev/hda6.title        linuxoud (on /dev/hda6)root        (hd0,5)kernel        /boot/vmlinuz-ide-2.4.26 root=current ro savedefaultboot# This entry automatically added by the Debian installer for an existing# linux installation on /dev/hda6.title        slack10-b (on /dev/hda6)root        (hd0,5)kernel        /boot/bzImage root=/dev/hda6 ro savedefaultboot# This entry automatically added by the Debian installer for an existing# linux installation on /dev/hda6.title        linux67 (on /dev/hda6)root        (hd0,5)kernel        /boot/vmlinuz2 root=/dev/hda1 ro savedefaultboot# This entry automatically added by the Debian installer for a non-linux OS# on /dev/hdb1title        Windows 95/98/Meroot        (hd1,0)savedefaultmakeactivemap        (hd0) (hd1)map        (hd1) (hd0)chainloader    +1# This entry automatically added by the Debian installer for an existing# linux installation on /dev/hdb6.title        failsafe (on /dev/hdb6)root        (hd1,5)kernel        /boot/vmlinuz.suse root=/dev/hdc6 ro append = "disableapic ide=nodma apm=off initrd        /boot/initrd.susesavedefaultboot# This entry automatically added by the Debian installer for an existing# linux installation on /dev/hdb6.title        memtest86 (on /dev/hdb6)root        (hd1,5)kernel        /boot/memtest.bin ro savedefaultboot</code>