> Err i seemed to have missed the post.
>
> Here is what i am talking about. Once u press c at the grub menu
> grub> root (hd0,4)
> Filesystem type is jfs, partition type 0x83
>
> grub> kernel /vmlinuz root=/dev/hda5
> [Linux-bzImage, setup=0x1400, size=0x108a19]
>
> grub>initrd /initrd.img
> [Linux-initrd @ 0x1debc000, 0x124000 bytes]
>
> grub> boot
>
> Please do the above and post
>
> > "Boot unsuccessful.
> > /dev/hda7(/ for Ubuntu) had vmlinuz as symlink to boot/vmlinuz-
> > 2.6.20-16-generic and a vmlinuz.old as symlink to boot/vmlinuz-
> > 2.6.20-15-generic,both owned by root and 777 permissions.
> > Similarly,initrd.img was symlink to
>
> symlinks work with grub as long as they are on the same partition as
> the grub root (hd0,4) in the abv example.
> Grub has auto completion like bash. Hitting tab after a command will
> show what grub wants and or sees.
> at the grub prompt type root (hd and hit the tab key, grub will list
> the disks that it sees. next type (hd0 and hit tab grub should give u
> a list of partitions. next type (hd0,4) and hit enter. Grub should
> give you a line like
> Filesystem type is jfs, partition type 0x83
> type kernel / and hit tab. Grub will show a list of files.
I tried the root (hd0,<Tab> command but it showed some strange output.....it
started counting partitions from zero as is well known,but it also showed
hda9(ie partition no 10) when I've a total of 2 primary and 1 extended
partitions.The extended partition contains 4 partitions for Ubuntu mounted
at /,/boot,/home and a swap partition.It also contains a Windows D:
partition which was formerly hda9.Presently,after nuking and remaking the
/boot partition,the /boot partition is hda9 and all other logical partitions
have moved up 1 position each in the partition table.
I tried out the commands given above and actually booted into the
> system. First time this way. Since its was a long time that I had
> installed the OSes I used 'find /boot/grub/stage1' to locate all my root
> partitions. However after that grub never returns any output unless its
> an error.
The "grub>find stage1" command doesn't work if you have a separate /boot
partition specially if you are on Live CD......you have to take a fdisk -l
and show the *blind* grub the way after mounting your /boot partition.......
Easwar's problem turns out to be a corrupted /boot partition. I am
> curious to know how he restored all his /boot files after deleting and
> re-creating the partition. Is it as simple as backing up the files
> somewhere else and pasting them back or getting them from some new source.
>
It *is* as simple as backing up the files to my /home partition and pasting
them back....... ;).What did you expect,I downloaded the kernel and init
again? :o
Regards,
Easwar