swap file needs to be resetup

Asked by Dave Stroud

I resized my partition and set up a new swap partition. Now I am running on anew swap file of 0mb. The partition I made is 256mb, but is not using it. Do I have to re install to fix it. Will it reinstall without wipeing out everything on the main partition. Thanks Im having fun with ubuntu. When I get it all down its goin to be great.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Ubuntu User
Solved:
Last query:
Last reply:
Revision history for this message
Ubuntu User (anotherubuntuuser) said :
#1

Please issue the following command to list your current partition table and post the results to a comment.

If what I think has happened it correct, all we have to do is boot from the live cd, edit the partition table to mark the 256MB partition as a swap file, the run mkswap to format the swap partition, then turn on the swap partition with swapon and then finally edit the file system table to mout the swap partiion on startup.

Please post the results of running this command:

sudo fdisk -l /dev/hda

Revision history for this message
El Profe (isaac-sultan) said :
#2

If your swap partition is the hda5

Please post the results of running this command:

# sudo mkswap /dev/hda5

Revision history for this message
Dave Stroud (bigdavesr) said :
#3

this seems to have fixed the problem.Swap was listed on 5.Now is on 2
Ubuntu is on 3. Win me on 1.I had to do it several times for it to work. Installer crashed several times. also it worked after I deleted the 0mb swap. thanks abunch.