Re: [gentoo-user] Swap is manually 'swapon-able' but not via fstab...?

2013-08-11 Thread meino . cramer
Gregory Shearman zek...@gmail.com [13-08-11 07:48]:
 In linux.gentoo.user, you wrote:
   Hi,
 
   When I do a 
   
  beagleboneblack:/rootswapon /dev/sda2  
  beagleboneblack:/rootfree
  total   used   free sharedbuffers cached
  Mem:507476  50812 456664  0  13108  
  17244
  -/+ buffers/cache:  20460 487016
  Swap:  5242876  05242876
  
 
  swap is added to the system.
 
  If I add
 
  /dev/sda2   none swap  sw   
   0 0
 
  swapspace will not be used after a reboot.
 
  dmesg has nothing specific...
 
  What did I wrong here? Why get swap not used via fstab?
 
 Do you have swap added to the boot runlevel?
 
 # rc-update add swap boot
 
 -- 
 Regards,
 Gregory.
 Gentoo Linux - Penguin Power
 
 -- 
 Regards,
 Gregory.
 Gentoo Linux - Penguin Power
 


Hi Samuli, hi Gregory,

...the rc-update of swap was missing! Thanks a lot!

Best regards,
mcc






[gentoo-user] Swap is manually 'swapon-able' but not via fstab...?

2013-08-10 Thread meino . cramer
 Hi,

 When I do a 
 
beagleboneblack:/rootswapon /dev/sda2  
beagleboneblack:/rootfree
total   used   free sharedbuffers cached
Mem:507476  50812 456664  0  13108  17244
-/+ buffers/cache:  20460 487016
Swap:  5242876  05242876


swap is added to the system.

If I add

/dev/sda2   none swap  sw0 0

swapspace will not be used after a reboot.

dmesg has nothing specific...

What did I wrong here? Why get swap not used via fstab?

Thank you very much for any help in advance!

Best regards,
mcc







Re: [gentoo-user] Swap is manually 'swapon-able' but not via fstab...?

2013-08-10 Thread Samuli Suominen

On 10/08/13 17:36, meino.cra...@gmx.de wrote:

  Hi,

  When I do a

 beagleboneblack:/rootswapon /dev/sda2
 beagleboneblack:/rootfree
 total   used   free sharedbuffers cached
 Mem:507476  50812 456664  0  13108  17244
 -/+ buffers/cache:  20460 487016
 Swap:  5242876  05242876


swap is added to the system.

If I add

 /dev/sda2  none swap  sw0 0

swapspace will not be used after a reboot.

dmesg has nothing specific...

What did I wrong here? Why get swap not used via fstab?


That fstab line looks correct, only things coming to mind are wrong 
filesystem type for the partition or missing localmount from the boot 
runlevel. You can check by,


# fdisk -l /dev/sda

Look at the Id line, it should be 82 if I remember correctly out 
from memory.


And,

# rc-update show |grep localmount

You should see:

localmount | boot

I don't think this will help, but I hope it does :P



Re: [gentoo-user] Swap is manually 'swapon-able' but not via fstab...?

2013-08-10 Thread Gregory Shearman
In linux.gentoo.user, you wrote:
  Hi,

  When I do a 
  
 beagleboneblack:/rootswapon /dev/sda2  
 beagleboneblack:/rootfree
 total   used   free sharedbuffers cached
 Mem:507476  50812 456664  0  13108  17244
 -/+ buffers/cache:  20460 487016
 Swap:  5242876  05242876
 

 swap is added to the system.

 If I add

 /dev/sda2 none swap  sw0 0

 swapspace will not be used after a reboot.

 dmesg has nothing specific...

 What did I wrong here? Why get swap not used via fstab?

Do you have swap added to the boot runlevel?

# rc-update add swap boot

-- 
Regards,
Gregory.
Gentoo Linux - Penguin Power

-- 
Regards,
Gregory.
Gentoo Linux - Penguin Power