I copied this from one of the tutorials I wrote based on a 40GB HD. Change it around depending on size. If followed it will remove the problem and give you a clean install..... DON'T DO THIS UNLESS YOU WANT A CLEAN INSTALL
*************************************
Partitioning with CFDISK (40GB HDA)
*************************************
This partitioning scheme is designed for a 40GB hard disk. If your hard disk is smaller or larger you can adjust accordingly. [NOTE: This is the partioning scheme that I have always used. If you don't like the way that I distribute the space feel free to do it however you want.]
Quick tutorial for CFDISK: The up and down arrow keys will move you through the partitions. The left and right arrow keys will move you through the commands (at the bottom). The [ENTER] key will select the commands.
Type "cfdisk" at "root@slackware:/#" prompt and press [ENTER].
Delete whatever partitions are existing by using the arrow keys to move up and down. Select the partition you want to delete and then use the left and right arrow keys to select [Delete] and then press [ENTER] to delete it.
Now you should have one big piece of "Free Space", select the free space and press "N" (for New) "P" (for Primary). Now type in "150" as the amount and press [ENTER], press [ENTER] again to make it [BOOTABLE]. You should now have a line that reads "hda1 Boot Primary Linux 150.19"
Use the down arrow to select the "Free Space" and select "N" (for New) and "L" (for Logical) and type in "6000" for the amount and press [ENTER] this will be the "root" partition. You should now have a line that reads "hda5 Logical Linux 6000.14"
Next use the down arrow to select the "Free Space" and type "N", "L", use "20000" as the amount and press [ENTER] this will be the "home" partition. You should now have line that reads "hda6 Logical Linux 19999.76"
Use the down arrow to select the "Free Space" and type "N", "L", use "11000" as the amount and press [ENTER] this will be the "usr" partition. You should now have a line that reads "hda7 Logical Linux 11000.08"
Use the down arrow to select the "Free space" and type "N", "L", use "1173" as the amount and press [ENTER] this will be the "tmp" partion. You should now have a line that reads "hda8 Logical Linux 1173.09"
Use the down arrow to select the "Free Space" and type "N", "L", use "1173" as the amount and press [ENTER] this will be the "var" partion. You should now have a line that reads "hda9 Logical Linux 1179.09"
Use the down arrow to select the "Free Space" and type "N", "P", use "511.46" (or whatever is remaining) as the amount and press [ENTER], press "T" (for type), [ENTER], Where it reads "Enter filesystem type:" make sure it reads 82 (SWAP) and then press [ENTER] this will be the "SWAP" partition. You should now have a line that reads "hda3 Primary LInux swap 511.46".
Now use the right arrow key to toggle over to the [Write] command and press [ENTER], you will be asked "Are you sure yoiu want write the partition table to disk? (yes or no):" Type in "yes" and press [ENTER].
***WARNING*** If you have any data that is not backed up on your ENTIRE hard drive, IT WILL BE LOST.
You will get a message that reads "Writing table to disk...". When it is done press "Q" (for Quit). You will now be sent back to the "root@slackware:/#" prompt
At the "root@slackware:/#" prompt type "setup" and press [ENTER].
You should now see a screen that reads "Slackware Linux Setup (version 9.1.0), Use your down arrow to select "ADDSWAP Set up your swap partition(s)" and then press [ENTER]. You should see a screen that reads "SWAP SPACE DETECTED" and it should be the swap space that we created in step 9 of "Partitioning with CFDISK". Press [ENTER]. You will see a screen that reads "FORMATTING SWAP PARTITION". The next screen will read "SWAP SPACE CONFIGURED", it should tell you that "/dev/hda3 wil be added to your /etc/fstab". Press [ENTER].
. You should now see a screen that reads "Select Linux installation partition:" It also states "Please select a partition from the following list to use use for your root (/) Linux partition". Our "root" partition was defined in step 4 of "Partitioning with CFDISK" and is "/dev/hda5". Select /dev/hda5 and press [ENTER], select "Format Quick format with no ba block checking", use the up arrow key to select "ext3 Journaling version of the ext2fs filesystem" and press [ENTER]. Now you should see a screen that reads "SELECT INODE DENSITY FOR /dev/hda5", select "4096 1 inode per 4096 bytes. (default)", press [ENTER]. You should now see a screen that tells you it is formatting /dev/hda5. When it is finished go to step 4.
You should now see a screen that reads "Select other Linux partitions for /etc/fstab". This where you define all the partitions that we setup with CFDISK. The first one available is "/dev/hda1" it is already selected so press [ENTER], you should now see a screen that reads "FORMAT PARTITION /dev/hda1", select "Format Quick format with no bad block checking", press [ENTER], you will now see a screen that reads "SELECT FILESYSTEM FOR /dev/hda1", select "ext3 Journaling version of the ext2fs filesystem", press [ENTER], the next screen reads "SELECT INODE DENSITY FOR /dev/hda1", select "4096 1 inode per 4096 bytes. (default)", press [ENTER], you will see a screen that states the partition you select is being formated. The last screen that you will see states "SELECT MOUNT POINT FOR /dev/hda1" for /dev/hda1 we will use "/boot". !YOU MUST TYPE IN /boot EXACTLY! Press [ENTER], you will be taken back to the "Select other Linux partitiions for /etc/fstab" and the partition we just configured will read "(IN USE)"
Select "/dev/hda6", press [ENTER], "format" press [ENTER], arrow up to "ext3" press [ENTER], "4096" press [ENTER], type "/home" as the mount point, press [ENTER]
Select "/dev/hda7", press [ENTER], "format" press [ENTER], arrow up to "ext3" press [ENTER], 4096" press [ENTER], type "/usr" as the mount point, press [ENTER]
Select "/dev/hda8", press [ENTER], "format" press [ENTER], arrow up to "ext3" press [ENTER], "4096" press [ENTER], type "/tmp" as the mount point, press [ENTER]
Select "/dev/hda9", press [ENTER], "format" press [ENTER], arrow up to "ext3" press [ENTER], "4096" press [ENTER], type "/var" as the mount point, press [ENTER]
You should now get a screen that reads "DONE ADDING LINUX PARTITIONS TO /etc/fstab" Adding this information to your /etc/fstab:
/dev/hda5 / ext3 defaults 1 1
/dev/hda1 /boot ext3 defaults 1 2
/dev/hda6 /home ext3 defaults 1 2
/dev/hda7 /usr ext3 defaults 1 2
/dev/hda8 /tmp ext3 defaults 1 2
/dev/hda9 /var ext3 defaults 1 2
NOTE: The above diagram may look different depending on the partitioning scheme that you chose.