Sounds kinda like the format with respect your drive geometry is all screwed up.
IF you can afford to wipe the disk now, do the following...
Go into your motherboard's BIOS and make sure it's detecting the drive properly. Newer boards are kinda "hands off" about that and just show you the drive ID string (WD-2500JBblahblah etc) but the important thing is that if there's a setting that says "LBA" or "NORMAL" or "LARGE"
set it to LBA.
(I know, this sounds insane, but I've had to do this to about a dozen machines in the last several years--including SCSI disks. Moving a drive from one machine to another can sometimes induce this problem--not everyone's implementation of LBA appears to be the same, especially with older boards. YUCK!)
Next, boot your Slackware CD, and login as root (on the CD, don't boot the disk), and from that prompt if your drive is /dev/hda, do the following:
Code:
dd if=/dev/zero of=/dev/hda bs=512 count=1024
WARNING: (as if you didn't clue in already) that will BLOW AWAY everything that matters on the disk.
Now,
power the machine off and power it back up. The BIOS and your drive and the OS should all be on the same page as to what the geometry of your disk is. Run fdisk and partition normally. You shouldn't have any more crazy LILO problems unless you've got a bad (or 40-pin) IDE cable or imminent hardware failure.
By the way, if you were messing around with hdparm before, that was probably where your problem came from. Trust the kernel and the hardware to do the right thing at that level.