PDA

View Full Version : [ubuntu] Ubuntu 7.10 A problem after upgrade kernel 2.6.22-15 Please Help!!!!



ksh29
June 21st, 2008, 12:33 PM
Hi, all

I am quite new to Ubuntu. I have used Ubuntu 7.10 for a while and have dual os in my pc, ubuntu 7.10 and windows XP. Today, I have upgraded the new kernel from 2.6.22-14 to 2.6.22-15 as ubuntu os remind to me to do so. Once the installation completed, I restart my pc and I found my boot menu only have following choice.

Ubuntu 7.10, Kernel 2.6.22-15-generic
Ubuntu 7.10, Kernel 2.6.22-15-generic (recovery mode)
Ubuntu 7.10, Kernel 2.6.22-14-generic
Ubuntu 7.10, Kernel 2.6.22-14-generic (recover mode)
Ubuntu 7.10, memtest86+

The option for XP has gone and added with these new kernels. However, when I choice the new Kernle, the screen stucks at the ubuntu start up progress bar for a while and then comes to this screen with following message on it,

BusyBox v1.1.3 (Debian 1:1.1.3-5ubuntu7) Built-in shell (ash)
Enter 'help' for a list of build-in commands.
(initramfs)


I have also tried to root from kernel 2.6.22-14, but it got the same problem. I think the kernel upgrade has edited my boot menu, so i can't see the my XP option. Can anyone please help me with this issue? Or even tell me where i can edit the boot menu is very helpful.

Thanks for your help.

Pumalite
June 21st, 2008, 12:51 PM
Can you boot a Live CD?

ksh29
June 21st, 2008, 01:35 PM
Can you boot a Live CD?

Yes. I just tried it with ubuntu 7.10 live CD and it boots fine.

I found this reported bug very close to my case.

Bug #151013 in linux-source-2.6.22 (Ubuntu)
https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/151013?redirection_url=https%3A%2F%2Fbugs.launchpa d.net%2Fubuntu%2F%2Bsource%2Flinux-source-2.6.22%2F%2Bbug%2F151013

Pumalite
June 21st, 2008, 01:40 PM
Post:
sudo fdisk -lu

ksh29
June 21st, 2008, 02:09 PM
Post:
sudo fdisk -lu

Disk Identifier: 0xf0biebb0
/dev/sda1 * 63 30732344 15355141 c W95 FAT32 (LBA)
/dev/sda2 30732345 73738349 21503002+ f W95 Ext'd (LBA)
/dev/sda3 73738350 115121789 20691720 83 Linux
/dev/sda4 115121790 117210239 1044225 82 Linux swap /Solaris
/dev/sda5 30732408 73738349 21502971 b W95 FAT32

Thanks for your help

Pumalite
June 21st, 2008, 02:21 PM
sudo mkdir /media/sda3
sudo mount -t ext3 /dev/sda3 /media/sda3
Post:
cat /media/sda3/boot/grub/menu.lst

ksh29
June 21st, 2008, 02:37 PM
sudo mkdir /media/sda3
sudo mount -t ext3 /dev/sda3 /media/sda3
Post:
cat /media/sda3/boot/grub/menu.lst

menu.lst

# 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 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=2657ea99-0a26-4809-bf00-9038c45a4b1b ro

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

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

## 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-15-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.22-15-generic root=UUID=2657ea99-0a26-4809-bf00-9038c45a4b1b ro quiet splash
initrd /boot/initrd.img-2.6.22-15-generic
quiet

title Ubuntu 7.10, kernel 2.6.22-15-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.22-15-generic root=UUID=2657ea99-0a26-4809-bf00-9038c45a4b1b ro single
initrd /boot/initrd.img-2.6.22-15-generic

title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=2657ea99-0a26-4809-bf00-9038c45a4b1b 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,2)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=2657ea99-0a26-4809-bf00-9038c45a4b1b ro single
initrd /boot/initrd.img-2.6.22-14-generic

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

### END DEBIAN AUTOMAGIC KERNELS LIST


I also found the menu.lst.bk which is the one before this problem

# 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 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=3afab94e-133c-4324-94e9-240a77391d95 ro

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

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

## 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-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=3afab94e-133c-4324-94e9-240a77391d95 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,2)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=3afab94e-133c-4324-94e9-240a77391d95 ro single
initrd /boot/initrd.img-2.6.22-14-generic

title Ubuntu 7.10, memtest86+
root (hd0,2)
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

thank again...

Pumalite
June 21st, 2008, 02:47 PM
This is all you need:
menu.lst

# 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 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 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=2657ea99-0a26-4809-bf00-9038c45a4b1b ro

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

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

## 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-15-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.22-15-generic root=UUID=2657ea99-0a26-4809-bf00-9038c45a4b1b ro quiet splash
initrd /boot/initrd.img-2.6.22-15-generic
quiet

title Ubuntu 7.10, kernel 2.6.22-15-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.22-15-generic root=UUID=2657ea99-0a26-4809-bf00-9038c45a4b1b ro single
initrd /boot/initrd.img-2.6.22-15-generic

title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=2657ea99-0a26-4809-bf00-9038c45a4b1b 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,2)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=2657ea99-0a26-4809-bf00-9038c45a4b1b ro single
initrd /boot/initrd.img-2.6.22-14-generic

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

### END DEBIAN AUTOMAGIC KERNELS LIST

# 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

Edit menu.lst
Backup the file first

ksh29
June 21st, 2008, 03:04 PM
Thanks for your help. umalite. Please excuse me if I have been careless. I can't see any different from the menu.lst file you have posted. Do I need to edit the menu.lst file?

Cheers.

ksh29
June 21st, 2008, 03:25 PM
I got it. I have replace the UUID in the new menu.lst file by the UUID in the old one, which is also the same one in the /media/sda3/etc/fstab. It works now!!! Thanks. Umalite.....

Pumalite
June 21st, 2008, 08:36 PM
Glad you got it. You are welcome. Good luck.

Mulhawkian
June 28th, 2008, 07:36 AM
To all and Pumalite

New to Linux and Ubuntu. I installed Ubuntu on a Windows XP system. I have enjoyed Linux and the ability to boot into Windows XP when needed for the past 6 months.


I have a very similar problem as ksh29. After upgrade of Ubuntu 7.10 to Linux Kernel 2.6.22.15 I lost my Grub entry for booting into Windows XP.


I am unable to use sudo gedit to edit menu.lst but I am able to use sudo nano. When I append Pumalite's suggestion to the default menu.lst using nano and reboot my computer grub begins to load but then my system goes to a grub> prompt. Note cut and paste of edit:

### END DEBIAN AUTOMAGIC KERNELS LIST

title Microsoft Windows XP Professional
root (hd0,1)
savedefault
makeactive
chainloader +1

title Microsoft Windows XP Professional Recovery Console
root (hd0,0)
savedefault
makeactive
chainloader +1


If I use the Repair Broken System I am able to cp the default menu.lst back, without Pumalites changes, to menu.lst and I am able to boot back into Linux.

It appears that any change I make to the default menu.lst causes the system to enter into grub> prompt instead of booting. I have even tried just adding a title line after the ### END DEBIAN AUTOMAGIC KERNELS LIST entry and same thing.


sudo fdisk -lu

Disk /dev/sda: 80.0 GB, 80026361856 bytes
240 heads, 63 sectors/track, 10337 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x4f6e4f6d

Device Boot Start End Blocks Id System
/dev/sda1 63 9782639 4891288+ b W95 FAT32
/dev/sda2 * 9782640 72984239 31600800 7 HPFS/NTFS
/dev/sda3 72984240 153392399 40204080 83 Linux
/dev/sda4 153392400 156295439 1451520 5 Extended
/dev/sda5 154843983 156295439 725728+ 82 Linux swap / Solaris
/dev/sda6 153392526 154843919 725697 82 Linux swap / Solaris

Partition table entries are not in disk order


Here is a cut and paste of nano read of default menu.lst that will boot me into linux. The file appears to have a batch of control characters at the head but I have never used nano before and do not know if this is some kind of file header information or an indication the file maybe corrupted:

$^D�ք�t܋G^D��^At^N��^HuϋE^HƋ@E^A�ƋE^H�p0Nj@(^@^@^@^ @��t^P�4$�ɋ�^T^@�4$� �ڋ��E^HNj@0^@^@^@^@뙐�t&^@U�噐�왐^X�}��}^P�]�虐cÙۙ��Ù̙^Lp^@�u��^G�p^D虐I�(^@�<$�D$^D�ք��]��u��}���]Ë^G�p^D���ۋ��<$�D$^D�ք�t܃^?^D^Au E^HNj@,^@^@^@^@�ʍ�^@^@^@^@U����^X�E^H�]��}��}^L�u��@\��^Íۍ��ÍS^Lp^@��t!��t^]�^G�p^D�g�ۍ��<$�D$^D�ք�t^F�G^D u^O�$
p^@�Gl��t^]����t^R�Gp�]��u��}���]�f��Gl���<$��q�����E�tԋ@^LNj^D$^X^@^@^@�E��V�ڋ��E��E��D$^D�E� �^D$���ڋ��E��Gl�E��@^LNj^D$^X^@^@^@�E��&�ڋ��E��E��D$^D�E��^D$葱ڑ$
t��볋������EĉL$^D�E��^D$艋�1ۉ�벋�X ���^G��u^Z��β^@첋��D$^HDzD$^D^Q^@^@^@�<$貋˲Y۲��^G�4$�D$^D貋=ಋڲ�듐��&^@^@^@^@��'^@^@^@^@U�哐�쓐^X�]�蓐Y�ۓ��Ó^Ó^@p^@�u�������^@^@^@���ڬ��^@�4$�D$^D�¬߬ڬ �뷍t&^@U�巍WVS跍췍�۷��÷U^@p^@�췍\�}^L���淍���^F��^O�Է^A^@^@� ^F�U^P�D$^D�^B�^D$跍R?۷���tW���}�t^H�^G�<$�P^D�^F��^O�i^B^@^@��P����D$^
�����0����^F��^O��^B^@^@�^F�U^P�D$^D�^B�^D$�O=���� ^O��^@^@^@��^\����^F��^O� ^C^@^@�^F�U^P�D$^D�^B�^D$�$=����^O�^[^A^@^@�W^P�҉Uȉt �G^P�^T$�P^D�^F��^O��^C^@^## 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=12cd0281-4ab7-42c9-bf81-29a2cc0bf5a4 ro

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

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

## 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-15-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.22-15-generic root=UUID=12cd0281-4ab7-42c9-bf81-29a2cc0bf5a4 ro quiet splash
initrd /boot/initrd.img-2.6.22-15-generic
quiet

title Ubuntu 7.10, kernel 2.6.22-15-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.22-15-generic root=UUID=12cd0281-4ab7-42c9-bf81-29a2cc0bf5a4 ro single
initrd /boot/initrd.img-2.6.22-15-generic

title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=12cd0281-4ab7-42c9-bf81-29a2cc0bf5a4 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,2)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=12cd0281-4ab7-42c9-bf81-29a2cc0bf5a4 ro single
initrd /boot/initrd.img-2.6.22-14-generic

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

### END DEBIAN AUTOMAGIC KERNELS LIST


I am in over my head and have tried for days to find a way to get my Windows XP grub entries to reappear. I am learning from the experience and I know that most of computing is hammering until the rock breaks. Tried reinstalling grub, tried using both nano and gedit and cut and paste your entire menu.lst ... any change from default gives me grub> prompt.

What ever help you can offer would be greatly appreciated.

Pete

fastharry
August 21st, 2011, 09:06 PM
To all and Pumalite

New to Linux and Ubuntu. I installed Ubuntu on a Windows XP system. I have enjoyed Linux and the ability to boot into Windows XP when needed for the past 6 months.


I have a very similar problem as ksh29. After upgrade of Ubuntu 7.10 to Linux Kernel 2.6.22.15 I lost my Grub entry for booting into Windows XP.


I am unable to use sudo gedit to edit menu.lst but I am able to use sudo nano. When I append Pumalite's suggestion to the default menu.lst using nano and reboot my computer grub begins to load but then my system goes to a grub> prompt. Note cut and paste of edit:

### END DEBIAN AUTOMAGIC KERNELS LIST

title Microsoft Windows XP Professional
root (hd0,1)
savedefault
makeactive
chainloader +1

title Microsoft Windows XP Professional Recovery Console
root (hd0,0)
savedefault
makeactive
chainloader +1


If I use the Repair Broken System I am able to cp the default menu.lst back, without Pumalites changes, to menu.lst and I am able to boot back into Linux.

It appears that any change I make to the default menu.lst causes the system to enter into grub> prompt instead of booting. I have even tried just adding a title line after the ### END DEBIAN AUTOMAGIC KERNELS LIST entry and same thing.


sudo fdisk -lu

Disk /dev/sda: 80.0 GB, 80026361856 bytes
240 heads, 63 sectors/track, 10337 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x4f6e4f6d

Device Boot Start End Blocks Id System
/dev/sda1 63 9782639 4891288+ b W95 FAT32
/dev/sda2 * 9782640 72984239 31600800 7 HPFS/NTFS
/dev/sda3 72984240 153392399 40204080 83 Linux
/dev/sda4 153392400 156295439 1451520 5 Extended
/dev/sda5 154843983 156295439 725728+ 82 Linux swap / Solaris
/dev/sda6 153392526 154843919 725697 82 Linux swap / Solaris

Partition table entries are not in disk order


Here is a cut and paste of nano read of default menu.lst that will boot me into linux. The file appears to have a batch of control characters at the head but I have never used nano before and do not know if this is some kind of file header information or an indication the file maybe corrupted:

$^D�ք�t܋G^D��^At^N��^HuϋE^HƋ@E^A�ƋE^H�p0Nj@(^@^@^@^ @��t^P�4$�ɋ�^T^@�4$� �ڋ��E^HNj@0^@^@^@^@뙐�t&^@U�噐�왐^X�}��}^P�]�虐cÙۙ��Ù̙^Lp^@�u��^G�p^D虐I�(^@�<$�D$^D�ք��]��u��}���]Ë^G�p^D���ۋ��<$�D$^D�ք�t܃^?^D^Au E^HNj@,^@^@^@^@�ʍ�^@^@^@^@U����^X�E^H�]��}��}^L�u��@\��^Íۍ��ÍS^Lp^@��t!��t^]�^G�p^D�g�ۍ��<$�D$^D�ք�t^F�G^D u^O�$
p^@�Gl��t^]����t^R�Gp�]��u��}���]�f��Gl���<$��q�����E�tԋ@^LNj^D$^X^@^@^@�E��V�ڋ��E��E��D$^D�E� �^D$���ڋ��E��Gl�E��@^LNj^D$^X^@^@^@�E��&�ڋ��E��E��D$^D�E��^D$葱ڑ$
t��볋������EĉL$^D�E��^D$艋�1ۉ�벋�X ���^G��u^Z��β^@첋��D$^HDzD$^D^Q^@^@^@�<$貋˲Y۲��^G�4$�D$^D貋=ಋڲ�듐��&^@^@^@^@��'^@^@^@^@U�哐�쓐^X�]�蓐Y�ۓ��Ó^Ó^@p^@�u�������^@^@^@���ڬ��^@�4$�D$^D�¬߬ڬ �뷍t&^@U�巍WVS跍췍�۷��÷U^@p^@�췍\�}^L���淍���^F��^O�Է^A^@^@� ^F�U^P�D$^D�^B�^D$跍R?۷���tW���}�t^H�^G�<$�P^D�^F��^O�i^B^@^@��P����D$^
�����0����^F��^O��^B^@^@�^F�U^P�D$^D�^B�^D$�O=���� ^O��^@^@^@��^\����^F��^O� ^C^@^@�^F�U^P�D$^D�^B�^D$�$=����^O�^[^A^@^@�W^P�҉Uȉt �G^P�^T$�P^D�^F��^O��^C^@^## 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=12cd0281-4ab7-42c9-bf81-29a2cc0bf5a4 ro

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

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

## 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-15-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.22-15-generic root=UUID=12cd0281-4ab7-42c9-bf81-29a2cc0bf5a4 ro quiet splash
initrd /boot/initrd.img-2.6.22-15-generic
quiet

title Ubuntu 7.10, kernel 2.6.22-15-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.22-15-generic root=UUID=12cd0281-4ab7-42c9-bf81-29a2cc0bf5a4 ro single
initrd /boot/initrd.img-2.6.22-15-generic

title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=12cd0281-4ab7-42c9-bf81-29a2cc0bf5a4 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,2)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=12cd0281-4ab7-42c9-bf81-29a2cc0bf5a4 ro single
initrd /boot/initrd.img-2.6.22-14-generic

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

### END DEBIAN AUTOMAGIC KERNELS LIST


I am in over my head and have tried for days to find a way to get my Windows XP grub entries to reappear. I am learning from the experience and I know that most of computing is hammering until the rock breaks. Tried reinstalling grub, tried using both nano and gedit and cut and paste your entire menu.lst ... any change from default gives me grub> prompt.

What ever help you can offer would be greatly appreciated.

Pete



I don't like the sound of this....Maybe I can help being an Ubuntu fan..