PDA

View Full Version : [ubuntu] 9.04 Grub Error 2



Double D
April 24th, 2009, 07:35 PM
gets to grub stage 1.5 then Error 2 occurs


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=258c88ed-3e3c-4b7b-85ff-df042eb99f38 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=258c88ed-3e3c-4b7b-85ff-df042eb99f38

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

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect

## 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 9.04, kernel 2.6.28-11-generic
uuid 258c88ed-3e3c-4b7b-85ff-df042eb99f38
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=258c88ed-3e3c-4b7b-85ff-df042eb99f38 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet

title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid 258c88ed-3e3c-4b7b-85ff-df042eb99f38
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=258c88ed-3e3c-4b7b-85ff-df042eb99f38 ro single
initrd /boot/initrd.img-2.6.28-11-generic

title Ubuntu 9.04, memtest86+
uuid 258c88ed-3e3c-4b7b-85ff-df042eb99f38
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/sdb2
title Microsoft Windows XP Professional
rootnoverify (hd1,1)
savedefault
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1



fdisk -l

Disk /dev/sda: 164.6 GB, 164696555520 bytes
255 heads, 63 sectors/track, 20023 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x816e7fa1

Device Boot Start End Blocks Id System
/dev/sda1 * 1 19329 155260161 83 Linux
/dev/sda2 19330 20023 5574555 5 Extended
/dev/sda5 19330 20023 5574523+ 82 Linux swap / Solaris

Disk /dev/sdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x02800280

Device Boot Start End Blocks Id System
/dev/sdb2 * 2614 4865 18089189+ 7 HPFS/NTFS
/dev/sdb3 2 2613 20980890 f W95 Ext'd (LBA)
/dev/sdb5 2 2613 20980858+ 7 HPFS/NTFS

Partition table entries are not in disk order

tried reinstalling and tried to restore grub

i think it has something to do with
"Partition table entries are not in disk order"
but i dont know how to fix this

i recently used gparted to create a 40gb ntfs partition on my SATA drive
last resort is to reformat the whole drive

any help?

Double D
April 24th, 2009, 08:04 PM
bump

meierfra.
April 24th, 2009, 08:29 PM
bump

Please wait for 24 hour before bumping a thread.


i recently used gparted to create a 40gb ntfs partition on my SATA drive

???? fdisk does not show any 40gb ntfs partition.


gets to grub stage 1.5 then Error 2 occurs

Is this a fresh install of ubuntu 9.04 or did you update from an earlier version of Ubuntu?


i think it has something to do with
"Partition table entries are not in disk order"

No. Having the partition table enties not in disk order should not cause any problems.

Try this. Boot from the Ubuntu LiveCD, open a terminal and reinstall grub via


sudo mount /dev/sda1 /mnt
sudo grub-install --root-directory=/mnt --recheck /dev/sda
Reboot and make sure that your bios are set to boot from the Ubuntu drive.


If this did not cure your problem:

In order to get a clearer picture of your setup, I suggest download the Boot Info Script to the desktop of the Ubuntu LiveCD:

https://sourceforge.net/projects/bootinfoscript/

Then open a terminal (Applications > Accessories > Terminal) and type:


sudo bash ~/Desktop/boot_info_script*.sh

That will create a "RESULTS.txt" file in the same directory from where the script is run, namely your desktop; please copy/paste the contents of the RESULTS.txt file to your next post,(use the code tags)

Double D
April 24th, 2009, 08:38 PM
sorry, didnt know about the bump rule!

i will try those and get back to you, thanks!


Edit:

ubuntu@ubuntu:~$ sudo grub-install --root-directory=/mnt --recheck /dev/sda
Probing devices to guess BIOS drives. This may take a long time.
grub-probe: error: Cannot open `/boot/grub/device.map'
[: 494: =: unexpected operator
Installing GRUB to /dev/sda as (hd0)...
Installation finished. No error reported.
This is the contents of the device map /mnt/boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0) /dev/fd0
(hd0) /dev/sda
(hd1) /dev/sdb

is "[: 494: =: unexpected operator" a problem?

Double D
April 24th, 2009, 08:43 PM
thank you, that worked!

ran command and switched primary drive

meierfra.
April 24th, 2009, 08:48 PM
Great. Have fun with Jaunty.

pandasonic
April 26th, 2009, 02:11 AM
Hey,

I'm having a similar problem. I used the alternate disc to install Jaunty with the option "Guided - encrypted LVM". The installation process went through as usual. However, when the installation was done and the machine rebooted, Grub gave me the "Error 2" message.

I, then, re-installed Jaunty using the LiveCD. It worked; I was able to boot into Ubuntu just fine. I'm typing this from my laptop and not my desktop (where the issue is) because I tried reinstalling from the alternate disc and doing the grub-install as you indicated. That did not work, now I boot into a grub prompt, only.

My desktop (an MSI Wind barebone) has a CF card it registers as /dev/sda and an HDD it reads as /dev/sdb. My boot partition is on /dev/sdb5.

Any suggestions?


============================= Boot Info Summary: ==============================

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

sda1: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:

sdb1: __________________________________________________ _______________________

File system: ext3
Boot sector type: Unknown
Boot sector info:
Mounting failed:
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so


sdb2: __________________________________________________ _______________________

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

sdb5: __________________________________________________ _______________________

File system: ext2
Boot sector type: Grub
Boot sector info: Grub0.97 is installed in the boot sector of sdb5 and
looks at sector 976363299 of the same hard drive for
the stage2 file. A stage2 file is at this location on
/dev/sdb. Stage2 looks on partition #5 for
/boot/grub/menu.lst.
Operating System:
Boot files/dirs: /boot/grub/menu.lst

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 512 MB, 512483328 bytes
255 heads, 63 sectors/track, 62 cylinders, total 1000944 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x00000001

Partition Boot Start End Size Id System

/dev/sda1 * 63 996,029 995,967 83 Linux


Drive: sdb ___________________ __________________________________________________ ___

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x0009a3df

Partition Boot Start End Size Id System

/dev/sdb1 63 976,270,049 976,269,987 83 Linux
/dev/sdb2 976,270,050 976,768,064 498,015 5 Extended
/dev/sdb5 976,270,113 976,768,064 497,952 83 Linux


blkid -c /dev/null: __________________________________________________ __________

/dev/loop0: TYPE="squashfs"
/dev/sda1: UUID="48e8ae8b-917c-49d0-ad6c-106b9426cb59" TYPE="ext4"
/dev/sdb1: UUID="4d959528-f9c6-473c-a641-e3f61cc49e0e" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb5: UUID="2528ad7a-8ca2-4566-8977-bd440900dfb9" TYPE="ext2"

=============================== "mount" output: ===============================

proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /lib/modules/2.6.28-11-generic/volatile type tmpfs (rw,mode=0755)
tmpfs on /lib/modules/2.6.28-11-generic/volatile type tmpfs (rw,mode=0755)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
varrun on /var/run type tmpfs (rw,nosuid,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
rootfs on / type rootfs (rw)
/dev/sr0 on /cdrom type iso9660 (ro,noatime)
/dev/loop0 on /rofs type squashfs (ro,noatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/ubuntu/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=ubuntu)
/dev/sda1 on /media/disk type ext4 (rw,nosuid,nodev,uhelper=hal)
/dev/sdb5 on /media/disk-1 type ext2 (rw,nosuid,nodev,uhelper=hal)


=========================== sdb5/boot/grub/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 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=/dev/mapper/BlackBox-root ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=5c327fae-119a-4dc6-a355-545e3c6c52ff

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

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect

## 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 9.04, kernel 2.6.28-11-generic
uuid 5c327fae-119a-4dc6-a355-545e3c6c52ff
kernel /vmlinuz-2.6.28-11-generic root=/dev/mapper/BlackBox-root ro quiet splash
initrd /initrd.img-2.6.28-11-generic
quiet

title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid 5c327fae-119a-4dc6-a355-545e3c6c52ff
kernel /vmlinuz-2.6.28-11-generic root=/dev/mapper/BlackBox-root ro single
initrd /initrd.img-2.6.28-11-generic

title Ubuntu 9.04, memtest86+
uuid 5c327fae-119a-4dc6-a355-545e3c6c52ff
kernel /memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

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


500.0GB: boot/grub/menu.lst
500.0GB: boot/grub/stage2
499.8GB: boot/initrd.img-2.6.28-11-generic
499.8GB: boot/vmlinuz-2.6.28-11-generic
499.8GB: grub/stage2
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown BootLoader on sdb1

00000000 4c 55 4b 53 ba be 00 01 61 65 73 00 00 00 00 00 |LUKS....aes.....|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000020 00 00 00 00 00 00 00 00 63 62 63 2d 65 73 73 69 |........cbc-essi|
00000030 76 3a 73 68 61 32 35 36 00 00 00 00 00 00 00 00 |v:sha256........|
00000040 00 00 00 00 00 00 00 00 73 68 61 31 00 00 00 00 |........sha1....|
00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000060 00 00 00 00 00 00 00 00 00 00 08 08 00 00 00 20 |............... |
00000070 53 de ec e6 e9 07 ed 2f fd 2f fd f0 81 9a ab ee |S.....././......|
00000080 37 5c 93 e4 45 cf 4d 93 12 db 75 cd dc 3c 97 96 |7\..E.M...u..<..|
00000090 4a c3 e3 6d a7 ad ec d9 7b b0 f0 35 58 35 b1 77 |J..m....{..5X5.w|
000000a0 b7 0e 30 79 00 00 00 0a 66 31 37 34 35 36 34 62 |..0y....f174564b|
000000b0 2d 61 31 37 63 2d 34 65 36 32 2d 38 36 38 31 2d |-a17c-4e62-8681-|
000000c0 39 66 32 31 35 35 38 62 62 32 36 64 00 00 00 00 |9f21558bb26d....|
000000d0 00 ac 71 f3 00 01 5e 1c b3 ad f3 7f 43 c6 e0 5f |..q...^.....C.._|
000000e0 c8 44 b3 17 8f d3 67 5b 8d f1 14 bd 7c 57 d1 b7 |.D....g[....|W..|
000000f0 48 a9 41 84 cd df 54 d5 00 00 00 08 00 00 0f a0 |H.A...T.........|
00000100 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000110 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000120 00 00 00 00 00 00 00 00 00 00 01 08 00 00 0f a0 |................|
00000130 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000150 00 00 00 00 00 00 00 00 00 00 02 08 00 00 0f a0 |................|
00000160 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000180 00 00 00 00 00 00 00 00 00 00 03 08 00 00 0f a0 |................|
00000190 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001b0 00 00 00 00 00 00 00 00 00 00 04 08 00 00 0f a0 |................|
000001c0 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001e0 00 00 00 00 00 00 00 00 00 00 05 08 00 00 0f a0 |................|
000001f0 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000200


=======Devices which don't seem to have a corresponding hard drive==============

sdc

aNaRcHiSt
April 26th, 2009, 09:15 AM
I'm getting the same error.

Wtf? 8.04/8.10 install fine.

brad1138
April 27th, 2009, 05:43 PM
I am getting the same error. I have 2 40 gig IDE drives, one for Windows and one for Ubuntu and a 500 gig SATA for storage. I get Error 2. one thing I noticed during install was it labeled all 3 drives scsi and labeled them as sda, sdb sdc. I thought that 2 should have been hdx but I am not an expert with Linux.

any ideas?
Brad

meierfra.
April 28th, 2009, 02:03 AM
pandasonic: I don't know anything about encrypted LVM. I suggest to start a new thread to get better help.

meierfra.
April 28th, 2009, 02:08 AM
aNaRcHiSt and brad1138: Could you follow the instructions from post 3 (after "if this did not cure your problem") to run the boot_info_script and post the RESULTS.txt? But please post the RESULTS.txt in a new thread.Trying to solve more than one problem in a thread can be very confusing. Just send me a PM with a link to your new thread. Thanks.

jo.pettitt
June 1st, 2009, 08:16 PM
I have a data drivde on a SATA card that was taking /dev/sda and this is what made the /dev/sdb boot without the ERROR 2.

sudo mount /dev/sdb1 /mnt
sudo grub-install --root-directory=/mnt --recheck /dev/sdb

Thanks!

pek007
June 3rd, 2009, 08:12 AM
hi,

i have all the time problems with this grob loader... and just dont know what to do. now was clean install ubuntu 9.04. after i installed, i turned off notebook and went home from work. i turned it on at home and worked fine. was happy :) like ubuntu, but this morning i come to work and turned on pc and there it was: grub error 2.

so, now i am trying to do that command wich is helped a lot ppl, but at first line i get answer:

mount: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or help program, or other error in some cases useful info is found in syslog - try dmesg | tail or so

and thats all what happens :(

ty and good bye,
ziga

tneal
July 28th, 2009, 01:03 AM
I am encountering the same problem after a clean install of 9.04. I also did the grub re-install, but after a reboot I still got the grub error.

I have attached Results.txt generated by boot info script. Any suggestions for what to try next would be greatly appreciated.

--tom

meddle
September 8th, 2009, 11:06 PM
Hi,

I booted Ubuntu Netbook remix (ubuntu-9.04-netbook-remix-i386.img) from an USB stick and installed it to an USB HDD for my Asus eee 701. Upon reboot, I also got the Grub Error 2 message. After some search on google.com I came across this link ( http://www.linuxplanet.com/linuxplanet/tutorials/6480/1/ ) that talks about Grub legacy not supporting 256 byte inodes on ext3.

I rebooted with the USB stick and checked the ext3 partition and low and behold it had 256 byte inodes ( sudo tune2fs -l /dev/sdb1 ).

So, I reinstalled, but in the installer chose to re-partition the disk myself and created a ext2 partition for /boot

After reinstall everything booted fine. Hope this helps someone.

Regards

Dirko

athensguy
October 9th, 2009, 05:18 PM
I had the same Grub Error 2 after installing using the alternative install CD for 9.04.

I used Guide -- Encrypted LVM during the setup

I booted again into the CD and used the rescue option to chroot into the LVM and mounted the separate /boot.

The disk with the LVM was showing as sdb

I ran

grub-install --recheck /dev/sdband then when I rebooted I got past grub.