WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: swap partition not automatically used  (Read 2220 times)

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
swap partition not automatically used
« on: April 10, 2015, 08:07:47 AM »
Hi
I'm trying my usb pendrive in many places, but on this pc the swap partition is not automatically used:
Code: [Select]
jls@box:~$ cat /etc/fstab
# /etc/fstab
proc            /proc        proc    defaults          0       0
sysfs           /sys         sysfs   defaults          0       0
devtmpfs       /dev         devtmpfs mode=0755,nosuid    0     0
/dev/fd0        /mnt/fd0        auto     noauto,users,exec    0 0 # Added by TC
/dev/sda1       /mnt/sda1       ext4     noauto,users,exec    0 0 # Added by TC
/dev/sda2       /mnt/sda2       ext4     noauto,users,exec    0 0 # Added by TC
/dev/sda4       none            swap     defaults             0 0 # Added by TC
/dev/sdb1       /mnt/sdb1       vfat     noauto,users,exec,umask=000 0 0 # Added by TC
/dev/sdb2       /mnt/sdb2       ext2     noauto,users,exec,relatime 0 0 # Added by TC
jls@box:~$

but if I
Code: [Select]
sudo swapon /dev/sda4
then it is used.
Thnks
dCore user

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: swap partition not automatically used
« Reply #1 on: April 10, 2015, 03:27:13 PM »
Ok, I will check it out

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: swap partition not automatically used
« Reply #2 on: April 10, 2015, 03:31:09 PM »
Swap is getting automatically set up on my box:

Code: [Select]
tc@box:~$ swapon -s
Filename                                Type            Size    Used    Priority
/dev/sda1                               partition       2047996 91216   -1
tc@box:~$


Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
Re: swap partition not automatically used
« Reply #3 on: April 11, 2015, 04:58:50 AM »
hi jason,

what do you think about enabling swap in zram, again.

thank you for your help

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: swap partition not automatically used
« Reply #4 on: April 11, 2015, 09:26:20 PM »
Hi netnomad.

I had disabled it as I could not get it to work before, I will try iti again.