Note that there are some explanatory texts on larger screens.

plurals
  1. PO'cat /proc/swaps' returns nothing
    text
    copied!<p><strong>Please do not waste anymore of your time on this question...I ended up deleting the whole VM and creating another. The time it took me to do this is less than the time it would take to fix the issue. I have couple of SSDs in RAID mode.</strong></p> <p><strong>Thank you for all those who tried to troubleshoot the issue!</strong></p> <p>I am having this problem with ubnuntu not showing active swap spaces when I run the command <code>cat /proc/swaps</code>. Here is a list of commands I ran. I even added a new swap space (file: /swapfile1) just to make sure that at least one swap space, but still I get nothing.</p> <pre><code>hebbo@ubuntu-12-lts:~$ sudo fdisk -l [sudo] password for hebbo: Disk /dev/sda: 26.8 GB, 26843545600 bytes 255 heads, 63 sectors/track, 3263 cylinders, total 52428800 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000e3a7a Device Boot Start End Blocks Id System /dev/sda1 * 46569472 52426751 2928640 82 Linux swap / Solaris /dev/sda2 2046 46567423 23282689 5 Extended /dev/sda5 2048 46567423 23282688 83 Linux Partition table entries are not in disk order hebbo@ubuntu-12-lts:~$ sudo su root@ubuntu-12-lts:/home/hebbo# cat /proc/swaps Filename Type Size Used Priority root@ubuntu-12-lts:/home/hebbo# dd if=/dev/zero of=/swapfile1 bs=1024 count=524288 524288+0 records in 524288+0 records out 536870912 bytes (537 MB) copied, 1.18755 s, 452 MB/s root@ubuntu-12-lts:/home/hebbo# mkswap /swapfile1 Setting up swapspace version 1, size = 524284 KiB no label, UUID=cb846612-5f27-428f-9f83-bbe24b410a78 root@ubuntu-12-lts:/home/hebbo# chown root:root /swapfile1 root@ubuntu-12-lts:/home/hebbo# chmod 0600 /swapfile1 root@ubuntu-12-lts:/home/hebbo# swapon /swapfile1 root@ubuntu-12-lts:/home/hebbo# cat /proc/swaps Filename Type Size Used Priority root@ubuntu-12-lts:/home/hebbo# </code></pre> <p>Any idea how to fix this? </p> <p>This is ubuntu 12.04 LTS running kernel 3.9.0 in a vmware VM.</p> <p>Thanks in advance!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload