[LBo] Re: Grub wont come up

Anita Lewis a.lewis at linuxbasics.org
Fri Mar 2 13:34:42 CET 2007


On 03/02/2007 06:51 AM Rafi Gabzu wrote:
> I boot from  a floppy disk that contain GRUB , without it (suddenly) I bo=
ot
> straight to Windows, which works
> The error I'm getting  when trying to find /usr/sbin  "Error 15 : file not
> found " or "Error 17:cannot mount selected partition" when I'm using tab.
> When I look at the partitions through gparted I see
> 1. /dev/hda1 ntfs 19 GiB - my windows partition
> 2. /dev/hda2  unknown 17Gib
> 3. 1Gib - unallocate -  I do not know where this came from ....  probably
> used to be  part  of the Linux partition and maybe  is causing me all the
> trouble
> 4. Swap - 588 M
> =

> Item 2 should have been my Linux ext3 partition but it wont recognize it =
as
> any fs. When I try to resize /combine item 2 and/or 3
> it won't let me .
> Thanks,
> Rafi

Ah, this is nicely descriptive.  Thank you.

It may be that you can recover Linux.  You said in the beginning that
you resized and increased the size of the Linux partition.  Whatever you
used must have changed the partition type on the bigger /dev/hda2.

You can try to make the type into ext2/ext3.  They are the same really
except that there is a journal on ext3. To do this, you will need the
Linux fdisk.  Do not use Windows fdisk; it is very different and will
destroy the data.  Linux fdisk will rewrite the partition table, but
will not destroy data.

You need a floppy with Linux fdisk on it.  This is the rescue disk I
love to mention.  Since you use a floppy drive, I'd say for you to get
RIP or Tom's.  I have the link for RIP.  Just get the floppy version as
it will be quicker for you to deal with.  Put it on a floppy as per
directions. If you already have a cd linux with fdisk on it, then that
will be fine as well.
http://www.tux.org/pub/people/kent-robotti/looplinux/rip/

When you have the rescue linux running and are not mounted on your hard
drive, as root run

fdisk /dev/hda

'm' gives you the command list
'l' gives you the type list.  You want 83, Linux type.
't' allows you to change the type.  Choose partition 2 and give it type 83.
'w' this writes the partition table with the new information.

Then try grub again.  It might just work or you might have to try
commandline grub.

Let us know what happens, please.


Anita




-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://linuxbasics.org/pipermail/qna/attachments/20070302/862de0ba/si=
gnature.pgp


More information about the QnA mailing list