broken stage1 file from grub, cant boot ubuntu

Asked by trylik

hi

i have a serious problem now

i installed MS Vista and in order to have 13G (sic!) of free space i deleted SWAP partition

when i used grub-rescue CD i've got my grub back, but when i tried to choose on of ubuntu, there was an error, that files were not found (or something like this)

i think this might be caused by broke stage1 and stage2 files,

(here is stage1)
�u�|1؎м @|<t�}��tTAUZRrIUuCA|�t7fL|�fD|�f�pf1 DfD
                                                   Brps
���|�f�fD1��@�ffD|f1��T
f1��T
     D
�L ;}<T
ъl
  Zt
    p�۸r*ÎH|`��a&B|}�}�}�}��GRUB GeomHard DiskRead Error<u�$ }1�F
                                                                    u���loppypr׶O�U
(EOF stage1)

i tried to install a new grub, but when i type "find .../stage1" htere isan error -"file not found"

i also tred to install from liveCD by grub-install

here is what i got:
root@ubuntu:/home/ubuntu# grub-install --root-directory=/bott /dev/hda
Due to a bug in xfs_freeze, the following command might produce a segmentation
fault when /bott/boot/grub is not in an XFS filesystem. This error is harmless and
can be ignored.
xfs_freeze: specified file ["/bott/boot/grub"] is not on an XFS filesystem
Installation finished. No error reported.
This is the contents of the device map /bott/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/hda

my menu.lst is here:
title Ubuntu, kernel 2.6.20-16-generic
root (hd0,2)
kernel /vmlinuz-2.6.20-16-generic root=UUID=4ee5834a-46b6-424b-bbbd-6ba116a8b94a ro quiet splash
initrd /initrd.img-2.6.20-16-generic
quiet
savedefault

title Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root (hd0,2)
kernel /vmlinuz-2.6.20-16-generic root=UUID=4ee5834a-46b6-424b-bbbd-6ba116a8b94a ro single
initrd /initrd.img-2.6.20-16-generic

title Ubuntu, kernel 2.6.20-15-generic
root (hd0,2)
kernel /vmlinuz-2.6.20-15-generic root=UUID=4ee5834a-46b6-424b-bbbd-6ba116a8b94a ro quiet splash
initrd /initrd.img-2.6.20-15-generic
quiet
savedefault

title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd0,2)
kernel /vmlinuz-2.6.20-15-generic root=UUID=4ee5834a-46b6-424b-bbbd-6ba116a8b94a ro single
initrd /initrd.img-2.6.20-15-generic

title Ubuntu, kernel 2.6.20-14-generic
root (hd0,2)
kernel /vmlinuz-2.6.20-14-generic root=UUID=4ee5834a-46b6-424b-bbbd-6ba116a8b94a ro quiet splash
initrd /initrd.img-2.6.20-14-generic
quiet
savedefault

title Ubuntu, kernel 2.6.20-14-generic (recovery mode)
root (hd0,2)
kernel /vmlinuz-2.6.20-14-generic root=UUID=4ee5834a-46b6-424b-bbbd-6ba116a8b94a ro single
initrd /initrd.img-2.6.20-14-generic

title Ubuntu, kernel 2.6.17-11-generic
root (hd0,2)
kernel /vmlinuz-2.6.17-11-generic root=UUID=4ee5834a-46b6-424b-bbbd-6ba116a8b94a ro quiet splash
initrd /initrd.img-2.6.17-11-generic
quiet
savedefault

title Ubuntu, kernel 2.6.17-11-generic (recovery mode)
root (hd0,2)
kernel /vmlinuz-2.6.17-11-generic root=UUID=4ee5834a-46b6-424b-bbbd-6ba116a8b94a ro single
initrd /initrd.img-2.6.17-11-generic

title Ubuntu, memtest86+
root (hd0,2)
kernel /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/hda2
title Microsoft Windows XP Professional
root (hd0,1)
savedefault
makeactive
chainloader +1

please help me! :) i can do nothing...

maybe somebody will send me mail with theese corrupted files?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu grub Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
trylik (marek-nasionka) said :
#1

one more thing i forget to mention that i have recreated the same (i think) SWAP partition

Revision history for this message
Jim Hutchinson (jphutch) said :
#2

I believe you basically need to have a swap partition for ubuntu to work. Good thing you have added it. However, you might have problems still if it's UUID changed. If so, you will probably still have problem with mounting the swap partition. I'm not sure how to fix that without just installing again so you might want to post a new question if you seem to still have swap problems.

In order to fix grub you might want to check http://ubuntuguide.org/wiki/Ubuntu:Feisty#How_to_restore_GRUB_menu_after_Windows_installation

I suggest using the method where you boot your feisty live CD.

I'm not sure your stage1 is corrupted. Since it isn't a text file you can't just open and view it so looking like that might be normal. If the steps in ubuntuguide don't fix this post back and we can try again.

Hope that helps.

Can you help with this problem?

Provide an answer of your own, or ask trylik for more information if necessary.

To post a message you must log in.