Skip to contentSkip to conversation

SWAP gone when running mainline

DISCUSSION Martin Kepplinger 3 participants 6 messages Jan 27, 2013 – Jan 28, 2013

lore
Share & tools
lore
#0 lore raw

Hi,

I run a recent re-kernel (using lubuntu 12.04) and when I boot into it, "free" says I don't _have_ (and use) any SWAP. Of course on ubuntu's kernel it works. When could I start looking around? .config? sysfs knob? I have no idea.

thanks

Signature · 1 line
Martin Kepplinger
#1 lore raw

Let me get this right: you have 2 distros? On one (ubuntu) you have swap and on other (lubuntu) not? Looks like missing fstab entry too me

Greg.
27 sty 2013 13:24, "Martin Kepplinger" <[email protected]> napisa?(a):

Quoted 9 lines

Hi,

I run a recent re-kernel (using lubuntu 12.04) and when I boot into it, "free" says I don't _have_ (and use) any SWAP. Of course on ubuntu's kernel it works. When could I start looking around? .config? sysfs knob? I have no idea.

thanks

Quoted 8 lines

--
Martin Kepplinger

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130127/0da6ccea/attachment.html

#2 lore raw

Sorry, that wasn't clear. Nope, I just have one distro: Lubuntu. I installed a rc-mainline-kernel and when I boot into it, there is no swap. On the distro-kernel there of course is.

thanks

Quoted 32 lines · Grzegorz Dwornicki

Let me get this right: you have 2 distros? On one (ubuntu) you have swap and on other (lubuntu) not? Looks like missing fstab entry too me

Greg.

27 sty 2013 13:24, "Martin Kepplinger" <[email protected] <mailto:[email protected]>> napisa?(a):

Hi,

I run a recent re-kernel (using lubuntu 12.04) and when I boot into it, "free" says I don't _have_ (and use) any SWAP. Of course on ubuntu's kernel it works. When could I start looking around? .config? sysfs knob? I have no idea.

thanks

--
Martin Kepplinger

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org <mailto:[email protected]>
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

#3 lore raw
Quoted 5 lines · Martin Kepplinger

Sorry, that wasn't clear. Nope, I just have one distro: Lubuntu. I installed a rc-mainline-kernel and when I boot into it, there is no swap. On the distro-kernel there of course is.

thanks

Please don't do top posting....

Which rc kernel version do you use? and can you show us the entries of your /etc/fstab?

Signature · 7 lines
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
#4 lore raw
Quoted 5 lines · Mulyadi Santosa
Quoted 4 lines · Martin Kepplinger

Sorry, that wasn't clear. Nope, I just have one distro: Lubuntu. I installed a rc-mainline-kernel and when I boot into it, there is no swap. On the distro-kernel there of course is.

Quoted 7 lines
Quoted 1 line

thanks

Please don't do top posting....

Which rc kernel version do you use? and can you show us the entries of your /etc/fstab?

it was rc4, now it's 3.8.0-rc5. My fstab:

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda1 during installation
UUID=187122e0-ad4a-4b27-8ec3-bb9217f162d0 /               ext4
errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
#UUID=d1313f27-8580-490e-bec3-55ac44d64f0e none            swap    sw
           0       0
/dev/mapper/cryptswap1 none swap sw 0 0

ecryptfs should be the problem. I use an encrypted home and swap. "free" says Swap: 0 0 0.

#5 lore raw

Hi Martin...

Quoted 12 lines · Martin Kepplinger

it was rc4, now it's 3.8.0-rc5. My fstab:

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda1 during installation
UUID=187122e0-ad4a-4b27-8ec3-bb9217f162d0 /               ext4
errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
#UUID=d1313f27-8580-490e-bec3-55ac44d64f0e none            swap    sw
           0       0
/dev/mapper/cryptswap1 none swap sw 0 0
Quoted 2 lines

ecryptfs should be the problem. I use an encrypted home and swap. "free" says Swap: 0 0 0.

I see.... ok my suggestion is...how about converting that swap partition back to normal swap using mkswap? If it works (of course, you need to adjust /etc/fstab accordingly), then ecryptfs is really the culprit here.

Signature · 7 lines
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com