[grub error]
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
|
#1 |
kurumin distro has discontinued http://
Revision history for this message
|
#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
|
#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
|
#4 |
I was asked to post this information on another forum so here it is too:
=======
=> 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/
=> 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/
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
Boot files/dirs: /boot/grub/menu.lst /etc/fstab
=======
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-
/dev/sdb2: PTTYPE="dos"
/dev/sdb5 e3ece307-
/dev/sdb6 c1d80928-
/dev/sdb: PTTYPE="dos"
=======
Device Mount_Point Type Options
aufs / aufs (rw)
/dev/sr0 /cdrom iso9660 (ro,noatime)
/dev/loop0 /rofs squashfs (ro,noatime)
=======
[boot loader]
timeout=1
default=
[operating systems]
multi(0)
=================== sda1: Location of files loaded by Grub: ===================
??GB: grub/core.img
=======
#
# 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.
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_
set 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_
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-
if loadfont /usr/share/
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-
set locale_
set lang=pt
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.
### BEGIN /etc/grub.
set menu_color_
set menu_color_
### END /etc/grub.
### BEGIN /etc/grub.
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-
linux /boot/vmlinuz-
initrd /boot/initrd.
}
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-
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.
}
### END /etc/grub.
### BEGIN /etc/grub.
### END /etc/grub.
### BEGIN /etc/grub.
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set 922ca5a9-
linux16 /boot/memtest86
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set 922ca5a9-
linux16 /boot/memtest86
}
### END /etc/grub.
### BEGIN /etc/grub.
### END /etc/grub.
### BEGIN /etc/grub.
# 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.
### BEGIN /etc/grub.
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.
=======
# /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-
# swap was on /dev/sdb5 during installation
UUID=22b01796-
=================== sdb1: Location of files loaded by Grub: ===================
137.6GB: boot/grub/core.img
103.2GB: boot/grub/grub.cfg
.8GB: boot/initrd.
.3GB: boot/vmlinuz-
.8GB: initrd.img
.3GB: vmlinuz
=======
default 0
timeout 9
color cyan/blue white/blue
gfxmenu (hd1,5)
title Kurumin Linux
root (hd1,5)
kernel /boot/vmlinuz-
initrd /boot/initrd.
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
=======
# /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,
# partições encontradas pelo instalador:
/dev/sda1 /mnt/sda1 ntfs noauto,
/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.
159.5GB: boot/vmlinuz
159.5GB: boot/vmlinuz-
159.5GB: vmlinuz
Revision history for this message
|
#5 |
You've installed three different bootloaders, which isn't an untrivial setup.
sda1/boot.ini
sdb1/boot/
https:/
sdb6/boot/
https:/
Grub2 is the latest bootloader
http://
http://
Error message comes from Grub_legacy (Grub2 errors don't result in numbers anymore)
http://
Multiboot examples.
http://
http://
http://
http://
Revision history for this message
|
#6 |
Official GRUB Manual 1.98
http://
Revision history for this message
|
#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
|
#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:/
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
|
#9 |
Thanks delance, that solved my question.