Originally posted by michaelk
What distribution / version of linux are you running?
Try booting from a rescue or live CD and run fsck on hda5.
BTW you were trying to create a swap file not a partition. You only filled the partition up, you didn't change the partitioning of hda5. Were you logged in as root when you messed everything up? Was swapfile1 actually deleted?
I'm running a RH8 distro Linux 2.4.18-14 i686 i686 i386 GNU/Linux.
Yes you are right i was trying to create a swap file not a partition.
I was logged as root unfortunately.
The only swap partition that remains is the old one, the new one (i.e the file) that i've created has been deleted by a rm command (i did however executed swapoff /swapfile1 before that) the cat on /proc/swaps gives me
[root] cat /proc/swaps
Filename Type Size Used Priority
/dev/hda6 partition 1044184 0 -1
/dev/hda5 on / type ext3 (rw)
/dev/hda3 on /boot type ext3 (rw)
i will try to check /dev/hda5 from the boot floppy using fsck any additional tips are very welcome