If I check the usage of the swap partition in my OS (Ubuntu 14.04)
$ cat /proc/swaps Filename Type Size Used Priority $
I obtain an empty result. But this partition should actually exist, named
/dev/sda6 and as large as 8 GB.
$ sudo parted GNU Parted 2.3 Using /dev/sda Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print free Model: ATA Hitachi HTS54323 (scsi) Disk /dev/sda: 320GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 32,3kB 1049kB 1016kB Free Space 1 1049kB 160GB 160GB primary ext4 boot 160GB 160GB 1048kB Free Space 2 160GB 320GB 160GB extended 5 160GB 312GB 152GB logical ext4 6 312GB 320GB 7997MB logical 320GB 320GB 352kB Free Space
In partition number 6 the
File system is empty and it should be instead
linux-swap. These partitions were created with the Ubuntu installation wizard. Is there something wrong? And how to use that 8 GB space as a swap partition?
As requested in the comments, this is the contents of
$ cat /etc/fstab # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> # / was on /dev/sda1 during installation UUID=bd20abfc-6ff1-4c3c-a77d-0e85f5c19af9 / ext4 errors=remount-ro 0 1 # /home was on /dev/sda5 during installation UUID=29599282-3815-4aa7-80ba-9058898e7a73 /home ext4 defaults 0 2 # swap was on /dev/sda6 during installation #UUID=c34d62e9-68e8-495a-869b-b107b5741c7e none swap sw 0 0 /dev/mapper/cryptswap1 none swap sw 0 0
During the installation I choose to encrypt my home directory (then I choose to made it later and I never did it). I don't remember the encryption of the swap too! I don't need an encrypted swap partition.
$ cat /etc/crypttab cryptswap1 UUID=c34d62e9-68e8-495a-869b-b107b5741c7e /dev/urandom swap,cipher=aes-cbc-essiv:sha256 $ free -m total used free shared buffers cached Mem: 3005 2082 922 42 46 534 -/+ buffers/cache: 1500 1504 Swap: 0 0 0