[SOLVED] GRUB error 17, possibly due to damage in swap partition
GRUB is not loading any menu; it just ends with the "error 17".
I can edit it through a live knoppix, all the "normal" partitions are fine, I can access them.
However, the swap partition is not recognized by gparted (says it's unknown); fdisk -l says
FATAL ERROR: Bad primary partition 3: Partition ends before sector 0
I don't know what to do. Can I just format the swap partition with gparted without losing the current linux installation? (well, if this is the solution, of course)
The output of fdisk -l, as it will probably be asked:
Disk /dev/hda: 40.0 GB, 40020664320 bytes
16 heads, 63 sectors/track, 77545 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 9690 4883728+ 93 Amoeba
Partition 1 does not end on cylinder boundary.
/dev/hda2 74556 77536 1502077+ 15 Unknown
Partition 2 does not end on cylinder boundary.
/dev/hda3 9691 74556 32692275 93 Amoeba
Partition 3 does not end on cylinder boundary.
/dev/hda4 1 1 0 10 OPUS
Partition 4 does not end on cylinder boundary.
Partition table entries are not in disk order
hda1 - linux instalation
hda2 AND hda4 - linux swap (for some reason (actually, more likely without any reason besides newbieness) I had the swap partition inside a FAT32 of the same size
hda3 - /home
Gparted does not see that there are two partitions (hda2 and hda4 are seen as one, unreconized format)
A short summary of what lead possibly to that, perhaps someone with more expertise can spot something that is important, but it could have nothing to do with it:
I had windows installed, but it was "seeing" the linux partitons, which I find particularly scary, since it does not recognize the format and asks if we want to format them.
I've learnt that I should use the comand "hide" on the GRUB's menu.lst, but I don't quite know the syntax, so it may have started there. I've just set insert a "hide" command line referring to the whole linux HD, and went to test. It did work once, but when I rebooted the error 17 started.
I tried many possible alternative syntaxes, combining "hide" commands for the windows option with "unhide" for linux, as I thought it may be needed to "undo" the hide of the previous boot. After many attempts, I decided to just reinstall GRUB, and then I noticed the problem with the swap partition.