[grub error]

Asked by Andressa Celi Bedene

I have Windows on my computer and decided to install Ubuntu on my second HD, it worked perfectly on the CD but when i installed it and tried to run i got this error:

GRUB Loading stage 1.5.
GRUB loading, please wait...
Error 17

I tried to reinstall grub via prompt but it didn't worked so i decided to take 2GB from the swap and install Kurumin cause the grub of Kurumin i knew worked. But i just cant configure it properly. Error message:

root (hd1,0)
Filesystm type is ext2fs, partition type 0x83
makeactive
chainloader +2

Error 13: Invalid or unsupported executable format

So anyone can help me either fix Ubuntu grub or configure Kurumin one?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Solved by:
delance
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1
Revision history for this message
Andressa Celi Bedene (acb0666) said :
#2

I know i am only using it to try and make logon.

The only problem with the Kurumin Grub is that it doesnt mention the Ubuntu on its configuration file so i am trying to guess how it should be.

Revision history for this message
Andressa Celi Bedene (acb0666) said :
#3

I tryed to change the configuration fo the Kurumin Grub and now i get:

root (hd1,0)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/linux 2.6.35-22.33

Error 2: Bad file or directory type

What am i doing wrong? Is the kernel wrong? Or i need to put some boot especifications after it?

Revision history for this message
Andressa Celi Bedene (acb0666) said :
#4

I was asked to post this information on another forum so here it is too:
============================= Boot Info Summary: ==============================

 => Grub 0.97 is installed in the MBR of /dev/sda and looks on boot drive #2
    in partition #6 for /boot/grub/stage2 and /boot/grub/menu.lst.
 => Grub 0.97 is installed in the MBR of /dev/sdb and looks on the same drive
    in partition #6 for /boot/grub/stage2 and /boot/grub/menu.lst.

sda1: _________________________________________________________________________

    File system: ntfs
    Boot sector type: Windows XP
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System: Windows XP
    Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM /grub/core.img

sdb1: _________________________________________________________________________

    File system: ext4
    Boot sector type: -
    Boot sector info:
    Operating System: Ubuntu 10.10
    Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sdb2: _________________________________________________________________________

    File system: Extended Partition
    Boot sector type: -
    Boot sector info:

sdb5: _________________________________________________________________________

    File system: swap
    Boot sector type: -
    Boot sector info:

sdb6: _________________________________________________________________________

    File system: ext3
    Boot sector type: -
    Boot sector info:
    Operating System: Kurumin Linux, Debian Etch
                       http://www.guiadohardware.net Digite seu login e
                       senha. startx : Inicia o modo grafico configurar-video
                       : Redetecta a placa de video /etc/init.d/kdm restart :
                       Reinicia o gerenciador de login mcedit : Editor de
                       texto links : Navegador web halt : Desliga o micro
    Boot files/dirs: /boot/grub/menu.lst /etc/fstab

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ _____________________________________________________

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sda1 * 63 625,121,279 625,121,217 7 HPFS/NTFS

Drive: sdb ___________________ _____________________________________________________

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sdb1 * 2,048 299,808,767 299,806,720 83 Linux
/dev/sdb2 299,810,814 312,580,095 12,769,282 5 Extended
/dev/sdb5 299,821,095 308,480,129 8,659,035 82 Linux swap / Solaris
/dev/sdb6 308,480,193 312,576,704 4,096,512 83 Linux

blkid -c /dev/null: ____________________________________________________________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 E4D86106D860D876 ntfs
/dev/sda: PTTYPE="dos"
/dev/sdb1 922ca5a9-a405-4034-aef4-70b70970154f ext4
/dev/sdb2: PTTYPE="dos"
/dev/sdb5 e3ece307-392e-4f86-8973-076e67f10675 swap
/dev/sdb6 c1d80928-14b3-4535-b325-4d3a1c3eea21 ext3 Kurumin
/dev/sdb: PTTYPE="dos"

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

aufs / aufs (rw)
/dev/sr0 /cdrom iso9660 (ro,noatime)
/dev/loop0 /rofs squashfs (ro,noatime)

================================ sda1/boot.ini: ================================

[boot loader]

timeout=1

default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS

[operating systems]

multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect

=================== sda1: Location of files loaded by Grub: ===================

    ??GB: grub/core.img

=========================== sdb1/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
  insmod vbe
  insmod vga
}

insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set 922ca5a9-a405-4034-aef4-70b70970154f
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set 922ca5a9-a405-4034-aef4-70b70970154f
set locale_dir=($root)/boot/grub/locale
set lang=pt
insmod gettext
if [ "${recordfail}" = 1 ]; then
  set timeout=-1
else
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
 recordfail
 insmod part_msdos
 insmod ext2
 set root='(hd1,msdos1)'
 search --no-floppy --fs-uuid --set 922ca5a9-a405-4034-aef4-70b70970154f
 linux /boot/vmlinuz-2.6.35-22-generic root=UUID=922ca5a9-a405-4034-aef4-70b70970154f ro quiet splash
 initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
 recordfail
 insmod part_msdos
 insmod ext2
 set root='(hd1,msdos1)'
 search --no-floppy --fs-uuid --set 922ca5a9-a405-4034-aef4-70b70970154f
 echo 'Loading Linux 2.6.35-22-generic ...'
 linux /boot/vmlinuz-2.6.35-22-generic root=UUID=922ca5a9-a405-4034-aef4-70b70970154f ro single
 echo 'Loading initial ramdisk ...'
 initrd /boot/initrd.img-2.6.35-22-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
 insmod part_msdos
 insmod ext2
 set root='(hd1,msdos1)'
 search --no-floppy --fs-uuid --set 922ca5a9-a405-4034-aef4-70b70970154f
 linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
 insmod part_msdos
 insmod ext2
 set root='(hd1,msdos1)'
 search --no-floppy --fs-uuid --set 922ca5a9-a405-4034-aef4-70b70970154f
 linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

=============================== sdb1/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sdb1 during installation
UUID=922ca5a9-a405-4034-aef4-70b70970154f / ext4 errors=remount-ro 0 1
# swap was on /dev/sdb5 during installation
UUID=22b01796-08a8-49d8-a5d7-488a82818c9c none swap sw 0 0

=================== sdb1: Location of files loaded by Grub: ===================

 137.6GB: boot/grub/core.img
 103.2GB: boot/grub/grub.cfg
    .8GB: boot/initrd.img-2.6.35-22-generic
    .3GB: boot/vmlinuz-2.6.35-22-generic
    .8GB: initrd.img
    .3GB: vmlinuz

=========================== sdb6/boot/grub/menu.lst: ===========================

default 0
timeout 9
color cyan/blue white/blue
gfxmenu (hd1,5)/boot/message

title Kurumin Linux
root (hd1,5)
kernel /boot/vmlinuz-2.6.18.1-slh-up-2 ro nomce quiet apm=power-off vga=791
initrd /boot/initrd.img-2.6.18.1-slh-up-2

title Ubuntu Linux
root (hd1,0)
kernel /boot/linux 2.6.35-22.33

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

title memtest86
root (hd1,5)
kernel /boot/memtest86.bin

=============================== sdb6/etc/fstab: ===============================

# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/sdb6 / ext3 defaults 0 1
/dev/sdb5 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/fd0 /mnt/floppy vfat users,rw,noauto 0 0
/dev/cdrom /mnt/cdrom iso9660 defaults,ro,user,noexec,noauto 0 0

# partições encontradas pelo instalador:
/dev/sda1 /mnt/sda1 ntfs noauto,users,exec,ro,umask=000 0 0
/dev/sdb1 /mnt/sdb1 ext3 noauto,users,exec 0 0
sys /sys sysfs noauto 0 0
/dev/pts /dev/pts devpts mode=0622 0 0
usbfs /proc/bus/usb usbfs defaults 0 0

=================== sdb6: Location of files loaded by Grub: ===================

 159.5GB: boot/grub/menu.lst
 159.5GB: boot/grub/stage2
 158.4GB: boot/initrd.img-2.6.18.1-slh-up-2
 159.5GB: boot/vmlinuz
 159.5GB: boot/vmlinuz-2.6.18.1-slh-up-2
 159.5GB: vmlinuz

Revision history for this message
Sam_ (and-sam) said :
#5
Revision history for this message
Sam_ (and-sam) said :
#6
Revision history for this message
Ubfan (ubfan1) said :
#7

When I added a Linux disk to a Windows system, I physically swapped the disks, so the Linux disk was first (master) and the Windows disk second. Grub booted off the Linux disk, and could access its files on that disk, not needing anything on the Windows disk. Eventually, I messed up the Windows master boot block, and having only vendor restore disks, could not easily replace it, so I put grub on the windows disk too, but the disk had a FAT rescue partition on which I stored the windows grub files. So, try swapping the disks, and from the CD, do another grub-install to the linux disk.
good luck

Revision history for this message
Best delance (olivier-delance) said :
#8

I agree with Ubfan about switching disk.
One solution could be:
1) Switch disk
2) Download and burn on CD Ubuntu Maverick 10.10 (only to have a Live CD).
3) Install Grub2 (not Grub Legacy 0.97) on first disk, following link:
    https://help.ubuntu.com/community/Grub2#Reinstalling%20from%20LiveCD

At installation, Grub2 should detect your ext4 and NTFS partition, and at boot display a menu with both Linux and Windows.

Revision history for this message
Andressa Celi Bedene (acb0666) said :
#9

Thanks delance, that solved my question.