jroa
July 6th, 2012, 03:28 PM
I had several Linux distros installed on several partitions not very long ago. I decided to clean house and deleted everything except Ubuntu. Now, I have a 133GB logical partition for Ubuntu and 8GB for swap.
However, when I run free -m, it shows that I do not have any swap memory, just physical memory. I probably accidentally deleted the swap space that Ubuntu was using.
Is there a way that I can manually tie Ubuntu to this swap space, or do I need to reinstall?
Here is the output for free -m:
total used free shared buffers cached
Mem: 3016 2760 256 0 73 768
-/+ buffers/cache: 1917 1098
Swap: 0 0 0
and here is the output for parted and print:
Model: ATA Hitachi HDP72505 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 525MB 524MB primary ext4
2 526MB 358GB 358GB primary ntfs boot
3 358GB 500GB 142GB extended lba
6 358GB 492GB 133GB logical ext4
5 492GB 500GB 8472MB logical linux-swap(v1)
However, when I run free -m, it shows that I do not have any swap memory, just physical memory. I probably accidentally deleted the swap space that Ubuntu was using.
Is there a way that I can manually tie Ubuntu to this swap space, or do I need to reinstall?
Here is the output for free -m:
total used free shared buffers cached
Mem: 3016 2760 256 0 73 768
-/+ buffers/cache: 1917 1098
Swap: 0 0 0
and here is the output for parted and print:
Model: ATA Hitachi HDP72505 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 525MB 524MB primary ext4
2 526MB 358GB 358GB primary ntfs boot
3 358GB 500GB 142GB extended lba
6 358GB 492GB 133GB logical ext4
5 492GB 500GB 8472MB logical linux-swap(v1)